testdriven.net

TestDriven.NET is not running my SetUp methods for MbUnit

I've created some MbUnit Test Fixtures that have SetUp methods marked with the SetUp attribute. These methods run before the tests just fine using the MbUnit GUI, the console runner, and the ReSharper MbUnit plugin. However, when I run the tests with TestDriven.NET it does not run the SetUp methods at all. Does anyone know if this i...

TestDriven.Net doesn't find tests

I have a test project using MbUnit and TestDriven.Net. If I right-click on an individual test method and say "Run Tests" the test runs successfully. Same thing if I click on a file name in the solution explorer. However, if I right click and say run tests on the project or the solution, TestDriven.Net reports "0 Passed, 0 Failed, ...

How do I see Debug.WriteLine statements when using TestDriven.Net?

I'm trying to use TestDriven.Net not only to test my code, but to call a function on my code whose purpose is to print out the internal state of the code to the Debug window. Here's a very simplified example of what I'm trying to do.. <TestFixture()> _ Public Class UnitTest <Test()> _ Public Sub TestDebug() Dim oClass1...

TraceSource in TestDriven.NET AppDomain

I'm running tests using the TestDriven.NET VS add-in, and the class library I'm testing is instrumented using TraceSource. How can I get the output of that TraceSource to show up in the Output window in Visual Studio? The DefaultTraceListener doesn't appear to be working quite right. Do I need to manually add a ConsoleListener or some...

How do you use debugging to step into a class in a web application from a test project in the same solution?

When using NUnit and the test project, we haven't been able to find a way to step into the class we are testing in a web application. We are using TestDriven.NET add-in for Visual Studio 2008. We are able to hit a breakpoint in the test project, but not step into the web app class that is being tested. ...

How to stop stepping into .NET source code using TestDriven.NET?

I just started using TestDriven.NET to debug on my tests, here is my setup TestDriven.NET 2.17 VS 2008 SP1 Windows XP The problem I run into is on exception it keeps stepping into the .NET Framework source code. I checked Tools > Options > Debugging and "Enable .NET Framework source stepping" is not checked and "Enable Just My Code...

Running XUnit.net Tests with TestDriven.net

I've used NUnit for years and I wanted to try XUnit. So I installed XUnit and ran the executable that allowed you to run XUnit via TD.net. I can't seem to run more than one test at a time. With NUnit + TD.net, I could click on the filename in the solution and run all the tests in the file. I can't seem to do that with XUnit + TD.net...

TestDriven.net with Gallio, MbUnit and NCover problems

Hi, Why doesnt TestDriven.Net work with my gallio/mbunit tests? I've used TDD.Net with MbUnit v2 and not had any problems, but with the new gallio release on my new pc, it does nothing. From the tdd right click menu in solution explorer, if i do "test with debugger" i get "0 passed, 0 failed, 0 skipped" in the VS status bar at the bot...

Debug.WriteLine() happening twice when running tests

I have an odd problem in VS2008 running unit tests. When I run the unit test using either Resharper or TestDriven, in either normal or Debug mode, the Debug.WriteLine("foo") lines are being carried out twice: ie. in the Output window of VS I can see each line written twice. If I step through the test, however, each line seems to be carr...

Why does MSTest and TestDriven.NET behave differently using this code?

Check out this code: internal static readonly Dictionary<Type, Func<IModel>> typeToCreator = new Dictionary<Type, Func<IModel>>(); protected static object _lock; public virtual void Register<T>(Func<IModel> creator) { lock (_lock) { if (typeToCreator.ContainsKey(typeof(T))) typeToCreator[typeof(T)] = creato...

Does TestDriven.NET work with VS Express?

Does TestDriven.NET work with VS Express? EDIT: Yeah, I just installed it and noticed that it wasn't working. It looks like a really cool program. ...

How can I remove the "Test With" menu left after uninstalling TestDriven.NET?

I have uninstalled my trial of TestDriven.NET but it leaves this menu behind on the context menu. How can I remove this? ...

Edit and continue with TestDriven .NET and Gallio

I have VS08sp1, Gallio 3.0.6.763 and TestDriven.NET 2.14. I use MBUnit framework for unit tests. When using TestDriven's Test With > Debugger, I am able to step into the code. However, I am unable to "Edit and Continue", despite this option being turned on in VS options. I get the following error message: changes are not allowed when...

TestDriven.NET and native C Library

I am working on a C# application that makes calls to a native Windows C dll. We use TestDriven.NET with xUnit for testing. The problem is, whenever we run unit tests that use the C library (which we did not write), and then try to build afterwards, there is a build error about how the library is being used by another process. To fix i...

Where is the TestDriven.NET Options Pane?

I am using TestDriven.NET 2.21 and I read on the creator's blog that there is now an options pane. I am using Visual Studio 2008 Pro Edition. The thing is, I can't find out how to access this options pane anywhere. Where is it? ...

TestDriven.net, right click, run test, doesn't re-build

I am using testDriven.net and when I right-click and run tests, it appears to build, then runs the test. Only it doesn't really do the build. I keep making changes and the test still fails:) I have to do a VS Build, then run the testDriven.net to get changes to take effect. This clears up for a while if I delete the solution's .SUO file...

[AssemblyInitialize] and TestDriven.Net

Has anyone experienced any issues with using the mstest attribute [AssemblyInitialize] when running tests with TestDriven.Net? I've tried 2.14 RTM and 2.22 RTM and neither seem to work for me. When I execute the test, the assembly init method isn't being executed. It's like TD.Net doesn't recongize the attribute. Any tips/ideas/clues i...

Implement Unit Testing on a legacy web site

Hi All, I downloaded nUnit and TestDriven.net. I have a legacy Web Site application and I would like to implement some unit testing. I created a class in the app_code folder and added Imports NUnit.Framework etc... After writing a basic test, I get the "Can't execute tests in 'Web Site' application." error. I guess the Web Site project i...

TestDriven.NET vs NCover

The company I work at is going to buy some software tools for me to use, but I do have a budget to work with. I have some unit tests written for NUnit, and am looking at getting TestDriven.NET, NCover, or perhaps both. I'm using Visual Studio 2008. My questions are: Is there a good reason to get both of them? If you had to choose o...

TestDriven.Net Only Running One Test Fixture In File

I'm using NUnit (but have also tried this with VS testing) and I'm having a problem getting TestDriven.Net to recognize and run different test fixtures in a single .cs file. I'm trying to do a little BDD style testing. So what I have in one file is something like this: [TestFixture] public class when_view_is_ready : AAA { // setup,...