bskinn / stdio-mgr

Context manager for mocking/wrapping stdin/stdout/stderr
MIT License
14 stars 4 forks source link

unittest compatible subset of test suite #89

Open jayvdb opened 5 years ago

jayvdb commented 5 years ago

The test suite is the canonical usage of the library.

We are uncovering problems related to pre-existing state, which we are mostly shielded from because pytest avoids pre-existing state, and is quite a mature test runner.

A good way to uncover other pre-existing state problems is to run (a subset of) the test suite on multiple test runners. This would mean using unittest style classes for some of it, and would mean those other test runners might not be exposed to all of the tests & features so some of the more complicated bits might be skipped and the bugs not found.

Another important reason to have some unittest compatible tests is getting pytest running on all python implementations is prohibitive as noted at https://github.com/bskinn/stdio-mgr/issues/81#issuecomment-530179250