From 9f4badb2e0195598999a0fea602a22170d992d37 Mon Sep 17 00:00:00 2001 From: Aayaan Khan <186551075+Akay-74@users.noreply.github.com> Date: Tue, 1 Dec 2026 12:20:33 +0530 Subject: [PATCH] docs: explain development test discovery Added development instructions for setting up and running tests using uv and pytest. --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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.