Test Automation with Python

Europe/Berlin
Online

Online

Benjamin Wolff (Deutsches Zentrum für Luft- und Raumfahrt)
Description

Goal

You learn the basics of efficient testing in Python. In addition, we show you how to apply them practically in your Python project.

Content

This workshop will cover the the following topics:

  • Introduction to test automation
  • Pytest basics
  • Test isolation using mock
  • Code coverage analysis using coverage.py
  • Run tests via a GitLab CI build pipeline

You learn to apply the presented strategies on the basis of a consistent code example.

Requirements

  • Good Python programming skills are required.
  • Participants require a computer equipped with a modern Web browser and a recent Python environment. We will provide more detailed setup information before the workshop.

We are looking forward to seeing you!

Registration

Please register using the register button below. You do not need to set up an Indico account to register. The registration opens about 2-3 weeks before the workshop.

The registration is preliminary to allow a fair distribution of the workshop seats across the Helmholtz centers. You will be notified regarding your registration status about one week before the workshop.

Organised by

Tobias Schlauch

  • Tuesday 4 October
    • 09:00 09:30
      Welcome
    • 09:30 10:00
      Introduction: Test automation
    • 10:00 11:00
      Introduction: pytest basics
    • 11:00 12:00
      Example project: Introduction and initial characterization tests
    • 12:00 12:45
      Example project: Test isolation with test doubles
    • 12:45 13:00
      Wrap-up day 1
  • Wednesday 5 October
    • 09:00 09:15
      Welcome & Recap
    • 09:15 09:45
      Example project: Test isolation with test doubles (cont.)
    • 09:45 10:30
      Example project: Analyzing the code coverage
    • 10:30 11:30
      Example project: Improving the test suite and the code structure
    • 11:30 12:15
      Example project: Build automation and CI/CD with GitLab
    • 12:15 13:00
      Q&A / Wrap Up / Feedback