Visual Studio online上的xunit.runner.dnx未发现任何测试

时间:2015-06-11 00:06:53

标签: azure-devops xunit dnx

在Visual Studio在线,我有一个dnx项目可以工作,它看起来非常好。

然而,当测试项目找到测试程序集时,它不会在其中找到测试。它在本地视觉工作室工作。

这是日志

> 2015-06-10T12:44:40.4024316Z Microsoft (R) Test Execution Command Line
> Tool Version 14.0.22823.1
> 
> 6  2015-06-10T12:44:40.4034315Z Copyright (c) Microsoft Corporation. 
> All rights reserved.
> 
> 7  2015-06-10T12:44:40.9083471Z Starting test execution, please
> wait...
> 
> 8  2015-06-10T12:44:41.0261699Z Warning: Using Isolation mode to run
> the tests as diagnostic data adapters were enabled in the runsettings.
> Use the /inIsolation parameter to suppress this warning.
> 
> 9  2015-06-10T12:44:57.8605322Z Warning: No test is available in
> C:\a\2b7cb926\Anne Prototype\ANNe\artifacts\bin\Test.ANNe.Compiler\Debug\dnx451\Test.ANNe.Compiler.dll
> C:\a\2b7cb926\Anne
> Prototype\ANNe\artifacts\bin\Test.ANNe.Compiler\Debug\dnxcore50\Test.ANNe.Compiler.dll
> C:\a\2b7cb926\Anne
> Prototype\ANNe\artifacts\bin\Test.ANNe.Core\Debug\dnx451\Test.ANNe.Core.dll
> C:\a\2b7cb926\Anne
> Prototype\ANNe\artifacts\bin\Test.ANNe.Core\Debug\dnxcore50\Test.ANNe.Core.dll
> C:\a\2b7cb926\Anne
> Prototype\ANNe\artifacts\bin\Test.Console\Debug\dnx451\Test.Console.dll
> C:\a\2b7cb926\Anne
> Prototype\ANNe\artifacts\bin\Test.Console\Debug\dnxcore50\Test.Console.dll.
> Make sure that installed test discoverers & executors, platform &
> framework version settings are appropriate and try again.
> 
> 10  2015-06-10T12:44:58.0834255Z Attachments:
> 
> 11  2015-06-10T12:44:58.0874253Z  
> C:\a\2b7cb926\TestResults\daa5a111-9c85-40a3-930d-d5a511bbf1ee\buildguest_TASKAGENT-0001
> 2015-06-10 12_44_50.coverage
> 
> 12  2015-06-10T12:44:58.1054246Z Information: Additionally, you can
> try specifying '/UseVsixExtensions' command if the test discoverer &
> executor is installed on the machine as vsix extensions and your
> installation supports vsix extensions. Example: vstest.console.exe
> myTests.dll /UseVsixExtensions:true
> 
> 13  2015-06-10T12:44:58.3310571Z ##[warning]No results found to
> publish.

Runner在project.json

中设置
"dependencies": {
    "xunit": "2.1.0-beta2-build2981",
    "xunit.runner.dnx": "2.1.0-beta2-build79"
},

我想在此时不使用我自己的构建服务器。

1 个答案:

答案 0 :(得分:0)

你需要在visual studio中安装一些东西才能让它工作吗?不幸的是,由于构建开发不是由您拥有,您将无法运行需要插件的此测试。支持MSTest和nUnit。