Skip to content

Commit d8f7628

Browse files
committed
document dev mode
1 parent 59e706f commit d8f7628

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/contributing/running-tests.md

+17
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,23 @@ To run these tests locally, add `-PtestLatestDeps=true` to your existing `gradle
3838

3939
Executing `./gradlew :instrumentation:<INSTRUMENTATION_NAME>:test --tests <GROOVY TEST FILE NAME>` will run only the selected test.
4040

41+
### Ignoring warnings in tests
42+
43+
During local development, you may want to ignore warnings in tests.
44+
45+
To ignore warnings, formatting issues, or other non-fatal issues in tests, use
46+
47+
```
48+
./gradlew test -Ddev=true -x spotlessCheck -x checkstyleMain
49+
```
50+
51+
The `dev` flag
52+
53+
- will ignore warnings in tests
54+
- will use a local build cache, which can speed up the build
55+
56+
The local build cache is also useful for other commands, such as `./gradlew spotlessApply -Ddev=true`.
57+
4158
## Smoke tests
4259

4360
The smoke tests are not run as part of a global `test` task run since they take a long time and are

0 commit comments

Comments
 (0)