Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 09, 2010 06:39 AM by malcolms
Jan 05, 2010 08:10 PM|LINK
I am using MbUnit wit ASP.NET MVC in VS 2008. I have MbUnit v2.
When I am trying to run tests it give this message
No tests were run because no test are loaded or the selected tests are disabled.
What could be wrong?
Jan 06, 2010 03:27 AM|LINK
could you post code of one of your tests for clarification ?
Jan 06, 2010 08:52 AM|LINK
Are you using Resharper to run your tests or Visual Studio's normal test tabs?
Jan 07, 2010 07:01 PM|LINK
Just Visual Studio.
Jan 07, 2010 10:00 PM|LINK
So have you got any tests selected to run?
Personally if were you I'd install Resharper as it is integrated into Studio and makes testing easier IMO.
Jan 09, 2010 01:14 AM|LINK
It doesn't change with Reshaper either. Only MSTests are running.
Same message is shown " No tests were run because no tests were loaded".
Jan 09, 2010 02:50 AM|LINK
Okay do you have test projects in your solution in that case?
Jan 09, 2010 06:18 AM|LINK
I tried to add test projects in two ways.
1. I added then when I created the MVC application and chose MBUnit as the Test Project.
2. I opted not to use a Test Project initially and then added an MBUnit Test Project into the solution.
Visual studio did not recognize the test that is created in the Test Projects.
When I try to right click and add a new test class it is automatically adding MS Tests.
Jan 09, 2010 06:39 AM|LINK
Hmm I'moutta ideas. For me my MBUnit's all run through Resharper. Anyone else got any ideas?