coverlet icon indicating copy to clipboard operation
coverlet copied to clipboard

enable skipped tests

Open Bertk opened this issue 7 months ago • 1 comments

Solved with PR #1745

Bertk avatar Apr 13 '25 09:04 Bertk

AsyncAwait_Issue_669_2 test fails in CI under Windows OS but is successfully executed locally using:

dotnet test test\coverlet.core.coverage.tests /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[coverlet.core.tests.samples.netstandard]*" --results-directory:".\artifacts\reports"
Windows_NT_debug_2 Coverlet.CoreCoverage.Tests.CoverageTests.AsyncAwait_Issue_669_2

Result Details Failed 11m ago on fv-az616-840 Duration0:00:00.937 Ownernot available Date started4/13/2025, 11:08:09 AM Date completed4/13/2025, 11:08:10 AM Failing since11m ago Failing since build20250413.2

Debug

Work items

Attachments

History

Error message Function exit code failed with exit code: 134 Unhandled exception: System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable1 source, Func2 predicate, Boolean& found) at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate) at Coverlet.Core.Tests.TestInstrumentationHelper.Run[T](Func2 callMethod, Func2 includeFilter, Func2 excludeFilter, Func2 doesNotReturnAttributes, String persistPrepareResultToFile, Boolean disableRestoreModules, Boolean skipAutoProps, String assemblyLocation) in //test/coverlet.core.coverage.tests/Coverage/InstrumenterHelper.cs:line 139 at Coverlet.CoreCoverage.Tests.CoverageTests.<>c.<<AsyncAwait_Issue_669_2>b__2_0>d.MoveNext() in //test/coverlet.core.coverage.tests/Coverage/CoverageTests.AsyncAwait.cs:line 113 --- End of stack trace from previous location --- at Tmds.Utils.ExecFunction.Program.Main(String[] args)

Stack trace at Coverlet.Core.Tests.ExternalProcessExecutionTest.<>c.<.ctor>b__1_1(Process p) in //test/coverlet.core.coverage.tests/Coverage/InstrumenterHelper.cs:line 332 at Tmds.Utils.ExecFunction.Start(MethodInfo method, String[] args, Action1 configure, Boolean waitForExit, Boolean returnTask) at Tmds.Utils.ExecFunction.Run(Func2 action, String[] args, Action1 configure) at Tmds.Utils.FunctionExecutor.Run(Func2 action, String[] args, Action`1 configure) at Coverlet.CoreCoverage.Tests.CoverageTests.AsyncAwait_Issue_669_2() in //test/coverlet.core.coverage.tests/Coverage/CoverageTests.AsyncAwait.cs:line 111 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Bertk avatar Apr 13 '25 09:04 Bertk