Skip to content

Commit 0504ca3

Browse files
committed
resolve review comments and add DotnetTool tests
1 parent b0170ef commit 0504ca3

File tree

16 files changed

+215
-106
lines changed

16 files changed

+215
-106
lines changed

Directory.Build.props

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<AnalysisLevel>preview</AnalysisLevel>
1414
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1515
<LangVersion>preview</LangVersion>
16-
<NoWarn>$(NoWarn);NU5105</NoWarn>
16+
<NoWarn>$(NoWarn);NU5105;CS1591</NoWarn>
1717
<RestoreSources>
1818
https://api.nuget.org/v3/index.json;
1919
</RestoreSources>
@@ -25,13 +25,7 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133">
29-
<PrivateAssets>all</PrivateAssets>
30-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
31-
</PackageReference>
32-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
33-
<PrivateAssets>all</PrivateAssets>
34-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
35-
</PackageReference>
28+
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
29+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
3630
</ItemGroup>
3731
</Project>

Directory.Build.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<PackageReference Update="xunit.runner.visualstudio" Version="2.4.1"/>
2626
<PackageReference Update="Tmds.ExecFunction" Version="0.4.0" />
2727
<PackageReference Update="System.CommandLine" Version="2.0.0-beta4.22272.1" />
28-
<PackageReference Update="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1" />
2928
</ItemGroup>
3029

3130
<!-- Deterministic build workaround -->

Documentation/GlobalTool.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ Arguments:
1717
<ASSEMBLY|DIRECTORY> Path to the test assembly or application directory.
1818

1919
Options:
20-
-h|--help Show help information
21-
-v|--version Show version information
22-
-t|--target Path to the test runner application.
20+
-t|--target (REQUIRED) Path to the test runner application.
2321
-a|--targetargs Arguments to be passed to the test runner.
2422
-o|--output Output of the generated coverage report
2523
-v|--verbosity Sets the verbosity level of the command. Allowed values are quiet, minimal, normal, detailed.
26-
-f|--format Format of the generated coverage report.
24+
-f|--format Format of the generated coverage report. [default: json]
2725
--threshold Exits with error if the coverage % is below value.
2826
--threshold-type Coverage type to apply the threshold to.
29-
--threshold-stat Coverage statistic used to enforce the threshold value.
27+
--threshold-stat Coverage statistic used to enforce the threshold value. [default: Minimum]
3028
--exclude Filter expressions to exclude specific modules and types.
3129
--include Filter expressions to include only specific modules and types.
3230
--exclude-by-file Glob patterns specifying source files to exclude.
@@ -39,6 +37,8 @@ Options:
3937
--use-source-link Specifies whether to use SourceLink URIs in place of file system paths.
4038
--does-not-return-attribute Attributes that mark methods that do not return.
4139
--exclude-assemblies-without-sources Specifies behaviour of heuristic to ignore assemblies with missing source documents.
40+
--version Show version information
41+
-?, -h, --help Show help and usage information
4242
```
4343
4444
NB. For a [multiple value] options you have to specify values multiple times i.e.

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.408",
3+
"version": "6.0.410",
44
"rollForward": "latestMajor"
55
}
66
}

src/coverlet.collector/DataCollection/CoverageWrapper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ internal class CoverageWrapper : ICoverageWrapper
1717
/// </summary>
1818
/// <param name="settings">Coverlet settings</param>
1919
/// <param name="coverletLogger">Coverlet logger</param>
20+
/// <param name="instrumentationHelper"></param>
21+
/// <param name="fileSystem"></param>
22+
/// <param name="sourceRootTranslator"></param>
23+
/// <param name="cecilSymbolHelper"></param>
2024
/// <returns>Coverage object</returns>
2125
public Coverage CreateCoverage(CoverletSettings settings, ILogger coverletLogger, IInstrumentationHelper instrumentationHelper, IFileSystem fileSystem, ISourceRootTranslator sourceRootTranslator, ICecilSymbolHelper cecilSymbolHelper)
2226
{

src/coverlet.collector/coverlet.collector.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<AssemblyTitle>coverlet.collector</AssemblyTitle>

0 commit comments

Comments
 (0)