Skip to content

Gradle Plugin: Add Test Structure Comment Check #146

@sorndotdev

Description

@sorndotdev

Create a Groovy-based Gradle plugin in buildSrc that verifies each test contains all three required comment blocks:

// given
// when
// then

The plugin should allow the blocks to appear on the same line (e.g., // given // when) or split across multiple lines in the given order, as long as all three (given, when, then) are present somewhere in the test body.

Register the plugin so the check runs automatically as part of gradle build.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions