Can you implement TDD in Pega?
As the title says, we use Pega extensively, and was wondering, whether it is possible to implement TDD in the same fashion as .NET or Java.
It depends on version of Pega platform you are using. Prior to Pega 7.2.2 test cases used to be created through running a Rule and recording Clipboard state before and after Rule run. Initial state recorded was used to setup environment for every test case run, final state recorded was assumed as expected reference state to get after each run. There was no convenient way to configure this. As so, it was impossible to implement TDD using built-in Pega test case capabilities, because you had to implement your rule completely before creating a test case for it. In Pega 7.2.2 you can manage the way environment is set up for a test case run and assertions made. But be aware that Pega test cases still lack rule dependency isolation, thus you cannot test a Rule in isolation. We are using Pega extensively as well, so given aforementioned restrictions we decided to create our own testing framework for Pega. The problem of unit testing Pega applications I've described in more details in the following article. https://www.linkedin.com/pulse/gaining-confidence-comprehensive-continuous-pega-7-unit-lutay
There is one framework developed by Pega for testing pupose Test Management Framework (TMF). There is one link available on PDN which shows how to Auto-Generate Test Cases.
Am I allowed to check in a failing test
How to TDD for CouchDB with CouchApp?
How can I test an interface without implementing it first?
Run a single test in Flash Builder?
Discussion: Working TDD in a Scrum context
When applying TDD, what heuristics do you use to select which test to write next?
Unit testing: is “good enough” good enough?
Implementing User Stories the Agile Way
Should I only be testing public interfaces in BDD? (in general, and specifically in Ruby)
TDD assumes interfaces are defined already; how to cope?
RhinoMock : Mocks Vs StrictMocks Vs DynamicMocks
Ideas on how to TDD application that needs to retrieve user name from system environment
ATDD versus BDD and the proper use of a framework
Bizmonade - testing orchestration that receives ANY document
Selenium vs Celerity? [closed]
TDD and Code Coverage