Unit tests are included to standard build process
svn revisions 55 - 58
Unit tests from the project Rainbow.Tests are now included into community build process.
It can be found by trunk relative path Projects\Rainbow.Tests\Rainbow.Tests.csproj
You can see them at http://source.iocluster.com/site/ccnet_servers/295/ccnet_servers.aspx:
- click there to iocluster - Rainbow devint-trunk link;
- choose the build (it is usually the latest build, but Nunit details and timing are included starting from 283 build);
- click NUnit Details or NUnit Timings links at the right box of build info screen;
- enjoy :-)
Build target are called this.tests.prepare and this.tests.run in the repo root nant.build file
this.tests.prepare target performs the following actions:
- recreates separate database for tests purposes (called by the template rbtests_${this.databaseName}, where ${this.databaseName}='NET_2_0$devint$trunk' for the devint trunk);
- adjusts App.config to set this database in correspondent parameters using App.config.standard as a template (by the trunk relative path Projects\Rainbow.Tests)
this.tests.run target performs the following actions:
- runs the nunit2 task of nant on the Projects\Rainbow.Tests\bin\dll
- saves the test results in Rainbow.Tests.dll-results.xml file of the trunk root to be merged with ither CCNet stuff and be shown by the links described above;
- fails if at least one test failed.