![]() ![]() ![]() You should pick a normal C# class library project instead and then the instructions in my selected answer will work. when you're choosing the project type, Visual Studio will try and use it's own testing framework as far as I can tell. If you pick Other Languages -> Visual C# -> Test -> Test Project. I'm pretty new to C# and the NUnit test framework so it's entirely possible I've missed some crucial bit of information -)įinal Solution: The big problem was the project I'd used. cs files in the TestDSP project looks roughly like this: namespace Some.TestNamespace However, if you want Live Unit Testing to pause when you are debugging then there is an option in Tools/Options page, as shown in section 7 below, for Live Unit Testing to do that. I'm beginning to think the problem may be that VS wants to run it's own test framework and that's why it's failing to find the NUnit tests?Įdit: To those asking about test fixtures, one of my. From the failed test, you can easily debug to the product code, make edits, and continue, without having to pause or stop Live Unit Testing. Is this because I normally load \DSP.nunit into the Nunit GUI and that's where the tests are held? Both give me the same error when I try and start debugging: Cannot start test project 'TestDSP' because the project does not contain any tests. I'm using the console version there, but have tried the calling the GUI as well. I've tried the suggestions from several guides which all suggest changing the 'Debug' properties of the test project: Start external program: C:\Program Files\NUnit 2.4.8\bin\nunit-console.exeĬommand line arguments: /assembly: \TestDSP\bin\Debug\TestDSP.dll All works well if I load up my unit tests from Nunit (v2.4), but I've got to the point where it would be really useful to run in debug mode and set some break points. I have NUnit set up and a new project within my workspace to test the component. ![]() ![]() I've recently been building a test framework for a bit of C# I've been working on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |