jrkerns / pylinac

An image analysis library for medical physics
MIT License
146 stars 94 forks source link

Pytest support #356

Closed crcrewso closed 3 years ago

crcrewso commented 3 years ago

Adds support for pytest, allowing for parallel running of unit tests without breaking unittest compatibility. For context see issue #349

Due to current test indexing structure, using pytest can only be run after first run of unittest. This is unavoidable

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.02%) to 80.915% when pulling 94d92e3728130e42e4438703425d7b0e87ecdccf on crcrewso:pytestSupport into 01c81afd43f43ce2751056f1fc5d7b8a97f0e615 on jrkerns:master.

jrkerns commented 3 years ago

Could you make a new file requirements-dev.txt and copy the current requirements file and put the pytest dependency there. Normal users shouldn't need the pytest module, but will be needed on the dev end.

crcrewso commented 3 years ago

Could you make a new file requirements-dev.txt and copy the current requirements file and put the pytest dependency there. Normal users shouldn't need the pytest module, but will be needed on the dev end.

Done, and I've squashed the commits

jrkerns commented 3 years ago

👍