diff --git a/README.md b/README.md index 0846e5dd..2a6fa2bb 100644 --- a/README.md +++ b/README.md @@ -264,3 +264,26 @@ and ported to many different programming languages. GraphQL-core 3 is [MIT-licensed](./LICENSE), just like GraphQL.js. + + +## Development + +From the root of a checkout, use [uv](https://docs.astral.sh/uv/) to install the +project and its test dependencies, then run pytest: + +```sh +uv sync --group test +uv run --group test pytest +``` + +To run just one test module, pass its path: + +```sh +uv run --group test pytest tests/language/test_source.py +``` + +The test group includes `pytest-describe`, which collects tests nested in +`describe_*` functions. The nested functions do not need a `test_` prefix. +If your IDE misses these tests, select the interpreter in the project’s `.venv`, +choose pytest as the test runner, and run a file or directory from the repository +root rather than using a built-in unittest runner.