unit testing - Is it possible to get VS 2010 to build before running tests -


i have class library project in visual studio 2010 want test. have created seperate test project in same solution test it. test project references class library project. created tests ran them , failed expected. when fixed class library , ran tests again still failed. because class libary project had not been rebuilt.

is there way visual studio 2010 automatically build test project , dependancies before running tests?

edit:

some things have checked:

  1. i've checked reference project reference.
  2. i've checked test project last in build order.

still no joy. in case makes difference running tests using "run tests in solution (ctrl+r, a)" button on tool bar.

right click on test project, select project build order , set class library project build before test project, should works ;-)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -