TeamCityでMSTestを実行させる方法を理解しようとしています。 MSTest.exeへTeamCityにMSTestを使用してテストを実行させるにはどうすればよいですか?
- パス::% system.MSTest.10.0%の
- リストのアセンブリファイル:プロジェクト\ Metadude私は、次のパラメータを使用してセットアップビルドステップを持っています。 。テスト\ bin \ Debug \ Metadude。 .Test.dll
- はMSTestを実行し、構成ファイル:この手順の実行時に Local.testsettings
しかし、それはすべてのテストを実行しません。
- テスト: Tests.Metadude.Core.Extensions.StringExtensionsTests
[02:13:49]: Step 2/2: Run Unit Tests (MSTest)
[02:13:49]: [Step 2/2] Starting: "D:\Program Files (x86)\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe" #TeamCityImplicit
[02:13:49]: [Step 2/2] in directory: D:\Program Files (x86)\TeamCity\buildAgent\work\1f82da3df0f560b6
[02:13:50]: [Step 2/2] Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
[02:13:50]: [Step 2/2] Copyright (c) Microsoft Corporation. All rights reserved.
[02:13:50]: [Step 2/2]
[02:13:50]: [Step 2/2] Please specify tests to run, or specify the /publish switch to publish results.
[02:13:50]: [Step 2/2] For switch syntax, type "MSTest /help"
[02:13:50]: [Step 2/2] Process exited with code 1
[02:13:50]: Publishing internal artifacts
[02:13:50]: [Publishing internal artifacts] Sending build.finish.properties.gz file
[02:13:50]: Build finished
:これは、ログが出力されます
しかし、それは動作しません。私はTeamCityのMSTestビルドのステップに関連するGoogleのドキュメントを見つけることができないようです。
UPDATE [OK]を、私は馬鹿です。まあそれは少し厳しいかもしれませんが、テストアセンブリにはアセンブリ名から "s"がありませんでした。しかし、ビルドログでその効果を得るにはうれしいでしょう。
@Leslieハンクス? – wal
@wal私はアセンブリ名にタイプミスがありました。 –
私はまた、アセンブリ名から "s"を忘れたばかだ。トリプルチェックに値する:) – TinyRacoon