[Opensim-dev] Custom Nunit CategoryAttribute

Stefan Andersson stefan at tribalmedia.se
Thu Apr 9 06:47:32 UTC 2009


Esteemed colleagues,

 

I just added a custom DatabaseTestAttribute to help separating unit tests from component tests.

 

The general idea is to tag database tests (classes or individual methods) with [DatabaseTest]

 

The test runner will then be able to separate out database tests from non-database tests, aiding in swift nunit testing. This can be done visually in the runner, or on the runner command line with /exclude DatabaseTest.

 

We probably should have some other categories as well, but this is a start, and an example.

 

I also blogged shortly about it here:


http://lbsa71.net/2009/04/09/nunit-custom-categoryattribute-and-resharper-testrunner/
 
Best regards,
Stefan Andersson
Tribal Media AB



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20090409/64289c29/attachment-0001.html>


More information about the Opensim-dev mailing list