On 2009-10-24 07.38, Paul Hammant wrote:
Rickard,
Take a look at (just added)
http://svn.codehaus.org/jbehave/trunk/core/jbehave-core/src/behaviour/org/jbehave/scenario/steps/ConfusingStepsBehavior.java
It should be failing but is not.
That's the problem with random behaviour - it is non-trivial (if not
impossible) to make tests for it. In my own case the tests failed if I
ran them normally, and passed whenever I tried to debug them using a
debugger. There's probably a hashmap in there that causes this randomness.
What you can do is test for the opposite: If you have a Given/When/Then
scenario, and then the steps are wrong (i.e. you use @Given for the When
method, and so on), then you can test for when that scenario fails
(=i.e. then it's ok).
/Rickard
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email