简体   繁体   English

Resharper(NUnit)单元测试的输入文件

[英]Input file for Resharper (NUnit) unit tests

I'd like to take the failures list from an automated unit test run and push it into Resharper or alternatively NUnit GUI. 我想从自动单元测试运行中获取故障列表并将其推送到Resharper或NUnit GUI。 Ideally it would be then up to the user to run the tests manually as they fix them. 理想情况下,用户可以在修复测试时手动运行测试。

I have found some examples on calling NUnit TestSuites/TestFixtures/Tests from code so think that it would be simple enough to parse the output of the test run and then load/or run the failures only. 我已经找到了一些从代码调用NUnit TestSuites / TestFixtures / Tests的例子,所以认为解析测试运行的输出然后只加载/或运行故障就足够了。

However I assume there is something to do this kind of thing already - I just can't find it. 但是我认为已经有一些东西要做这种事了 - 我找不到它。

Resharper has the ability to export the list of current tests in the session, but I cannot find anything to import a file to create a session. Resharper能够在会话中导出当前测试列表,但是我找不到任何导入文件来创建会话的内容。 This would seem an obvious and easy solution. 这似乎是一个明显而简单的解决方案。

Any one able to point me in the right direction? 有谁能指出我正确的方向?

也许你可以扩展NUnit框架实现一个代表某个文件路径的新属性.Resharper只支持普通的NUnit框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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