gradle / gradle/gradle

Test task docs suggest eager task configuration

Open
#34,412 1 comment 0 reactions 1 assignee Claimed by @lkasso View on GitHub
a:documentation in:testing
Dominant language
Groovy
Stars
18.8k
Forks
5.3k
Avg merge
1d 20h
Merged PRs (30d)
160

Description

### Issue type

Wrong or misleading information

### Problem description

Test task docs suggest eager task configuration

```
plugins {
id("java-library") // adds 'test' task
}

test {
// discover and execute JUnit4-based tests
useJUnit()
}
```

this makes configuration of the test task eager.

### Context (optional)

_No response_

### Page with the problem

https://docs.gradle.org/nightly/javadoc/org/gradle/api/tasks/testing/Test.html

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.