Test task docs suggest eager task configuration
Open
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
Assessment
This issue has not been assessed yet.