Sign In

Communications of the ACM

ACM Opinion

Testing in Python with pytest

View as: Print Mobile App Share:
Software engineer Brian Okken.

Credit: Brian Okken.

In an interview, software engineer and author Brian Okken discusses the popular pytest Python testing tool, as well as his book, Python testing with pytest. The interview begins with an exploration into pytest's popularity in the Python community; what makes pytest unique; the setup and teardown of tests using fixtures, parameterization, and the plug-in ecosystem; mocking; why we should design for testing and how to reduce the need for mocking; how to set up a project for testability; test-driven development; and designing tests to support refactoring. The interview also examines some complementary tools that can improve the python testing experience.

From Software Engineering Radio
Listen to Complete Podcast


No entries found

Sign In for Full Access
» Forgot Password? » Create an ACM Web Account