Handling both mstest args and runsettings options after --

This commit is contained in:
Harsh Jain 2016-12-30 15:34:00 +05:30
parent 8d86e14d44
commit 245727183c
4 changed files with 42 additions and 28 deletions

View file

@ -167,7 +167,7 @@ namespace Microsoft.DotNet.Cli.Test.Tests
// Call test with logger enable
CommandResult result = new DotnetTestCommand()
.WithWorkingDirectory(testProjectDirectory)
.ExecuteWithCapturedOutput(" --logger \"trx;logfilename=custom.trx\" -- RunConfiguration.ResultsDirectory=" + trxLoggerDirectory);
.ExecuteWithCapturedOutput("--logger \"trx;logfilename=custom.trx\" -- RunConfiguration.ResultsDirectory=" + trxLoggerDirectory);
// Verify
String[] trxFiles = Directory.GetFiles(trxLoggerDirectory, "*.trx");