...
All data files which are used in the data access or integration tests must be located in the test-data/ directory
Name the unittest class of your class xxxTest.*
Why?
To make it easy to find the tests for a class.
- Uncategorized - unit test
- TestCategory.Integration - integration test where multiple classes / components are used
- TestCategory.DataAccess - specific integration test where file is accessed (read / write)
- TestCategory.WindowsForms - specific integration where form is shown
- Pefromance - unit or integration test where speed of the code is measured.
- Jira - test describing a bug in Jira. The test should specify for which issue it was created.
When test shows forms and accesses files - use TestCategory.Integration as a category, no multiple categories!!
Build Server and Automatic Testing
...
Why?
To make finding hbm files easy for everyone
When? Always.
Except..There are some 'old' mapping files (DelftTools.hbm.xml and SharpMapGis.hbm.xml). Then convention is not applied there yet.
Name the unittest class of your class xxxTest.*
Why?
To make it easy to find the tests for a class.