-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add docs for running tests locally (#538)
Signed-off-by: Michael Rebello <[email protected]> Signed-off-by: JP Simard <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ developing Envoy Mobile. | |
:maxdepth: 2 | ||
|
||
performance/performance | ||
testing/testing | ||
tools/tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.. _testing: | ||
|
||
Testing | ||
======= | ||
|
||
Envoy Mobile strives to have a high standard of code quality and test coverage for the entire | ||
project. | ||
|
||
All unit tests are in the various ``library/<language>`` directories of the repository, | ||
and are run on CI for all PRs and merges to master. | ||
|
||
Tests may be run locally as outlined below. | ||
|
||
.. note:: | ||
|
||
The overall project testing strategy is being revisited as part of :issue:`#197 <197>`. | ||
|
||
---------- | ||
Java tests | ||
---------- | ||
|
||
To run the entire Java unit test suite locally, use the following Bazel command: | ||
|
||
``./bazelw test --test_output=all --build_tests_only //library/java/test/...`` | ||
|
||
------------ | ||
Kotlin tests | ||
------------ | ||
|
||
To run the entire Kotlin unit test suite locally, use the following Bazel command: | ||
|
||
``./bazelw test --test_output=all --build_tests_only //library/kotlin/test/...`` | ||
|
||
----------- | ||
Swift tests | ||
----------- | ||
|
||
To run the entire Swift unit test suite locally, use the following Bazel command: | ||
|
||
``./bazelw test --test_output=all --build_tests_only //library/swift/test/...`` |