I encounter some troubles when using PHPUnit_story. I'm using eclipse+Makegood to launch test files with stories. This work very well : I.e returns ok.
when using Ant to launch the same tests everything runs well except that the last test failed returning an error. no matter on what test is the last one … the latest always fails.
Don't really understand why as it seems that the last Then case (from givenThen function) ends with $result->wasSuccessful() set to true. I put an echo just after !
It's like if another test or function is running after this one and fails with an error on /usr/bin/phpunit : 46 … but I, really don't know why or what !! The error message is "undefiend index : browserUrl" and I haven't this index in my test …
best regards,
feel free to ask me my code … no secret behind that ! That's only my work ;-)
stephane.guedon@orange.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
I encounter some troubles when using PHPUnit_story. I'm using eclipse+Makegood to launch test files with stories. This work very well : I.e returns ok.
when using Ant to launch the same tests everything runs well except that the last test failed returning an error. no matter on what test is the last one … the latest always fails.
Don't really understand why as it seems that the last Then case (from givenThen function) ends with $result->wasSuccessful() set to true. I put an echo just after !
It's like if another test or function is running after this one and fails with an error on /usr/bin/phpunit : 46 … but I, really don't know why or what !! The error message is "undefiend index : browserUrl" and I haven't this index in my test …
best regards,
feel free to ask me my code … no secret behind that ! That's only my work ;-)
stephane.guedon@orange.com
I'm sorry … I know why now … just because I'd include a test file in order to instantiate it in my runThen functions …
And it seems that after having running the stories tests phpunit runs the incled tests too … I'll use another way to reach classes …
Stephane