Where to place unit test project

Posted by Karsten on Stack Overflow See other posts from Stack Overflow or by Karsten
Published on 2010-03-30T12:37:09Z Indexed on 2010/03/30 12:53 UTC
Read the original article Hit count: 554

Filed under:
|
|

I'm thinking about where to put the unit/integration test project. I follow the 1 test project pr. project convention

I can think of 3 ways, that all seems good to me, which make it kind of hard to choose :-)

  1. Test project is put under a Tests sub folder to the project it tests.
  2. Test project is put next to the project it tests, in a "project".Tests folder. I believe this is what Roy Osherove recommends.
  3. Put all test projects in a sub folder in the root. e.g. \Tests\"project".Tests
  4. Something else?

What you choose and why?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#