Skip to content

Run compatibility adapter tests on the JUnit Platform - #3206

Open
Pankraz76 wants to merge 1 commit into
diffplug:mainfrom
Pankraz76:fix/compat-tests-junit-platform
Open

Pankraz76 wants to merge 1 commit into
diffplug:mainfrom
Pankraz76:fix/compat-tests-junit-platform

Conversation

@Pankraz76

@Pankraz76 Pankraz76 commented Nov 23, 2026 •

Copy link
Copy Markdown

The test tasks registered by the version-compatibility plugin (testCompatKtLint1Dot0Dot0, testCompatCleanthat2Dot1, …) never call useJUnitPlatform(), so they discover none of the JUnit 5 adapter tests. Because lib sets failOnNoDiscoveredTests = false, this went unnoticed: the compat adapter tests have been silently skipped.

Before: :lib:testCompatKtLint1Dot0Dot0 → Executed 0 tests
After: KtLintCompat1Dot0Dot0AdapterTest 2/2 and JavaCleanthatRefactorerFuncTest 1/1 pass. The diktat compat source sets have no tests.

Build-only change with no user-visible effect, so no CHANGES.md entry.

  • PR allows edits from maintainers
  • Summary of the change
  • CHANGES.md entry (not needed, build-only change)

🤖 Generated with Claude Code

https://claude.ai/code/session_01MTr23vEiR4QymHV1bKhe6h

The test tasks registered by the version-compatibility plugin
(testCompatKtLint1Dot0Dot0, testCompatCleanthat2Dot1, ...) never called
useJUnitPlatform(), so they discovered none of the JUnit 5 adapter tests.
Together with failOnNoDiscoveredTests = false this went unnoticed and the
adapter tests have silently been skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MTr23vEiR4QymHV1bKhe6h
@Pankraz76
Pankraz76 marked this pull request as ready for review November 23, 2026 16:06

This branch has not been deployed

No deployments
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.

2 participants