让 Partcover 和 Gallio 处理命令行错误,报告为空?
我已经获得了 PartCover 2.3 和 Gallio 3.1,可以通过 Partcover 覆盖率浏览器进行工作。当我尝试在命令行上重新运行命令时,我发现 CorProfiler 已关闭,然后报告为空?我从管理外壳运行。我还阅读了以下内容 文章。它说要使用 /r:Local,我必须在浏览器中使用 /r:IsolatedAppDomain。
partcover.exe --target ..\gallio\bin\gallio.echo.exe --target-work-dir ..\.\product\RSINET.MVC.Tests\bin\debug --target-args /r:IsolatedAppDomain RSINET.MVC.Tests.dll --include +[RSINET.MVC.Tests]* --output ..\..\artifacts\RSINET.MVC.Tests.results.xml
I have gotten PartCover 2.3 and Gallio 3.1 to work through the Partcover coverage browser. When I try rerunning the command on the command line I am getting a CorProfiler is turned off, and then the report is empty? I am running from Admin shell. I also had read the following article. It says to use the /r:Local, I had to /r:IsolatedAppDomain in the broswer.
partcover.exe --target ..\gallio\bin\gallio.echo.exe --target-work-dir ..\.\product\RSINET.MVC.Tests\bin\debug --target-args /r:IsolatedAppDomain RSINET.MVC.Tests.dll --include +[RSINET.MVC.Tests]* --output ..\..\artifacts\RSINET.MVC.Tests.results.xml
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,所以我决定看一下 PartCover 的源代码,看看到底发生了什么,看来包含中的初始“+”不是必需的,例如 +[RSINET.MVC.Tests]*变为 [RSINET.MVC.Tests]*"。这与使用需要 + 的 settings.xml 文件不一致。
I had the same problem so I decided to take a look at PartCover's source code to see what the heck was going on, it appears the initial '+' in the include is not required, for example +[RSINET.MVC.Tests]* becomes [RSINET.MVC.Tests]*". This is inconsistent with using the settings.xml file which requires the + to be there.