mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
512 B
Plaintext
30 lines
512 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|