# Testing

## About

- Level: Intermediate to Advanced
- Lectures: 30 hours
- Self-study: 15 hours
- Exercises: 24
- Lines of code to write: \~500
- Format: e-learning + weekly online meeting with the instructor
- Language: English or Polish

## Description

Practice test-driven development by building a Python project in short cycles: write a failing test, implement the behavior, and refactor. Explore test frameworks, mocks, asynchronous tests, and techniques for checking numerical or pseudorandom behavior.

## Advantages

Learn to choose tests that reveal meaningful failures and support changes. You will compare test types, assess gaps beyond coverage figures, and connect test execution with code review and continuous integration.

## Target Audience

- Python developers who want more useful automated tests.
- Engineers adding tests to existing or asynchronous applications.
- Teams adopting test-driven development and regular refactoring.

## Format

Learn through short videos and worked examples, then apply each topic in coding exercises. Automated checks help you test your solutions, and a progress spreadsheet helps you see what to work on next.

Weekly online meetings give you time for questions, code reviews, and working through difficult exercises with the instructor. Downloadable code, exercise templates, and reference notes support your independent practice.

Our trainers prepare the teaching materials from their professional experience. The materials have been developed since 2015, with more than 28,000 automated tests checking the code examples. Training is available in English or Polish.

## Course Outline

1. Types of tests with examples:

   - Unit tests
   - Smoke tests
   - Static analysis
   - Mutation testing
   - Regression tests
   - Functional tests
   - Interface tests
   - Load tests
   - Integration tests
   - Security tests
2. Test-Driven Development:

   - Test-first vs. test-last development
   - Mock vs. Stub
   - Floating-point precision issues (IEEE-754)
   - Testing pseudorandom values and the concept of random seed
   - Testing frameworks: `unittest`, `doctest`, `pytest`, `behave`
   - Running tests in an IDE (PyCharm) and from the command line
   - TDD demonstration
3. Independent TDD project (several iterations):

   - TDD demonstration
   - Code review techniques and team-based code evaluation
   - Refactoring options in the IDE (PyCharm)
   - Testing asynchronous applications
4. Refactoring:

   - Rename
   - Extract Method
   - Extract Superclass
   - Inline
   - Introduce Variable
   - Introduce Constant
   - Introduce Field
   - Introduce Parameter
   - Pull Members Up
   - Push Members Down

## Our Experience

AATC trainers have taught software engineering since 2015, delivering more than 11,000 hours of training to over 32,000 students worldwide. The exercises draw on that teaching experience and professional projects.

## Prerequisites

- Intermediate knowledge of Python programming
- Familiarity with using an IDE (e.g., PyCharm, VSCode)
- Familiarity with using version control systems (e.g., Git)
- Understanding of AI-assisted coding tools (e.g., GitHub Copilot, ChatGPT)

## Setup

- Newest version of Python
- IDE of your choice (e.g., PyCharm, VSCode)
- Git installed and configured
- GitHub account
- Web browser (e.g., Chrome, Firefox, Safari, etc.)

## Related Courses

- [Python Basics](<https://aatc.pl/software/python/basics/index.md>)
- [Python Intermediate](<https://aatc.pl/software/python/intermediate/index.md>)
- [Python Advanced](<https://aatc.pl/software/python/advanced/index.md>)
- [Design Patterns](<https://aatc.pl/software/engineering/design-patterns/index.md>)
- [Profiling](<https://aatc.pl/software/engineering/profiling/index.md>)
- [Refactoring](<https://aatc.pl/software/engineering/refactoring/index.md>)
- [Testing](<https://aatc.pl/software/engineering/testing/index.md>)
- [DevOps](<https://aatc.pl/software/engineering/devops/index.md>)
- [Regular Expressions](<https://aatc.pl/software/engineering/regex/index.md>)
- [All Courses](<https://aatc.pl/software/index.md>)

## Date

This course is scheduled on demand. Contact us with your preferred dates and group size so we can check availability and arrange a suitable session.

## Contact

Email [info@aatc.pl](<mailto:info@aatc.pl>) for help with program details, preparation, or booking.

## Apply

To apply, email [info@aatc.pl](<mailto:info@aatc.pl>) with your name, the program you are interested in, and your preferred dates.
