Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 12 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end_of_line = crlf

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
indent_size = 2
insert_final_newline = true
charset = utf-8-bom
###############################
Expand Down Expand Up @@ -132,12 +132,15 @@ dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
dotnet_diagnostic.IDE1006.severity = warning
# IDE0090: Use 'new(...)'
dotnet_diagnostic.IDE0090.severity = warning
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 2
end_of_line = crlf
###############################
# C# Coding Conventions #
###############################
[*.cs]
# Organize usings
csharp_using_directive_placement = outside_namespace:warning
csharp_using_directive_placement = outside_namespace:silent
# var preferences - use keywords instead of BCL types, and permit var only when the type is clear
csharp_style_var_for_built_in_types = false:warning
csharp_style_var_when_type_is_apparent = true:warning
Expand Down Expand Up @@ -213,3 +216,10 @@ csharp_space_between_square_brackets = false
# Wrapping preferences
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true
csharp_prefer_simple_using_statement = true:suggestion
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
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
6 changes: 6 additions & 0 deletions Documentation/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed
-Fix problem with coverage for .net5 WPF application [#1221](https://github.com/coverlet-coverage/coverlet/issues/1221) by https://github.com/lg2de
-Fix unable to instrument module for Microsoft.AspNetCore.Mvc.Razor [#1459](https://github.com/coverlet-coverage/coverlet/issues/1459) by https://github.com/lg2de

## Release date 2023-05-21
### Packages
coverlet.msbuild 6.0.0
Expand Down
12 changes: 6 additions & 6 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,11 +37,13 @@ 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.
```
--exclude-by-attribute 'Obsolete' --exclude-by-attribute'GeneratedCode' --exclude-by-attribute 'CompilerGenerated'
--exclude-by-attribute 'Obsolete' --exclude-by-attribute 'GeneratedCode' --exclude-by-attribute 'CompilerGenerated'
```
For `--merge-with` [check the sample](Examples.md).

Expand Down
Loading