Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the pros and cons to have a seperate project devoted to unit-tests only?

Can you compare the advantages and disadvantages of having all your unit tests in one project devoted to unit-tests only against having your unit-tests residing the relevant assemblies?

Thanks

like image 742
pencilCake Avatar asked Dec 13 '22 18:12

pencilCake


1 Answers

Advantages to keeping them in seperate assemblies:

  • doesn't unnecessarily increase the complexity of the module being tested and doesn't violate separation of concerns.

  • you won't need to have your testing framework referenced throughout your solution.

  • it will enable (or at least make it easier for you) you to set up your project in a CI environment.

like image 104
David Neale Avatar answered May 21 '23 04:05

David Neale