Skip to content

adding xUnit analyser rules and guidelines #2

adding xUnit analyser rules and guidelines

adding xUnit analyser rules and guidelines #2

Triggered via push January 31, 2025 11:06
Status Failure
Total duration 2m 40s
Artifacts 2

csharp.yml

on: push
Matrix: test-csharp
Matrix: test-csharp-container
Fit to window
Zoom out
Zoom in

Annotations

11 errors
lint
Process completed with exit code 2.
test-csharp (8.0, redis, 6.2, always, ubuntu, linux, ubuntu-latest, x64, x86_64-unknown-linux-gnu...: csharp/tests/Integration/GetAndSet.cs#L113
Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)
test-csharp (8.0, redis, 6.2, always, ubuntu, linux, ubuntu-latest, x64, x86_64-unknown-linux-gnu...: csharp/tests/Integration/GetAndSet.cs#L96
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
test-csharp (8.0, redis, 6.2, always, ubuntu, linux, ubuntu-latest, x64, x86_64-unknown-linux-gnu...: csharp/tests/Integration/GetAndSet.cs#L113
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
test-csharp (8.0, valkey, 8.0, always, ubuntu, linux, ubuntu-latest, x64, x86_64-unknown-linux-gn...: csharp/tests/Integration/GetAndSet.cs#L113
Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)
test-csharp (8.0, valkey, 8.0, always, ubuntu, linux, ubuntu-latest, x64, x86_64-unknown-linux-gn...: csharp/tests/Integration/GetAndSet.cs#L96
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)
test-csharp (8.0, valkey, 8.0, always, ubuntu, linux, ubuntu-latest, x64, x86_64-unknown-linux-gn...: csharp/tests/Integration/GetAndSet.cs#L113
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken to allow test cancellation to be more responsive. (https://xunit.net/xunit.analyzers/rules/xUnit1051)

Artifacts

Produced during runtime
Name Size
test-reports-dotnet-8.0-redis-6.2-ubuntu-latest
16.2 KB
test-reports-dotnet-8.0-valkey-8.0-ubuntu-latest
19.5 KB