Skip to content

Commit 11f0d4e

Browse files
committed
ci: print skipped/incomplete test names in JUnit summary group
The workflow currently reports a bare 'skipped=4' (which counts both markTestSkipped and markTestIncomplete from JUnit's <skipped> element). We've reached errors=0 failures=0, so the 4 in 'skipped' are the next candidates to investigate or accept. Print each one's classname, test name, and skip message under a collapsed log group so we can see which tests fire markTestSkipped/markTestIncomplete on Turso.
1 parent d4ad384 commit 11f0d4e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/phpunit-tests-turso.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,16 @@ jobs:
23222322
assertions = sum(int(c.get('assertions', 0) or 0) for c in cases)
23232323
total = len(cases)
23242324
source = 'junit'
2325+
# Surface skipped/incomplete test names so we know what's left.
2326+
skipped_cases = [c for c in cases if c.find('skipped') is not None]
2327+
if skipped_cases:
2328+
print('::group::Skipped/incomplete tests')
2329+
for c in skipped_cases:
2330+
cls = c.get('classname', '?')
2331+
name = c.get('name', '?')
2332+
msg = (c.find('skipped').get('message') or '').strip()
2333+
print(f' - {cls}::{name} -- {msg}')
2334+
print('::endgroup::')
23252335
else:
23262336
# PHPUnit summary line: "Tests: N, Assertions: A, Errors: E, Failures: F, Skipped: S, Incomplete: I."
23272337
text = open('/tmp/phpunit-turso.stdout').read()

0 commit comments

Comments
 (0)