3 ms·
pytest. The way it handles both fixtures and parameterization (and the fact that it doesn't force classes on me) genuinely results in me enjoying writing tests.
by simonw 4y ago
pytest. The way it handles both fixtures and parameterization (and the fact that it doesn't force classes on me) genuinely results in me enjoying writing tests.
I'd love to find a JavaScript testing framework that's as pleasant to work with.
I wrote a bit about those two features here: https://simonwillison.net/2018/Jul/28/documentation-unit-tests/ https://simonwillison.net/2018/Jul/28/documentation-unit-tes... - about half way down.