开发者

Display .NET MVC unit test results on a page

开发者 https://www.devze.com 2023-03-01 04:44 出处:网络
I\'m wondering if it\'s possible to display results from unit tests on a single page? For example: Call controller/action

I'm wondering if it's possible to display results from unit tests on a single page?

For example:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消