Skip to content

Commit

Permalink
Add integration test task in testing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaowang1998 committed Dec 18, 2024
1 parent 860fee1 commit 57ce9a7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ require this storage backend.
4. Set the `cStorageUrl` in `tests/storage/StorageTestHelper.hpp` to
`jdbc:mariadb://localhost:3306/<db_name>?user=<usr>&password=<pwd>`.

## Running tests
5. Set the `storage_url` in `tests/integration/client.py` to
`jdbc:mariadb://localhost:3306/<db_name>?user=<usr>&password=<pwd>`.

## Running unit tests

You can use the following tasks to run the set of unit tests that's appropriate.

Expand All @@ -45,4 +48,13 @@ REQUIRE( storage->connect(spider::test::cStorageUrl).success() )
The [unit_tests.yaml][gh-workflow-unit-tests] GitHub workflow runs the unit tests on push,
pull requests, and daily. Currently, it only runs unit tests that don't require a storage backend.
## Running integration tests
You can use the following tasks to run integration tests.
| Task | Description |
|-------------------------------|-------------------------------------------------------------------|
| `test:integration` | Runs all integration tests. |
[gh-workflow-unit-tests]: ../.github/workflows/unit-tests.yaml

0 comments on commit 57ce9a7

Please sign in to comment.