Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 only runs one TestMethod

I am admittedly new to unit testing in VS2010, but I'm having a problem that I can't seem to resolve.

No matter how many classes I have in Test project decorated with [TestClass] or how many methods within those test classes are decorated with [TestMethod]. Whenever I run all tests in the solution. only one test gets run. and it passes. all the others are ignored.

Is there some master list I'm suppose to update? If so where is it!?

Thanks!

like image 604
Master Morality Avatar asked Feb 04 '26 22:02

Master Morality


1 Answers

  1. In the toolbar at the top of your vs window click the Test menu item
  2. Select "Create New Test List" Give the list a name and click ok.
  3. In the "Test List Editor" tab, select the "All Loaded Tests" check box in the left column
  4. in the right column, right click and select "Run Checked Tests"

That should do it.

Good Luck,

Patrick

like image 104
Patrick Avatar answered Feb 09 '26 00:02

Patrick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!