diff --git a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs index a8cb880e607e..61713e914251 100644 --- a/src/Cli/dotnet/Commands/Test/TestCommandParser.cs +++ b/src/Cli/dotnet/Commands/Test/TestCommandParser.cs @@ -174,14 +174,14 @@ public static string GetTestRunnerName() builder.AddIniFile(dotnetConfigPath); IConfigurationRoot config = builder.Build(); - var testSection = config.GetSection("dotnet.test"); + var testSection = config.GetSection("dotnet.test.runner"); if (!testSection.Exists()) { return CliConstants.VSTest; } - string runnerNameSection = testSection["runner:name"]; + string runnerNameSection = testSection["name"]; if (string.IsNullOrEmpty(runnerNameSection)) { diff --git a/test/TestAssets/TestProjects/HybridTestRunnerTestProjects/dotnet.config b/test/TestAssets/TestProjects/HybridTestRunnerTestProjects/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/HybridTestRunnerTestProjects/dotnet.config +++ b/test/TestAssets/TestProjects/HybridTestRunnerTestProjects/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/MSTestMetaPackageProjectWithMultipleTFMsSolution/dotnet.config b/test/TestAssets/TestProjects/MSTestMetaPackageProjectWithMultipleTFMsSolution/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/MSTestMetaPackageProjectWithMultipleTFMsSolution/dotnet.config +++ b/test/TestAssets/TestProjects/MSTestMetaPackageProjectWithMultipleTFMsSolution/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDifferentFailures/dotnet.config b/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDifferentFailures/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDifferentFailures/dotnet.config +++ b/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDifferentFailures/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDiscoveredTests/dotnet.config b/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDiscoveredTests/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDiscoveredTests/dotnet.config +++ b/test/TestAssets/TestProjects/MultiTestProjectSolutionWithDiscoveredTests/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/MultiTestProjectSolutionWithTests/dotnet.config b/test/TestAssets/TestProjects/MultiTestProjectSolutionWithTests/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/MultiTestProjectSolutionWithTests/dotnet.config +++ b/test/TestAssets/TestProjects/MultiTestProjectSolutionWithTests/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/MultipleTestProjectSolution/dotnet.config b/test/TestAssets/TestProjects/MultipleTestProjectSolution/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/MultipleTestProjectSolution/dotnet.config +++ b/test/TestAssets/TestProjects/MultipleTestProjectSolution/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/MultipleTestProjectsWithoutSolution/dotnet.config b/test/TestAssets/TestProjects/MultipleTestProjectsWithoutSolution/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/MultipleTestProjectsWithoutSolution/dotnet.config +++ b/test/TestAssets/TestProjects/MultipleTestProjectsWithoutSolution/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/ProjectSolutionForMultipleTFMs/dotnet.config b/test/TestAssets/TestProjects/ProjectSolutionForMultipleTFMs/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/ProjectSolutionForMultipleTFMs/dotnet.config +++ b/test/TestAssets/TestProjects/ProjectSolutionForMultipleTFMs/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectSolution/dotnet.config b/test/TestAssets/TestProjects/TestProjectSolution/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectSolution/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectSolution/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectSolutionWithCodeCoverage/dotnet.config b/test/TestAssets/TestProjects/TestProjectSolutionWithCodeCoverage/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectSolutionWithCodeCoverage/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectSolutionWithCodeCoverage/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectSolutionWithTestsAndArtifacts/dotnet.config b/test/TestAssets/TestProjects/TestProjectSolutionWithTestsAndArtifacts/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectSolutionWithTestsAndArtifacts/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectSolutionWithTestsAndArtifacts/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectWithClassLibrary/dotnet.config b/test/TestAssets/TestProjects/TestProjectWithClassLibrary/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectWithClassLibrary/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectWithClassLibrary/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectWithConditionOnGlobalProperty/dotnet.config b/test/TestAssets/TestProjects/TestProjectWithConditionOnGlobalProperty/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectWithConditionOnGlobalProperty/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectWithConditionOnGlobalProperty/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectWithDiscoveredTests/dotnet.config b/test/TestAssets/TestProjects/TestProjectWithDiscoveredTests/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectWithDiscoveredTests/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectWithDiscoveredTests/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectWithMultipleTFMsSolution/dotnet.config b/test/TestAssets/TestProjects/TestProjectWithMultipleTFMsSolution/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectWithMultipleTFMsSolution/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectWithMultipleTFMsSolution/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file diff --git a/test/TestAssets/TestProjects/TestProjectWithTests/dotnet.config b/test/TestAssets/TestProjects/TestProjectWithTests/dotnet.config index fcc92b88398e..28daa0a28213 100644 --- a/test/TestAssets/TestProjects/TestProjectWithTests/dotnet.config +++ b/test/TestAssets/TestProjects/TestProjectWithTests/dotnet.config @@ -1,2 +1,2 @@ -[dotnet.test:runner] +[dotnet.test.runner] name= "Microsoft.Testing.Platform" \ No newline at end of file