Add callback support to Asserts
Bug #1178412 reported by
Christian Ang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
New
|
Undecided
|
Unassigned |
Bug Description
This feature is to allow you to add a callback method when you assert, that would run right before the test fails. This would allow you to perform your own logging when an assert fails, clean up anything the test did (such as a database connection), etc.
affects: | nunitv2 → nunit-3.0 |
To post a comment you must log in.
This sounds like what Teardown does except that it's limited to a
particular Assert. Could also be implemented using an ActionAttribute.
Charlie
On May 9, 2013 9:30 PM, "Christian Ang" <email address hidden> wrote:
> Public bug reported: /bugs.launchpad .net/bugs/ 1178412 /bugs.launchpad .net/nunitv2/ +bug/1178412/ +subscriptions
>
> This feature is to allow you to add a callback method when you assert,
> that would run right before the test fails. This would allow you to
> perform your own logging when an assert fails, clean up anything the
> test did (such as a database connection), etc.
>
> ** Affects: nunitv2
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to NUnit
> Extended Testing Platform.
> https:/
>
> Title:
> Add callback support to Asserts
>
> To manage notifications about this bug go to:
> https:/
>