Test time includes execution time of Setup and Teardown methods
Bug #1071819 reported by
Dave Kipfer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
The calculated time of a test includes its SetUp and TearDown methods.
This includes:
The "time" attribute in the "test-case" element in an XML report is not limited to the execution time of the decorated test method.
The "MaxTime" attribute fails on this same value (time of Setup + time of teardown + time of test). This is first of all misleading, and secondly problematic.
A work around would appear to be to avoid Setup and Teardown methods (as has been suggested for other reasons by some) and do setup/teardown in the scope of the fixture or the test class constructor/
Changed in nunitv2: | |
milestone: | none → 2.6.3 |
tags: | added: framework |
Changed in nunitv2: | |
milestone: | 2.6.3 → none |
no longer affects: | nunitv2 |
To post a comment you must log in.
Hi Dave,
it would be useful to know the reasons why you think that this behavior is misleading and problematic.