pyproject.toml is newly added to configure pytest.
added 90% coverage threshold based on issue #20.
To make test output clean and compact, I don't intend to add -v option for verbosity.
based on the configuration, the sample output with and without test errors look like the pictures below
with test errors:
without test errors:
note: the -ra option is explained in the issue.
With the pytest-lineno package, we can also simply ctrl+click to directly navigate to the test function where an error occurred. Otherwise, we may also refer to the test function name and navigate there manually. This should help local testing and also the potential pre-commit auto test in the future.
Currently the total coverage is only 80%, which is below 90+%. This PR doesn't fix this error but help set up pytest config and standard output for future usage. The coverage rate error may be fixed via another PR.
This PR is related to issue #39.
In the PR,
pyproject.toml
is newly added to configure pytest.-v
option for verbosity.-ra
option is explained in the issue.With the
pytest-lineno
package, we can also simplyctrl+click
to directly navigate to the test function where an error occurred. Otherwise, we may also refer to the test function name and navigate there manually. This should help local testing and also the potential pre-commit auto test in the future.Currently the total coverage is only 80%, which is below 90+%. This PR doesn't fix this error but help set up pytest config and standard output for future usage. The coverage rate error may be fixed via another PR.