Display .NET MVC unit test results on a page
I'm wondering if it's possible to display results from unit tests on a single page?
For example:
- Call controller/action
- Run unit tests
- Return v开发者_开发问答iew with result
TIA
Chances are you can customize your command line tool to return kind of html output, or find a ready xslt for various test result formats.
If it's mstest, you can use mstest.exe and process the resulting trx file. If it's nunit-console.exe, you can process TestResults.xml
Since you've got html in a temporary file, use FileResult to return the file as an action result.
精彩评论