2017-12-05 3 views
0

테스트 탐색기와 ReSharper 유닛 테스트 탐색기를 통해 테스트를 실행할 수있는 셀레늄 Specflow C# 프로젝트가 있습니다. 내가 테스트를 실행하는 명령 줄을 실행할 때MsTest.exe에서 테스트를 찾을 수 없습니다.

는하지만,

그것은 DLL

mstest /testcontainer:MoneyUITests.dll /test:NavigateToLoans 
Microsoft (R) Test Execution Command Line Tool Version 15.0.26621.2 
Copyright (c) Microsoft Corporation. All rights reserved. 

Loading MoneyUITests.dll... 
Test NavigateToLoans cannot be found. 
Test NavigateToLoans cannot be found. 
Starting execution... 
No tests to execute. 

아니 내가 잘못 한 일을 확인의 모든 테스트를 찾을 수없는 (이 젠킨스는 테스트를 실행하는 방법입니다) 비주얼 스튜디오가 문제없이 테스트를 찾아 실행하는 것은 이상한 것처럼 보입니다.

+1

한 솔루션 .. NUNIT을/모든 MS 드롭 vsTest 및 사용 : – thanatorr

답변

3

Visual Studio 2010에서 테스트 할 때 mstest.exe가 사용 되었기 때문입니다. Visual Studio 2012 이후에는 VSTest.Console.exe를 사용해야합니다.

mstest.exe 대신 VSTest.Console.exe를 사용해 보셨습니까? I에 유래에 이미 답을 발견

: Answer on How to run selenium c# test in command prompt?

관련 문제