Test Libraries (pytest/nose/...) Testing pythonSee in schedule
There are many reasons why I think pytest is a fantastic test framework: assertion introspection, setup and teardown with fixtures, parametrized tests. But plugins are the real game changer!
We'll dive right into customizing a test suite by developing a series of pytest plugins based on a few neat hacks. We'll learn how to automatically add markers to slow running tests, run only tests that use a fixture which can be specified on the CLI, generate test reports in a custom format, and automatically create GitHub issues for test regressions. We'll wrap up this talk by using Cookiecutter to create Python packages from our plugins that are ready to be published on PyPI.
Type: Talk (60 mins); Python level: Intermediate; Domain level: Intermediate
I write software for my job and for fun - mostly in Python and Go. I specialize in Python development and automated testing. I'm a core developer and maintainer of cookiecutter and pytest.
Check out my blog at https://raphael.codes/