From 2abf9a231b59617a7560cc4ddd9b43efce583ef4 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 11 Dec 2023 21:46:08 +1000 Subject: [PATCH] Fix up argument used --- Documentation/GlobalTool.md | 2 +- test/coverlet.integration.tests/DotnetTool.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/GlobalTool.md b/Documentation/GlobalTool.md index 929093e66..b9b93b606 100644 --- a/Documentation/GlobalTool.md +++ b/Documentation/GlobalTool.md @@ -37,7 +37,7 @@ Options: --use-source-link Specifies whether to use SourceLink URIs in place of file system paths. --does-not-return-attribute Attributes that mark methods that do not return. --exclude-assemblies-without-sources Specifies behaviour of heuristic to ignore assemblies with missing source documents. - --use-mapping-file Specifies the path to a SourceRootsMappings file. + --source-mapping-file Specifies the path to a SourceRootsMappings file. --version Show version information -?, -h, --help Show help and usage information ``` diff --git a/test/coverlet.integration.tests/DotnetTool.cs b/test/coverlet.integration.tests/DotnetTool.cs index d198fff11..ea84cf6d7 100644 --- a/test/coverlet.integration.tests/DotnetTool.cs +++ b/test/coverlet.integration.tests/DotnetTool.cs @@ -135,7 +135,7 @@ public void StandAlonePathMapping() { $"|{clonedTemplateProject.ProjectRootPath}{Path.DirectorySeparatorChar}=/_/" }); - RunCommand(coverletToolCommandPath, $"\"{publishedTestFile}\" --target \"dotnet\" --targetargs \"test {Path.Combine(clonedTemplateProject.ProjectRootPath, ClonedTemplateProject.ProjectFileName)} --no-build\" --include-test-assembly --output \"{clonedTemplateProject.ProjectRootPath}\"{Path.DirectorySeparatorChar} --use-mapping-file \"{mappingFile}\"", out standardOutput, out standardError); + RunCommand(coverletToolCommandPath, $"\"{publishedTestFile}\" --target \"dotnet\" --targetargs \"test {Path.Combine(clonedTemplateProject.ProjectRootPath, ClonedTemplateProject.ProjectFileName)} --no-build\" --include-test-assembly --output \"{clonedTemplateProject.ProjectRootPath}\"{Path.DirectorySeparatorChar} --source-mapping-file \"{mappingFile}\"", out standardOutput, out standardError); if (!string.IsNullOrEmpty(standardError)) { _output.WriteLine(standardError);