Skip to content

Commit e907fa3

Browse files
test fix
1 parent e119785 commit e907fa3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/AD.FsCheck.MSTest.Tests/CommandLineTest.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ protected async Task<string> Run(string testName, Fetch fetch)
6767
static string CreateTestFileName() => Path.ChangeExtension(Path.GetTempFileName(), ".trx");
6868

6969
async Task RunCommandLineTest(string testName) =>
70-
await Process.Start("dotnet", $@"test ..\..\..\. --no-build --environment {EnvironmentVariable}=true --logger ""trx;LogFileName={fileName}"" --filter ""FullyQualifiedName=AD.FsCheck.MSTest.Tests.{className}.{testName}""").WaitForExitAsync();
70+
await Process.Start("dotnet", @"test ..\..\..\." +
71+
#if RELEASE
72+
" --configuration Release" +
73+
#endif
74+
$@" --no-build --environment {EnvironmentVariable}=true --logger ""trx;LogFileName={fileName}"" --filter ""FullyQualifiedName=AD.FsCheck.MSTest.Tests.{className}.{testName}""").WaitForExitAsync();
7175

7276
async Task<string> FetchTestOutput(Fetch fetch)
7377
{

0 commit comments

Comments
 (0)