1

オンラインの 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.

ランナーはproject.jsonに設定されています

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

この時点で、自分のビルド サーバーを使用したくありません。

4

1 に答える 1

0

これを機能させるには、ビジュアルスタジオに何かをインストールする必要がありますか? 残念ながら、build dev get はあなたが所有していないため、プラグインを必要とするこのテストを実行することはできません。MSTest と nUnit の両方がサポートされています。

于 2015-06-11T12:53:32.627 に答える