johnklee / fpu

Functional programming utility
MIT License
4 stars 4 forks source link

add pytest config #40

Closed wkCircle closed 1 year ago

wkCircle commented 1 year ago

This PR is related to issue #39.

In the PR,

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.