简体   繁体   中英

how to make connection between visual studio project and unit test project?

I have big C# solution.
I added to this solution an unit testing project.

I want to make somehow a connection between the unit testing and all the other project - what I mean is I want to make a automation that will run the unit testing on the end of the project build and if there will be any test fail => the project build will show fail

How to do it?

If you're using Visual Studio you can select option presented below, but it will not cause a build error when Unit Tests will fail.

视觉工作室

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM