pytest – all the good stuff ✔ all test styles: unittest, doctest, nose ✔ boilerplate-free style – natural asserts ✔ support for running tests distributed, boxed ✔ generate JUnit-style XML for Jenkins CI ✔ informative error reporting ✔ extensible plugins, useful builtins ✔ skip, xfail, custom markers ✔ parametrize, generate tests ✔ monkeypatch ✔ funcargs!
Graphical Forecast Editor ● client/server desktop application used by forecasters to generate the (text & graphical) forecasts ● pilot in VIC, funding to roll out nationally, ~5 year project, 20+ new devs/testers ● existing codebase of Python and C++ (used operationally in US) ● home-grown test suite and runner (via GUI)
pytest – all the good stuff ✔ all test styles: unittest, doctest, nose ✔ boilerplate-free style – natural asserts ✔ support for running tests distributed, boxed ✔ generate JUnit-style XML for Jenkins CI ✔ informative error reporting ✔ extensible plugins, useful builtins ✔ skip, xfail, custom markers ✔ parametrize, generate tests ✔ monkeypatch ✔ funcargs!
credits, thanks, contact Comic panels from comicallyvintage.tumblr.com Bureau of Meteorology ● In particular, Darius Powell introduced pytest to our project Code examples: gist.github.com/3386951 [email protected] brianna.laugher.id.au / [email protected] @pfctdayelise