pytest in CI/CD: Because Manual Testing is So Last Season!

By Allen Y

Elevator Pitch

Supercharge your pipelines with pytest. Say goodbye to manual testing and hello to seamless automation in CI/CD. From catching bugs early to ensuring robust deployments, pytest’s flexibility and power make it the ultimate testing tool for modern workflows.

Description

Manual testing can really slow down the development process, causing delays, mistakes, and a lot of frustration for teams. In this session, we’ll explore the advantages of automating your testing with pytest, which is one of the most powerful testing frameworks available in the Python world.

The Downsides of Manual Testing: We’ll kick things off with a fun look at the drawbacks of manual testing, pointing out the common mistakes and inefficiencies that many teams encounter. We’ll see how these problems can affect productivity and the overall quality of software.

Getting to Know pytest: Participants will be introduced to pytest, learning about its features and why it’s an ideal fit for your CI/CD pipeline. We’ll talk about its user-friendly nature, strong fixtures, and extensive plugin options that cater to various testing requirements.

Integrating pytest with CI/CD: We’ll provide a detailed guide on how to smoothly integrate pytest with popular CI/CD tools like GitHub Actions, Jenkins, and GitLab CI. Real-life examples and demonstrations will show just how simple it is to create automated testing workflows.

Enhancing Your Testing Strategy: We’ll go over best practices for writing effective tests using pytest, including how to use fixtures, parametrization, and markers to build a solid testing suite that runs smoothly in your CI/CD pipeline.

Live Demonstration: Join us as we set up a sample CI/CD pipeline live, integrating pytest and demonstrating how automated testing can be activated by code changes, giving developers instant feedback.

Q&A Session: We’ll conclude with an engaging Q&A session, where participants can ask questions about pytest, CI/CD, or share their own experiences with automated testing.