Welcome to the official codebase for the JUnit 5 Online Course for Test Automation Engineers! This repository contains all the source code used throughout the course, organized by module and lesson.
This code repository is designed to help you follow along with the course material and practice writing tests using JUnit 5. Each module corresponds to a section in the course and includes various examples and exercises that demonstrate the key features of JUnit 5.
The repository is organized by chapters/modules, with each folder containing the relevant examples for that part of the course.
Here's a brief overview of the repository structure:
- 01-basic-tests/: Introductory tests covering the basics of JUnit 5.
- 02-nested-tests/: Examples of nested tests and the organization of test cases.
- 03-parameterized-tests/: Parameterized test examples to illustrate dynamic test cases.
- 04-extensions/: Usage of extensions and test lifecycle management.
- 05-advanced-topics/: Advanced concepts such as conditional tests, custom extensions, and more.
- common/: Shared utility classes and resources used throughout the examples.
To run the code in this repository, ensure you have the following set up:
- Java JDK 11 or higher
- Maven (or Gradle) for dependency management
- An IDE that supports JUnit 5, such as IntelliJ IDEA or Eclipse
Make sure to install the necessary dependencies by running:
mvn clean test-
Clone the repository to your local machine: git clone https://github.com/your-username/junit5-course-code.git
-
Navigate to the relevant module or lesson folder.
-
Run the tests using your IDE or the command line.
-
Experiment with the code by:
- Adding your own test cases.
- Modifying existing examples to suit your specific learning needs.
- Exploring different JUnit 5 features.
In addition to the code, the course presentations are available within the course platform. These presentations provide a clear reference to reinforce your learning, outlining the major concepts covered in each module.
If you encounter any issues or have questions about the code:
- Open an issue in this repository.
- Reach out via the course discussion board.