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:
- i've checked reference project reference.
- 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
Post a Comment