I'm trying to figure out which is the command line arguments used by Visual Studio when you run the MsTest tests
Dipende da come si fa a eseguire i test da Visual Studio. Vedere i seguenti esempi:
Si sta selezionando alcuni test dalla finestra Test View
e farli funzionare
MSTest.exe /testcontainer:TestProject.dll /test:TestMethod1 /test:TestMethod2 ...
si sta eseguendo tutti i test dalla Test View
finestra
MSTest.exe /testcontainer:TestProject.dll
Hai filtrato i tuoi test per categoria attraverso la finestra Test View
ed esegui questa categoria
MSTest.exe /testcontainer:TestProject.dll /category:CategoryName
aver aperto il file di *.vsmdi
e selezionato alcuni TestLists
per eseguire
MSTest.exe /testmetadata:*.vsmdi /testlist:TestList1 /testlist:TestList2 ...
Si esegue carico o prove ordinate
MSTest.exe /testcontainer:LoadTest1.loadtest /testcontainer:OrderedTest1.orderedtest
è possibile combinare quanto sopra esempi (argomenti) per creare il comando MSTest
th a vestiti sul tuo caso. L'unica limitazione che si ha è che non è possibile utilizzare gli argomenti /testmetada
e /testcontainer
insieme.
Per quanto riguarda l'argomento TestList
, è sufficiente fornire come parametro il nome dell'elenco. Se non viene trovato, l'elenco di test non esiste o non appartiene allo *.vsmdi
definito nell'argomento /testmetadata
.
Sono sicuro che avete già fatto, ma è possibile controllare il seguente link: MSTest.exe Command-Line Options