Menu

PHPUnit_story troubles

2013-03-04
2013-04-29
  • Stephane Guedon

    Stephane Guedon - 2013-03-04

    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

     
  • Stephane Guedon

    Stephane Guedon - 2013-03-04

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.