"Failed to locate fixture" nunit-console with simple test case
"Josh Szepietowski" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
Just starting to check out NUnit and TDD in general. I want to get my
environment set up such that I have a solution containing: (1) Assembly I am
coding, (2) Test Assembly with NUnit tests, set to be the 'startup project'
and kicking off nunit-console on it's self when it is run.
So to start this off I created a new Project (TestLibrary), added a
reference to the nunit.framework assembly, and added a single *.cs file with
this code:
.....................
using System;
using NUnit.Framework;
namespace TestLibrary
{
[TestFixture]
public class TestFoo
{
[Test]
public void AssertTruePasses()
{
Assert.IsTrue(true);
}
}
}
.....................
Simple as I could think for my first test.. :) I then changed the project
properties for the TestLibrary assembly as such:
-Start Action:
-Start External Program:
C:\Program Files\NUnit 2.4.3\bin\nunit-console.exe
-Start Options:
-Command Line Arguments:
$(TargetPath) -Wait
And I press 'F5' (go run!).. The nunit-console application runs, but fails
with the message:
Unable to locate fixture
So, can anyone help me figure out what I am doing wrong here? :) Sorry, very
new to this whole NUnit thing, and it is a little frusterating to run into
such immediate resistance. For the record, opening the
TestLibrary.dllassembly (debug version) in the nunit gui program works
fine and the test
passes.. But it is import for me to integrate the tests into my build step.
Thanks,
--
Josh Szepietowski
http://www.goosey.info
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users