Skip to content

Always run Java tests instead of letting Gradle skip them as up-to-date - #334

Merged
hugs merged 1 commit into
mainfrom
fix/java-test-always-runs
Aug 9, 2026
Merged

Always run Java tests instead of letting Gradle skip them as up-to-date#334
hugs merged 1 commit into
mainfrom
fix/java-test-always-runs

Conversation

@hugs

@hugs hugs commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Gradle's up-to-date check skipped the :test task whenever Java sources and classpath were unchanged — make test-java reported green in under a second with zero tests executed. The vibium binary and the browser aren't declared Gradle inputs, so even a fresh Go build wouldn't invalidate the cache.

Fix: outputs.upToDateWhen { false } on the test task, matching how the JS and Python suites always rerun. Compilation stays incremental.

Verified locally: make test-java now runs 63 tests (0 failures, 1 skipped) in ~23s.

The vibium binary and browser aren't Gradle inputs, so a cached test
result meant make test-java reported green in under a second without
executing a single test.
@hugs
hugs merged commit 59e4b4b into main Aug 9, 2026
2 checks passed
@hugs
hugs deleted the fix/java-test-always-runs branch August 9, 2026 03:06
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.

1 participant