Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Add information about environment variables to tests README.md
Browse files Browse the repository at this point in the history
Integration tests suite uses two environmental variables to control the
output verbosity and decide whether to execute long-running tests or
not. This commit adds details regarding variables controlling the
mentioned, to the tests README.md file.
  • Loading branch information
dagon666 committed Aug 13, 2017
1 parent 22c01f4 commit 3c0f79d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,28 @@ Docker container as well, for the test suite to pick it up. In order to quickly
do that without rebuilding the images, just invoke:

./run_integration_tests.sh -u

### Running integration tests manually

It's possible to execute only selected test fixture:

docker-compose run --rm napiclient integration_tests.test_formats.FormatsConversionTest

... or a test case:

docker-compose run --rm napiclient integration_tests.test_formats.FormatsConversionTest.test_ifSubotageDetectsFormatsCorrectly


In order to increase verbosity of the test suite, one can define an
environmental variable: `NAPI_INTEGRATION_TESTS_LOGLEVEL=1`. When run manually
this can be done with docker like so:

docker-compose run --rm -e NAPI_INTEGRATION_TESTS_LOGLEVEL=1 napiclient integration_tests.test_formats.FormatsConversionTest.test_ifSubotageDetectsFormatsCorrectly

The integration tests suite contains some long running tests which are skipped
by default, as the total execution time may be longer than an hour. In order to
enable them, an environment variable `NAPI_INTEGRATION_TESTS_LONG_ENABLED=1`
should be defined. When ran manually this can be done exactly the same way as
in the previous example:

docker-compose run --rm -e NAPI_INTEGRATION_TESTS_LOGLEVEL=1 -e NAPI_INTEGRATION_TESTS_LONG_ENABLED=1 napiclient integration_tests.test_formats.FormatsConversionTest.test_ifSubotageDetectsFormatsCorrectly

0 comments on commit 3c0f79d

Please # to comment.