Skip to content

Commit 8046285

Browse files
committed
Fix async test aggregation
1 parent 2778033 commit 8046285

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/SWBUniversalPlatform/TestEntryPointGenerationTaskAction.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ class TestEntryPointGenerationTaskAction: TaskAction {
159159

160160
let testTuples = testClass.testMethods.map { method in
161161
let basename = method.name.hasSuffix("()") ? String(method.name.dropLast(2)) : method.name
162-
return " (\"\(basename)\", \(testClass.name).\(basename))"
162+
if method.isAsync {
163+
return " (\"\(basename)\", asyncTest(\(testClass.name).\(basename)))"
164+
} else {
165+
return " (\"\(basename)\", \(testClass.name).\(basename))"
166+
}
163167
}
164168
fragment += " testCase([\(testTuples.joined(separator: ",\n"))]),\n"
165169
}

0 commit comments

Comments
 (0)