tam nguyen
tam nguyen

Reputation: 13

Generate unit test from activity diagram by Enterprise Architect

I am a newbie in EA (Enterprise Architect). Could you please help me to solve my problem about unit test generation from activity diagram?

Firstly, let me show more detail about my problem:

So, could anyone please help me to answer 2 question:

Thanks.

Upvotes: 0

Views: 556

Answers (1)

Vijayanath Viswanathan
Vijayanath Viswanathan

Reputation: 8571

The main idea behind the unit test is to test the code we write or drive your code through the unit test (TDD). One or the other you cannot generate functional unit test through activity diagram as to pass the unit test you should have your business logic written. Moreover, it is not a good idea to generate unit tests from activity diagram as test should derive from business logic (If you are not following TDD). If you are following TDD then your code should derive from the test. In either case, unit tests shouldn't derive from activity diagram

Upvotes: 1

Related Questions