We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205c809 commit 5796696Copy full SHA for 5796696
src/CodeQLToolkit.Features.Test/Commands/Targets/ValidateUnitTestsCommand.cs
@@ -127,7 +127,9 @@ public override void Run()
127
}
128
129
130
- if (unitTestResults.Select(x => x.pass == false).Count() > 0)
+ var failedTests = unitTestResults.Select(x=>x).Where(x=>x.pass==false).ToArray();
131
+
132
+ if (failedTests.Length > 0)
133
{
134
DieWithError("One or more failures during run unit tests.");
135
0 commit comments