Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add claude md for testing hints (#18170)

Lukasz Ostrowskid3e017b18651
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 0000000000..22a28e5b0a
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1,14 @@
+# Testing
+
+## Running tests
+
+- Run tests using `pytest`
+- Attach `--reuse-db` argument to speed up tests by reusing the test database
+- Select tests to run by passing test file path as an argument
+- Enter virtual environment before executing tests
+
+## Writing tests
+
+- Use given/when/then structure for clarity
+- Use `pytest` fixtures for setup and teardown
+- Declare test suites flat in file. Do not wrapp in classes