Skip to content

Commit ba30e55

Browse files
committed
add link to pytest config in running tests section
1 parent e1b0ae7 commit ba30e55

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/pages/principles/testing.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,16 @@ total = numeric_sum(some_numeric_values)
395395

396396
We recommend using Pytest for running tests in your development environments. To
397397
run unit tests in your source folder, from your package root, use
398-
`pytest {path/to/source}`. To run tests from an installed package (outside of
398+
`pytest {path/to/source}`.
399+
To run tests from an installed package (outside of
399400
your source repository), use `pytest --pyargs {package name}`.
400401

402+
You can set the default test path in `pyproject.toml`, see:
403+
[Configuring pytest]({% link pages/tutorials/test.md %}#configuring-pytest)
404+
405+
We recommend configuring pytest to run ONLY your fastest, least demanding test suite by default.
406+
407+
401408
#### Mocking and Patching to Isolate the code under test
402409

403410
When the unit you are testing touches any external unit (usually something you

0 commit comments

Comments
 (0)