When I announced the slight addition to jpboodhoo.bdd I mentioned that it worked with TestDriven.Net. I just recently converted the current project I am on to use the new “it” style blocks everywhere. All of a sudden my tests were no longer being recognized by TestDriven.Net. I went to the tests for jpboodhoo.bdd and realized that I could still run them from TestDriven. I quickly realized the fix that I needed!! In my test project (for my current project) I have a folder called helpers (don’t let the name scare you, this is a pure test utility folder) which contains the following class:
public class emtpy_fixture_to_allow_testdriven_dot_net_to_pickup_tests
As you can see, by having that in my test project, TD.Net can do the appropriate reflection to pick up the test. If you don’t use TD.Net and were just using the MBUnit Console, or MBUnit GUI, there would not have been a problem. Instead of diving in to come up with a complicated solution, the pragmatist in me is ok having this as a file in my test projects!!
Develop With Passion!!