Skip to content

Commit 4caa268

Browse files
committed
fix: treat invalid, cancelled, and tests failing with exceptions as failures in run_tests
1 parent 54706d6 commit 4caa268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/Services/TestRunnerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private JObject BuildResultJson(List<ITestResultAdaptor> results, ITestResultAda
197197
{
198198
var arr = new JArray(results
199199
.Where(r => !r.HasChildren)
200-
.Where(r => !_returnOnlyFailures || r.ResultState == "Failed")
200+
.Where(r => !_returnOnlyFailures || r.ResultState.StartsWith("Failed"))
201201
.Select(r => new JObject {
202202
["name"] = r.Name,
203203
["fullName"] = r.FullName,

0 commit comments

Comments
 (0)