Skip to content

Commit

Permalink
docs: add docs for running tests locally (#538)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Rebello <[email protected]>
Signed-off-by: JP Simard <[email protected]>
  • Loading branch information
rebello95 authored and jpsim committed Nov 28, 2022
1 parent 4eabd47 commit 5a89d98
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions mobile/docs/root/development/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ developing Envoy Mobile.
:maxdepth: 2

performance/performance
testing/testing
tools/tools
40 changes: 40 additions & 0 deletions mobile/docs/root/development/testing/testing.rst
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/...``

0 comments on commit 5a89d98

Please sign in to comment.