ATTENTION: We have to do a short maintenance with downtime on Tue 18 Oct 2021, 9:00 - 10:00 CEST. Please finish your work in time to prevent data loss.

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.

Organized by

Tobias Schlauch

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