Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ Remove
--cov
from pytest.ini_options
Speeds up local test runs, especially when only wanting to run one or a couple tests at a time Previously, running a single unit test took me 7.5 seconds, and now it takes 0.5 seconds. This is because it takes 7 seconds to generate the coverage report (in te`rminal and xml file) for the whole acapy_agent folder, and `[tool.pytest.ini_options]` configures that all pytest runs include a coverage request. This is hugely unnecessary to be forced on the developer every time they type pytest If a developer wants to see a coverage report, they can add --cov at the end. ___ Impact: running tests locally are faster, and a developer will have to now type --cov if they ever want to see a coverage report. Also, test output is more readable now, since it won't always include 100s of lines of coverage info. No modification necessary for the github workflows, since they manually specify to run with --cov Signed-off-by: ff137 <[email protected]>
- Loading branch information