← Back to team overview

nunit-core team mailing list archive

[Bug 1098766] [NEW] Feature Request: AssemblyTearDown Attribute

 

Public bug reported:

It would be great to have an attribute that can decorate a static method
called AssemblyTearDown.  It would mark the method that should be called
after all the tests within the assembly have run to allow resources
obtained by the assembly to be freed.

- It needs to be applied to a static method
- It would be called after all the other TearDown's have been processed.
- It should not need to be in a class that has test methods.
- NUnit should only allow one method to be decorated with this attribute within an assembly.

** Affects: nunitv2
     Importance: Undecided
         Status: New


** Tags: feature

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1098766

Title:
  Feature Request: AssemblyTearDown Attribute

Status in NUnit V2 Test Framework:
  New

Bug description:
  It would be great to have an attribute that can decorate a static
  method called AssemblyTearDown.  It would mark the method that should
  be called after all the tests within the assembly have run to allow
  resources obtained by the assembly to be freed.

  - It needs to be applied to a static method
  - It would be called after all the other TearDown's have been processed.
  - It should not need to be in a class that has test methods.
  - NUnit should only allow one method to be decorated with this attribute within an assembly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1098766/+subscriptions


Follow ups

References