.NET Core RC2上的MSTest无xml输出
发布时间:2020-12-16 23:01:28 所属栏目:百科 来源:网络整理
导读:我的目标是dotnet-test-mstest“:”我的测试项目中的dotnet core rc2上的1.0.1预览. 编辑: 好的.我的目标是桌面.NET.但这不应该有任何区别. project.json { "version": "1.0.0-*","testRunner": "mstest","dependencies": { "Betgame": "1.0.0-*","dotnet-
我的目标是dotnet-test-mstest“:”我的测试项目中的dotnet core rc2上的1.0.1预览.
编辑: project.json { "version": "1.0.0-*","testRunner": "mstest","dependencies": { "Betgame": "1.0.0-*","dotnet-test-mstest": "1.0.1-preview","MSTest.TestAdapter": "1.0.0-preview","MSTest.TestFramework": "1.0.0-preview","NETStandard.Library": "1.5.0-rc2-24027" },"frameworks": { "net461": { } } } 运行dotnet测试时的输出看起来相当不错! 如何将输出作为xml文件在我的构建过程中处理?有任何想法吗?或者它还没有得到支持? 到目前为止,我尝试了dotnet test -xml test-results.xml但没有生成输出. 解决方法
感谢您试用MSTest版本.
请使用以下命令生成trx报告(xml文件): vstest.console.exe project.json /UseVsixExtensions:true /logger:trx 报告将在TestResults文件夹中生成. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |