diff --git a/src/testCommands.ts b/src/testCommands.ts index 9abdae3..ed7fa14 100644 --- a/src/testCommands.ts +++ b/src/testCommands.ts @@ -88,7 +88,7 @@ export class TestCommands { let command = `dotnet test${this.getDotNetTestOptions()}${this.outputTestResults()}`; if (testName && testName.length) { - command = command + ` --filter FullyQualifiedName~${testName.replace(/\(.*\)/g, "")}`; + command = command + ` --filter "FullyQualifiedName~${testName.replace(/\(.*\)/g, "")}"`; } this.lastRunTestName = testName; diff --git a/test/fsxunittests/FSharpTests.fsproj b/test/fsxunittests/FSharpTests.fsproj new file mode 100644 index 0000000..5eff755 --- /dev/null +++ b/test/fsxunittests/FSharpTests.fsproj @@ -0,0 +1,18 @@ + + + + netcoreapp2.0 + + false + + + + + + + + + + + + \ No newline at end of file diff --git a/test/fsxunittests/TestClass1.fs b/test/fsxunittests/TestClass1.fs new file mode 100644 index 0000000..5b080c4 --- /dev/null +++ b/test/fsxunittests/TestClass1.fs @@ -0,0 +1,8 @@ +module FSharpTests + +open Xunit +open Shouldly + +[] +let ``This is a test that has spaces in it's name`` () = + (true).ShouldBe(true) \ No newline at end of file