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.
TDD Spider Solitaire
How to deal with those TDD breaking people? [closed]
How to create a mock object based on an interface and set a read-only property?
Exercises to enforce good practices such as TDD and Mocking
What are some reasons why a sole developer should use TDD?
Database integration tests
Pseudocode Programming Process vs. Test Driven Development
Can TDD Work in a Architect/Implementer Environment? [closed]
Adversarial/Naive Pairing with TDD: How effective is it?
Single most important thing to impart when teaching TDD [closed]
What happened to NUnit?
Developers are dissatisfied with TDD. Is TDD really the problem, or is it a lack of skill of novice practicitioners?
How to shift your paradigm to test-driven development
How do I tell MSTEST to run all test projects in a Solution?
Research on TDD