add run-new.sh docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7278
GitOrigin-RevId: 6c17cc846b39a4236f65dd5ab6baac4529b38f4c
This commit is contained in:
Abby Sassel 2022-12-14 16:09:41 +00:00 committed by hasura-bot
parent df7234fe7d
commit 57f456a4cf
2 changed files with 23 additions and 3 deletions

View File

@ -87,6 +87,16 @@ If you have to customise any of the options for ghcide/hls, you should instead c
cp sample.hie.yaml hie.yaml
```
### Run and test via `run-new.sh`
The `run-new.sh` scripts are an active work in progress, and will eventually replace the `dev.sh` option below.
Run the Python integration tests with `./server/tests-py/run-new.sh`.
Filter on specific test files with `./server/tests-py/run-new.sh -- create_async_action_with_nested_output_and_relation.py`
If you have any issues with `run-new.sh`, please create a [GitHub issue](https://github.com/hasura/graphql-engine/issues/new/choose) and run and test via `dev.sh` instead.
### Run and test via `dev.sh`
The `dev.sh` script in the top-level `scripts/` directory is a turnkey solution to build, run, and

View File

@ -9,13 +9,23 @@ information on how to update test dependencies.
## Running tests
Tests can be run using the `dev.sh` script or directly using `pytest`.
Tests can be run using `run-new.sh`, `dev.sh` or directly using `pytest`.
Please note that running the `BigQuery` tests requires a few manual steps.
### Running tests via dev.sh
### Run and test via `run-new.sh`
The easiest way to run the test suite is to do:
The `run-new.sh` scripts are an active work in progress, and will eventually replace the `dev.sh` option below.
The easiest way to run the test suite is to:
Run the Python integration tests with `./server/tests-py/run-new.sh`.
Filter on specific test files with `./server/tests-py/run-new.sh -- create_async_action_with_nested_output_and_relation.py`
If you have any issues with `run-new.sh`, please create a [GitHub issue](https://github.com/hasura/graphql-engine/issues/new/choose) and run and test via `dev.sh` instead.
### Running tests via dev.sh
```sh
scripts/dev.sh test --integration