I'm playing with Phexampe because I think that in my current project the setup 
of test scenarios will be a huge part of the testing. So do it in a structured 
way reducing doubled initialization procedures should be something good.
I'm just wondering how the state is kept between dependent test cases. A 
Phexample test case returns a value so that

value := self given: #shouldHaveCollectedSomeState

transfers the state from the dependent test case into the current. What do you 
do if the state produced is more complex than a single value? 

To be honest I don't understand why in a test case that calls #given: a 
tearDown/setUp cycle is executed between the first and the second test case. I 
think while using #given: I make the second test case explicitly dependent on 
the first. Why should I reset state collected by the first before executing the 
second?

I'm a bit reluctant to create new classes for all collected state scenarios so 
that I can return them properly from one test case to another. Any ideas?

thanks,

Norbert


Reply via email to