cool-easter-32542
12/09/2024, 2:32 AMpytest my_package
Which would test all python files in my_package starting with "test_" or "_test_". I have not been able to duplicate this behavior in pants. It does find and run with the same pytest.ini file. This is my current BUILD:
python_requirements(name="reqs")
python_sources(name="root")
python_sources(name="my_package", sources=["my_package/**/*.py"])
python_tests(
name="my_package_test",
sources=["my_package/**/*.py"],
dependencies=[":my_package"],
)
Hopefully this is a quick fix I haven't been able to find.
pantsbuild/pants