Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b0170ef
use System.CommandLine for coverlet.console
Bertk May 31, 2023
0504ca3
resolve review comments and add DotnetTool tests
Bertk Jun 26, 2023
468de3c
add space between CLI argument (#1499)
EmosewaMC Jul 23, 2023
26bd50b
Fix resolving assemblies from frameworks not referenced by coverlet i…
lg2de Jul 23, 2023
95b5cdf
Make tests run on all platforms (#1492)
0xced Jul 23, 2023
5bc18ec
Integration test for assembly resolver for mvc.razor (#1502)
daveMueller Jul 26, 2023
a63e4d1
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
f0f0688
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
b1fcb6f
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
065468c
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
0c260f8
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
dc4db06
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
81bd553
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
37372ac
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
b3bc7c7
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
6b03f13
remove spelling configuration
Bertk Aug 2, 2023
675cd30
use System.CommandLine for coverlet.console
Bertk May 31, 2023
d468237
resolve review comments and add DotnetTool tests
Bertk Jun 26, 2023
e83ab4d
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
75f6fdb
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
9d16c9d
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
3d303c8
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
7facddd
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
7f0b53e
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
c5d03fa
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
8d35fa1
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
6fdac0d
Update src/coverlet.console/Program.cs
Bertk Aug 2, 2023
ab171a2
remove spelling configuration
Bertk Aug 2, 2023
e57a456
Merge branch 'commandline' of https://github.com/Bertk/coverlet into …
Bertk Aug 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

spelling_exclusion_path = ./exclusion.dic
spelling_languages = en-us

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
Expand Down
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<AnalysisLevel>preview</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<LangVersion>preview</LangVersion>
<NoWarn>$(NoWarn);NU5105</NoWarn>
<NoWarn>$(NoWarn);NU5105;CS1591</NoWarn>
<RestoreSources>
https://api.nuget.org/v3/index.json;
</RestoreSources>
Expand All @@ -25,7 +25,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project>
<ItemGroup>
<PackageReference Update="McMaster.Extensions.CommandLineUtils" Version="2.3.4" />
<PackageReference Update="Microsoft.Build.Utilities.Core" Version="15.5.180"/>
<PackageReference Update="Microsoft.CodeAnalysis.CSharp" Version="2.10.0" />
<PackageReference Update="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
Expand All @@ -25,6 +24,7 @@
<PackageReference Update="xunit.assert" Version="2.4.2" />
<PackageReference Update="xunit.runner.visualstudio" Version="2.4.1"/>
<PackageReference Update="Tmds.ExecFunction" Version="0.4.0" />
<PackageReference Update="System.CommandLine" Version="2.0.0-beta4.22272.1" />
</ItemGroup>

<!-- Deterministic build workaround -->
Expand Down
10 changes: 5 additions & 5 deletions Documentation/GlobalTool.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ Arguments:
<ASSEMBLY|DIRECTORY> Path to the test assembly or application directory.

Options:
-h|--help Show help information
-v|--version Show version information
-t|--target Path to the test runner application.
-t|--target (REQUIRED) Path to the test runner application.
-a|--targetargs Arguments to be passed to the test runner.
-o|--output Output of the generated coverage report
-v|--verbosity Sets the verbosity level of the command. Allowed values are quiet, minimal, normal, detailed.
-f|--format Format of the generated coverage report.
-f|--format Format of the generated coverage report. [default: json]
--threshold Exits with error if the coverage % is below value.
--threshold-type Coverage type to apply the threshold to.
--threshold-stat Coverage statistic used to enforce the threshold value.
--threshold-stat Coverage statistic used to enforce the threshold value. [default: Minimum]
--exclude Filter expressions to exclude specific modules and types.
--include Filter expressions to include only specific modules and types.
--exclude-by-file Glob patterns specifying source files to exclude.
Expand All @@ -39,6 +37,8 @@ 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.
--version Show version information
-?, -h, --help Show help and usage information
```

NB. For a [multiple value] options you have to specify values multiple times i.e.
Expand Down
Empty file added exclusion.dic
Empty file.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.408",
"version": "6.0.410",
"rollForward": "latestMajor"
}
}
4 changes: 4 additions & 0 deletions src/coverlet.collector/DataCollection/CoverageWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ internal class CoverageWrapper : ICoverageWrapper
/// </summary>
/// <param name="settings">Coverlet settings</param>
/// <param name="coverletLogger">Coverlet logger</param>
/// <param name="instrumentationHelper"></param>
/// <param name="fileSystem"></param>
/// <param name="sourceRootTranslator"></param>
/// <param name="cecilSymbolHelper"></param>
/// <returns>Coverage object</returns>
public Coverage CreateCoverage(CoverletSettings settings, ILogger coverletLogger, IInstrumentationHelper instrumentationHelper, IFileSystem fileSystem, ISourceRootTranslator sourceRootTranslator, ICecilSymbolHelper cecilSymbolHelper)
{
Expand Down
2 changes: 1 addition & 1 deletion src/coverlet.collector/coverlet.collector.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyTitle>coverlet.collector</AssemblyTitle>
Expand Down
Loading