Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 6 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ jobs:
run: dotnet build --no-restore --configuration Release

- name: Test with coverage
run: |
cd AutoTestId.UnitTests
dotnet run --configuration Release -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml

run: >
dotnet test --no-build --configuration Release
--collect:"XPlat Code Coverage"
--results-directory ./coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./AutoTestId.UnitTests/coverage.cobertura.xml
directory: ./coverage
fail_ci_if_error: false
verbose: true

Expand Down
1 change: 1 addition & 0 deletions AutoTestId.UnitTests/AutoTestId.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<PackageReference Include="Shouldly" Version="4.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
<PackageReference Include="coverlet.collector" Version="6.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion AutoTestId/Commands/FileCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class FileCommand : Command<FileCommandSettings>
/// <param name="context">The command context</param>
/// <param name="settings">The command settings</param>
/// <returns>Exit code (0 for success, non-zero for failure)</returns>
public override int Execute([NotNull] CommandContext context, [NotNull] FileCommandSettings settings)
public override int Execute([NotNull] CommandContext context, [NotNull] FileCommandSettings settings, CancellationToken cancellationToken)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion AutoTestId/Commands/FolderCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class FolderCommand : Command<FolderCommandSettings>
/// <param name="context">The command context</param>
/// <param name="settings">The command settings</param>
/// <returns>Exit code (0 for success, non-zero for failure)</returns>
public override int Execute([NotNull] CommandContext context, [NotNull] FolderCommandSettings settings)
public override int Execute([NotNull] CommandContext context, [NotNull] FolderCommandSettings settings, CancellationToken cancellationToken)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion AutoTestId/Commands/ProjectCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ProjectCommand : Command<ProjectCommandSettings>
/// <param name="context">The command context</param>
/// <param name="settings">The command settings</param>
/// <returns>Exit code (0 for success, non-zero for failure)</returns>
public override int Execute([NotNull] CommandContext context, [NotNull] ProjectCommandSettings settings)
public override int Execute([NotNull] CommandContext context, [NotNull] ProjectCommandSettings settings, CancellationToken cancellationToken)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion AutoTestId/Commands/SolutionCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SolutionCommand : Command<SolutionCommandSettings>
/// <param name="context">The command context</param>
/// <param name="settings">The command settings</param>
/// <returns>Exit code (0 for success, non-zero for failure)</returns>
public override int Execute([NotNull] CommandContext context, [NotNull] SolutionCommandSettings settings)
public override int Execute([NotNull] CommandContext context, [NotNull] SolutionCommandSettings settings, CancellationToken cancellationToken)
{
try
{
Expand Down
Loading