Currently, I am attempting to create a simple console app that does the following:
I'm stuck on a couple of things:
Note: I'm not 100% sure that a custom console app is the right thing to do here, so I'm open to using existing tools/apps as long as they are very lightweight, cheap/free, etc.
Successul compilation
Have a look at msbuild options (see this post)
Execute unit tests
You can easily run NUnit console and that returns the number of failed tests if any, depending on that return value you can run the rest of the program. This achieves all your requirements, free, light-weight and easy to use. More info here .
Verify unit tests passed
Same as above
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.