Skip to content

Commit

Permalink
fix: build and run tests when repo path contains whitespace. Fix test…
Browse files Browse the repository at this point in the history
… flakiness. (#42)
  • Loading branch information
codito committed Sep 7, 2023
1 parent 2e8c2e6 commit 6eb1221
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 123 deletions.
2 changes: 1 addition & 1 deletion test/TestLogger.AcceptanceTests/DotnetTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void Execute(string assemblyName, string args, bool collectCoverag
UseShellExecute = false,
RedirectStandardOutput = true,
FileName = "dotnet",
Arguments = $"test --no-build --logger:\"json;LogFilePath={ResultFile}{args}\" {GetAssemblyPath(assemblyName)}\\{assemblyName}.csproj"
Arguments = $"test --no-build --logger:\"json;LogFilePath={ResultFile}{args}\" \"{GetAssemblyPath(assemblyName)}\\{assemblyName}.csproj\""
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -981,16 +981,16 @@
Method: MultipleCategories,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
Category2,
Category1
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1030,15 +1030,15 @@
Method: WithCategory,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
Nunit Test Category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand All @@ -1056,15 +1056,15 @@
}
],
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
NUnit Test Category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1201,15 +1201,15 @@
Method: FailTest22,
Result: Failed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
failing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1249,15 +1249,15 @@
Method: PassTest21,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
passing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1303,15 +1303,15 @@
Method: FailTest22,
Result: Failed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
failing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1351,15 +1351,15 @@
Method: PassTest21,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
passing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -961,16 +961,16 @@
Method: MultipleCategories,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
Category2,
Category1
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1010,15 +1010,15 @@
Method: WithCategory,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
Nunit Test Category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand All @@ -1036,15 +1036,15 @@
}
],
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
NUnit Test Category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1181,15 +1181,15 @@
Method: FailTest22,
Result: Failed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
failing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1229,15 +1229,15 @@
Method: PassTest21,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
passing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1283,15 +1283,15 @@
Method: FailTest22,
Result: Failed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
failing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down Expand Up @@ -1331,15 +1331,15 @@
Method: PassTest21,
Result: Passed,
Properties: [
{
Key: NUnit.Seed,
Value: 1100
},
{
Key: NUnit.TestCategory,
Value: [
passing category
]
},
{
Key: NUnit.Seed,
Value: 1100
}
]
},
Expand Down

0 comments on commit 6eb1221

Please sign in to comment.