From 1bb0081b99664175954f69beeea94e04952754ab Mon Sep 17 00:00:00 2001 From: Bryce Gattis Date: Thu, 25 Apr 2024 15:56:14 -0500 Subject: [PATCH] Add a bit of additional information about running tests in a module for new users Signed-off-by: Bryce Gattis --- doc/en/how-to/usage.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/en/how-to/usage.rst b/doc/en/how-to/usage.rst index fe46fad2d..b34a4b896 100644 --- a/doc/en/how-to/usage.rst +++ b/doc/en/how-to/usage.rst @@ -26,6 +26,11 @@ Pytest supports several ways to run and select tests from the command-line or fr pytest test_mod.py +When passing a path as a positional argument like this, it's not possible to +pass a file basename. If you want to pass a path to a file, you must pass +either a relative path or an absolute path. Otherwise, consider the below +keyword expressions instead. + **Run tests in a directory** .. code-block:: bash