Menu

#1 Unit Tests that Encounter Errors Are Reported as Successful

open
nobody
None
9
2007-02-15
2007-02-15
David Read
No

If a unit test encounters an exception the processing of the unit test activity stops and PRUnit reports the test as successful. It would probably make more sense for PRUnit to assume failure if a UT activity throws and exception.

Discussion

  • David Read

    David Read - 2007-02-15
    • priority: 5 --> 9
     
  • David Read

    David Read - 2007-02-15

    Logged In: YES
    user_id=1135723
    Originator: YES

    Previous description is not accurate. If an error occurs in the unit test, the test activity does continue to run, however the fact that an error occurred should lead to a fail status. It seems onerous to force developers to place transitions and StepStatusFail checks on each step.

     
  • David Read

    David Read - 2007-02-15
    • summary: Unit Tests that Throw Exceptions Are Reported as Successful --> Unit Tests that Encounter Errors Are Reported as Successful
     

Log in to post a comment.

MongoDB Logo MongoDB