silly-queen-7197
02/16/2023, 8:32 PM./pants test
to include doctests? I added
python_tests(
name="tests",
sources=["*.py"],
)
as a target in my directory and ran ./pants test foobar/:: -- --doctest-modules
but it fails on a bunch of files without testsbroad-processor-92400
02/16/2023, 9:01 PMsources
be an allowlist of only the files that have doctests ( sources=["has_doctests.py", "also_has.py"]
), or use !
to exclude ones that don't, as a denylist, (sources=["*.py", "!no_doctests.py"]
)