DataBiosphere / toil

A scalable, efficient, cross-platform (Linux/macOS) and easy-to-use workflow engine in pure Python.
http://toil.ucsc-cgl.org/.
Apache License 2.0
899 stars 240 forks source link

tests: refactor all to idiomatic pytest ; exploit pytest features liberally #3489

Open mr-c opened 3 years ago

mr-c commented 3 years ago

Features

Detailed info on failing assert statements (no need to remember self.assert* names)

Auto-discovery of test modules and functions

Modular fixtures for managing small or parametrized long-lived test resources

Can run unittest (including trial) and nose test suites out of the box

Python 3.6+ and PyPy 3

Rich plugin architecture, with over 315+ external plugins and thriving community

┆Issue is synchronized with this Jira Task ┆Issue Number: TOIL-821

adamnovak commented 3 years ago

We have pytest, and we even use some of its features. But (most of?) the test cases are still written as unittest tests; we should refactor them to by idiomatic pytest tests.