views:

750

answers:

2

I am working on an MSBuilds script to run my NUnit tests from CruiseControl.Net. _Test_DAL has three tests in it.

I am having problem getting the right dos command to run the NUnit.

Here is the command to run NUnit but it does not find any tests.

D:\CC\JCDCHelper\Source_Test_DAL\bin\Debug>"C:\Program Files\NUnit 2.4.3\bin\nunit-console" /nologo _Test_DAL.dll

Tests run: 0, Failures: 0, Not run: 0, Time: 0.047 seconds

I am able to use resharper to run the tests, so I know the tests are written correctly.

Any help would be awesome.

A: 

The input files have to go first, then the options.

nunit-console _Test_DAL.dll /nologo

Nebakanezer
Using NUnit 2.4.8, I am able to specify /nologo first and still run tests.
Pedro
A: 

I'm not sure how Resharper handles tests, but I do recall TestDriven.Net as being able to 'run test' on methods that were not actually marked as unit tests. Make sure your class is public and marked as a [TestFixture], and that the unit test is a public void method marked as a [Test].

Pedro