Testing with Gradle Java Plugin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
<font color=darkgray>TODO process https://docs.gradle.org/current/userguide/java_testing.html</font> | <font color=darkgray>TODO process https://docs.gradle.org/current/userguide/java_testing.html</font> | ||
=Configuring the "test" Task= | |||
Use a script block in [[build.gradle]]: | |||
<syntaxhighlight lang='groovy'> | |||
test { | |||
useJUnit() | |||
maxHeapSize = '1G' | |||
} | |||
</syntaxhighlight> |
Revision as of 21:48, 25 October 2018
External
- Gradle Docs - Testing in Java & JVM projects https://docs.gradle.org/current/userguide/java_testing.html
Internal
Overview
Testing is performed by the "test" task (implemented by Test), which automatically detects and executes all unit tests in the test source set and generates a report once test execution is complete. JUnit and TestNG are both supported.
TODO process https://docs.gradle.org/current/userguide/java_testing.html
Configuring the "test" Task
Use a script block in build.gradle:
test {
useJUnit()
maxHeapSize = '1G'
}