Skip to content

build(test): a test class that leaves no result fails the build (#9) - #10

Merged
astrapi69 merged 1 commit into
developfrom
build/9-test-results-complete
Oct 31, 2026
Merged

astrapi69 merged 1 commit into
developfrom
build/9-test-results-complete

Conversation

@astrapi69

Copy link
Copy Markdown
Owner

Closes #9

Adds gradle/test-results-complete.gradle, the check of astrapi69/swing-components#34 in its fourth version, and applies it to every test task: a compiled test class that leaves no result fails the build and is named. A test that ends the test JVM (System.exit) can then no longer let the build report green over test classes that never ran.

Measured on the default branch with the check applied, ./gradlew test --rerun on an Xvfb of its own: all 3 test classes left a result. CI on this pull request is the run on the real build.

gradle/test-results-complete.gradle, the check of astrapi69/swing-components#34 in its fourth version: after
every test task, each compiled test class must have left a result, or the build fails and names it. A
test that ends the test JVM no longer passes as green.

Measured before the change, in a scratch clone: all 3 test classes left a result.

Closes #9
@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.88%. Comparing base (6af71f1) to head (f5bb5a0).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #10   +/-   ##
==========================================
  Coverage      88.88%   88.88%           
  Complexity        16       16           
==========================================
  Files              3        3           
  Lines             54       54           
  Branches           3        3           
==========================================
  Hits              48       48           
  Misses             6        6           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@astrapi69
astrapi69 merged commit c0829b5 into develop Oct 31, 2026
6 checks passed
@astrapi69
astrapi69 deleted the build/9-test-results-complete branch October 31, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A test class that leaves no result does not fail the build

2 participants