1

在 Visual Studio Online 中,我有一个 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"
},

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

4

1 回答 1

0

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

于 2015-06-11T12:53:32.627 回答