Skip to content

Add tableTest format type for .table files#2880

Open
nchaugen wants to merge 3 commits intodiffplug:mainfrom
nchaugen:add-tabletest-format-type
Open

Add tableTest format type for .table files#2880
nchaugen wants to merge 3 commits intodiffplug:mainfrom
nchaugen:add-tabletest-format-type

Conversation

@nchaugen
Copy link
Contributor

Summary

  • Add a new tableTest format type for standalone .table files in both Gradle and Maven plugins
  • Follows the Gherkin extension pattern: no default includes, target must be set explicitly
  • Extends the existing TableTestFormatterFunc glue code to handle .table files alongside .java/.kt

Depends on #2879 (bump tabletest-formatter to 1.1.0).

Test plan

  • Unit test: behaviorTableFile() in TableTestFormatterStepTest passes
  • Integration test: TableTestExtensionTest.defaultFormatting() passes — verifies only targeted files are formatted
  • CI build passes

Remove Java 21+ restriction since the library now supports
Java 17+, matching spotless's own minimum requirement.
Add standalone .table file formatting support via a new
tableTest format type in both Gradle and Maven plugins.
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