Bump Spectre.Console and Spectre.Console.Testing #63
build.yml
on: pull_request
Annotations
10 errors, 6 warnings, and 3 notices
|
ExecuteAsync_WithFailedExtraction_ReturnsExitCode:
Solutions/DeadCode.Tests/CLI/Commands/FullCommandTests.cs#L204
Test method DeadCode.Tests.CLI.Commands.FullCommandTests.ExecuteAsync_WithFailedExtraction_ReturnsExitCode threw exception:
System.TypeLoadException: Could not load type 'Spectre.Console.Style' from assembly 'Spectre.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=170fe27f8af98a30'.
|
|
ExecuteAsync_WritesExpectedConsoleOutput:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L424
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_WritesExpectedConsoleOutput threw exception:
Shouldly.ShouldAssertException: testConsole.Output;
output
should contain (case insensitive comparison)
"✓"
but was actually
"System.TypeLoadException: Could not load type 'Spectre.Console.Style' from
assembly 'Spectre.Consol..."
|
|
ExecuteAsync_AggregatesMultipleTraceFiles:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L349
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_AggregatesMultipleTraceFiles threw exception:
Shouldly.ShouldAssertException: await command.ExecuteAsync(context, settings, CancellationToken.None);
// Assert
result
should be
0
but was
1
|
|
ExecuteAsync_FiltersReportByConfidenceLevel:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L307
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_FiltersReportByConfidenceLevel threw exception:
Shouldly.ShouldAssertException: await command.ExecuteAsync(context, settings, CancellationToken.None);
// Assert
result
should be
0
but was
1
|
|
ExecuteAsync_WithException_LogsErrorAndReturns1:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L274
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_WithException_LogsErrorAndReturns1 threw exception:
NSubstitute.Exceptions.ReceivedCallsException: Expected to receive a call matching:
Log<FormattedLogValues>(Error, 0, Failed to analyze redundancy, System.InvalidOperationException: Test error, Func<FormattedLogValues, Exception, String>)
Actually received no matching calls.
Received 2 non-matching calls (non-matching arguments indicated with '*' characters):
Log<FormattedLogValues>(*Information*, 0, *Starting redundancy analysis*, *<null>*, Func<FormattedLogValues, Exception, String>)
Log<FormattedLogValues>(Error, 0, Failed to analyze redundancy, *System.TypeLoadException: Could not load type 'Spectre.Console.Style' from assembly 'Spectre.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=170fe27f8af98a30'.
at DeadCode.CLI.Commands.AnalyzeCommand.<>c.<ExecuteAsync>b__7_0(StatusContext ctx) in /home/runner/work/deadcode/deadcode/Solutions/DeadCode/CLI/Commands/AnalyzeCommand.cs:line 94
at Spectre.Console.Status.<>c__DisplayClass14_0.<Start>b__0(StatusContext ctx) in /_/src/Spectre.Console/Live/Status/Status.cs:line 44
at Spectre.Console.Status.<>c__DisplayClass16_0.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/Status/Status.cs:line 76
--- End of stack trace from previous location ---
at Spectre.Console.Status.<>c__DisplayClass17_0`1.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/Status/Status.cs:line 114
--- End of stack trace from previous location ---
at Spectre.Console.Progress.<>c__DisplayClass33_0`1.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/Progress/Progress.cs:line 135
--- End of stack trace from previous location ---
at Spectre.Console.Testing.NoopExclusivityMode.RunAsync[T](Func`1 func) in /_/src/Spectre.Console.Testing/Internal/NoopExclusivityMode.cs:line 12
at Spectre.Console.Progress.StartAsync[T](Func`2 action) in /_/src/Spectre.Console/Live/Progress/Progress.cs:line 118
at Spectre.Console.Status.StartAsync[T](String status, Func`2 func) in /_/src/Spectre.Console/Live/Status/Status.cs:line 111
at Spectre.Console.Status.StartAsync(String status, Func`2 action) in /_/src/Spectre.Console/Live/Status/Status.cs:line 74
at Spectre.Console.Status.Start(String status, Action`1 action) in /_/src/Spectre.Console/Live/Status/Status.cs:line 48
at DeadCode.CLI.Commands.AnalyzeCommand.ExecuteAsync(CommandContext context, Settings settings, CancellationToken cancellation) in /home/runner/work/deadcode/deadcode/Solutions/DeadCode/CLI/Commands/AnalyzeCommand.cs:line 91*, Func<FormattedLogValues, Exception, String>)
|
|
ExecuteAsync_WithDirectoryTracePath_FindsTraceFiles:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L205
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_WithDirectoryTracePath_FindsTraceFiles threw exception:
Shouldly.ShouldAssertException: await command.ExecuteAsync(context, settings, CancellationToken.None);
// Assert
result
should be
0
but was
1
|
|
ExecuteAsync_WithNoTraceFiles_Returns1:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L246
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_WithNoTraceFiles_Returns1 threw exception:
Shouldly.ShouldAssertException: testConsole.Output;
output
should contain (case insensitive comparison)
"No trace files found!"
but was actually
"System.TypeLoadException: Could not load type 'Spectre.Console.Style' from
assembly 'Spectre.Consol..."
|
|
ExecuteAsync_WithValidInput_SuccessfulExecution:
Solutions/DeadCode.Tests/CLI/Commands/AnalyzeCommandTests.cs#L165
Test method DeadCode.Tests.CLI.Commands.AnalyzeCommandTests.ExecuteAsync_WithValidInput_SuccessfulExecution threw exception:
Shouldly.ShouldAssertException: await command.ExecuteAsync(context, settings, CancellationToken.None);
// Assert
result
should be
0
but was
1
|
|
Main_WithHelpFlag_ShowsHelp:
Solutions/DeadCode.Tests/Integration/ProgramIntegrationTests.cs#L12
Test method DeadCode.Tests.Integration.ProgramIntegrationTests.Main_WithHelpFlag_ShowsHelp threw exception:
Shouldly.ShouldAssertException: process.ExitCode
should be
0
but was
134
|
|
Main_WithVersionFlag_ShowsVersion:
Solutions/DeadCode.Tests/Integration/ProgramIntegrationTests.cs#L46
Test method DeadCode.Tests.Integration.ProgramIntegrationTests.Main_WithVersionFlag_ShowsVersion threw exception:
Shouldly.ShouldAssertException: process.ExitCode
should be
0
but was
134
|
|
build / Compile & Analyse
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
build / Test
Could not find any NUnit XML files for *TestResults.xml
|
|
build / Test
Could not find any JUnit XML files for **/*-test-results.xml
|
|
build / Test
Input 'junit_files' has been deprecated with message: Use "files" option instead.
|
|
build / Test
Input 'trx_files' has been deprecated with message: Use "files" option instead.
|
|
build / Test
Input 'nunit_files' has been deprecated with message: Use "files" option instead.
|
|
Analysis OK
Analysis phase completed successfully
|
|
Compile OK
Compile phase completed successfully
|
|
Package OK
Package phase completed successfully
|