Register to get access to free programming courses with interactive exercises

Continuous integration Python: Automated testing

We have already dealt with the tests, so we will discover how you run them properly now. In this lesson, we'll discuss continuous integration and learn how to test.

What is continuous integration

It is a personal responsibility to run tests locally. Good developers use tests continuously during development and run them before pushing using the git push command. But this is not enough because there are always human errors. Even though they run locally, tests should be run automatically on continuous integration servers.

Continuous integration is a development practice that consists of frequent and automated assembly of an application to identify problems quickly. Programmers usually perform integration on commits to the repository and monitor them using a specialized server or a continuous integration service. It loads the code, assembles it if necessary, and then runs various checks.

What do we launch, and how? The programmer determines this in advance. First, we run the tests and the linter, which check the design of the code. In addition, we can run utilities to analyze security, the relevance of dependencies, and much more. We can depict continuous integration in this diagram:

GitHub Actions Travis Continuous Integration Server

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

<span class="translation_missing" title="translation missing:">Bookmate</span>
<span class="translation_missing" title="translation missing:">Healthsamurai</span>
<span class="translation_missing" title="translation missing:">Dualboot</span>
<span class="translation_missing" title="translation missing:">Abbyy</span>
Suggested learning programs
Developing web applications with Django
10 months
from scratch
under development
Start at any time

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.