Any way to separate unit tests from integration tests in VS2008?
Posted
by AngryHacker
on Stack Overflow
See other posts from Stack Overflow
or by AngryHacker
Published on 2010-06-03T00:31:05Z
Indexed on
2010/06/03
0:34 UTC
Read the original article
Hit count: 328
visual-studio-2008
|unit-testing
|continuous-integration
|mstest
|integration-testing
I have a project full of tests, unit and integration alike. Integration tests require that a pretty large database be present, so it's difficult to make it a part of the build process simply because of the time that it takes to re-initialize the database.
Is there a way to somehow separate unit tests from integration tests and have the build server just run the unit tests?
I see that there is an Ordered Unit test in VS2008, which allows you to pick and choose tests, but I can't make it just execute alone, without all the others. Is there a trick that I am missing?
Or perhaps I could adorn the unit tests with an attribute? What are some of the approaches people are using?
P.S. I know I could use mocking for integration tests (just to make them go faster) but then it wouldn't be a true integration test.
© Stack Overflow or respective owner