HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gradle test — Run tests using Gradle. More information: <https://docs.gradle.org/current/userguide/java_testing.ht

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrungradle testclitestsmoreusinggradle

Problem

How to use the gradle test command: Run tests using Gradle. More information: <https://docs.gradle.org/current/userguide/java_testing.html>.

Solution

gradle test — Run tests using Gradle. More information: <https://docs.gradle.org/current/userguide/java_testing.html>.

Run all tests:
gradle test


Run tests with detailed output:
gradle test {{[-i|--info]}}


Run a specific test class:
gradle test --tests {{class_name}}


Run tests matching a pattern:
gradle test --tests "{{pattern}}"


Rerun tests even if up-to-date:
gradle test --rerun

Code Snippets

Run all tests

gradle test

Run tests with detailed output

gradle test {{[-i|--info]}}

Run a specific test class

gradle test --tests {{class_name}}

Run tests matching a pattern

gradle test --tests "{{pattern}}"

Rerun tests even if up-to-date

gradle test --rerun

Context

tldr-pages: common/gradle test

Revisions (0)

No revisions yet.