gradle test
Run a test task
Options
Name | Description |
---|---|
--continuous | Allows you to automatically re-execute the requested tasks when task inputs change |
--rerun-tasks | This will force test and all task dependencies of test to execute |
--continue | Gradle will execute every task to be executed where all of the dependencies for that task completed without failure |
-?, -h, --help | Shows a help message with all available CLI options |
-v, --version | Prints Gradle, Groovy, Ant, JVM, and operating system version information |
-S, --full-stacktrace | Print out the full (very verbose) stacktrace for any exceptions |
-s, --stacktrace | Print out the stacktrace also for user exceptions (e.g. compile error) |
--scan | Create a build scan with fine-grained information about all aspects of your Gradle build |
-Dorg.gradle.debug | Debug Gradle client (non-Daemon) process. Gradle will wait for you to attach a debugger at localhost:5005 by default |
-Dorg.gradle.daemon.debug | Debug Gradle Daemon process |
--build-cache | Toggles the Gradle build cache. Gradle will try to reuse outputs from previous builds. Default is off |
--no-build-cache | Toggles the Gradle build cache. Gradle will try to reuse outputs from previous builds. Default is off |
--configure-on-demand | Toggles Configure-on-demand. Only relevant projects are configured in this build run. Default is off |
--no-configure-on-demand | Toggles Configure-on-demand. Only relevant projects are configured in this build run. Default is off |
--max-workers <number> | Sets maximum number of workers that Gradle may use. Default is number of processors |
--parallel | Build projects in parallel. For limitations of this option, see Parallel Project Execution. Default is off |
--no-parallel | Disables --parallel |
--priority <priority> | Specifies the scheduling priority for the Gradle daemon and all processes launched by it |
--profile | Generates a high-level performance report in the $buildDir/reports/profile directory. --scan is preferred |
--scan | Generate a build scan with detailed performance diagnostics |
--watch-fs | Toggles watching the file system. When enabled Gradle re-uses information it collects about the file system between builds. Enabled by default on operating systems where Gradle supports this feature |
--no-watch-fs | Toggles watching the file system. When enabled Gradle re-uses information it collects about the file system between builds. Enabled by default on operating systems where Gradle supports this feature |
--daemon | Use the Gradle Daemon to run the build. Starts the daemon if not running or existing daemon busy. Default is on |
--no-daemon | Disables --daemon |
--foreground | Starts the Gradle Daemon in a foreground process |
-Dorg.gradle.daemon.idletimeout <milliseconds> | Gradle Daemon will stop itself after this number of milliseconds of idle time |
-Dorg.gradle.logging.level <level> | Set logging level via Gradle properties |
-q, --quiet | Log errors only |
-w, --warn | Set log level to warn |
-i, --info | Set log level to info |
-d, --debug | Log in debug mode (includes normal stacktrace) |
-Dorg.gradle.console <mode> | Specify console mode via Gradle properties |
--console <mode> | Specifies which type of console output to generate |
-Dorg.gradle.warning.mode <mode> | Specify warning mode via Gradle properties |
--warning-mode <mode> | Specifies how to log warning |
--include-build | Run the build as a composite, including the specified build |
--offline | Specifies that the build should operate without accessing network resources |
--refresh-dependencies | Refresh the state of dependencies |
--dry-run | Run Gradle with all task actions disabled. Use this to show which task would have executed |
--write-locks | Indicates that all resolved configurations that are lockable should have their lock state persisted |
--update-locks <group:name...> | Indicates that versions for the specified modules have to be updated in the lock file |
--no-rebuild |
|
-b, --build-file <file> | Specifies the build file. For example: gradle --build-file=foo.gradle |
-c, --settings-file <file> | Specifies the settings file. For example: gradle --settings-file=somewhere/else/settings.gradle |
-g, --gradle-user-home <directory> | Specifies the Gradle user home directory. The default is the .gradle directory in the user’s home directory |
-p, --project-dir <directory> | Specifies the start directory for Gradle |
--project-cache-dir <directory> | Specifies the project-specific cache directory. Default value is .gradle in the root project directory |
-D, --system-prop <system property> | Sets a system property of the JVM, for example -Dmyprop=myvalue |
-I, --init-script | Specifies an initialization script |
-P, --project-prop <system property> | Sets a project property of the root project, for example -Pmyprop=myvalue |
-Dorg.gradle.jvmargs <arguments> | Set JVM arguments |
-Dorg.gradle.java.home <directory> | Set JDK home dir |