An open API service indexing awesome lists of open source software.

https://github.com/erwanlt/junit5-parameterized-tests


https://github.com/erwanlt/junit5-parameterized-tests

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

[![Java CI with Maven](https://github.com/ErwanLT/junit5-parameterized-tests/actions/workflows/maven.yml/badge.svg?branch=main)](https://github.com/ErwanLT/junit5-parameterized-tests/actions/workflows/maven.yml)
[![CircleCI](https://dl.circleci.com/status-badge/img/circleci/DR1S4tRDw8MMzAomvrb3L7/39fDTMPH9GHiyvPSRqMMwW/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/circleci/DR1S4tRDw8MMzAomvrb3L7/39fDTMPH9GHiyvPSRqMMwW/tree/main)
[![codecov](https://codecov.io/gh/ErwanLT/junit5-parameterized-tests/graph/badge.svg?token=Wx7aOdxtlZ)](https://codecov.io/gh/ErwanLT/junit5-parameterized-tests)

# junit5-parameterized-tests

Ce README explique comment utiliser les tests paramétrés dans JUnit 5 en utilisant différentes annotations telles que :
- `@ValueSource`
- `@CsvSource`
- `@CsvFileSource`
- `@MethodSource`
- `@EnumSource`
- `@NullSource`
- `@EmptySource`
- `@NullAndEmptySource`

## Installation
Assurez-vous d'ajouter JUnit 5 à votre projet Maven ou Gradle. Voici un exemple de dépendance pour Maven :

```xml

org.junit.jupiter
junit-jupiter-api
5.8.1
test

```

## Contribuer
Si vous souhaitez contribuer à cet exemple ou apporter des améliorations, n'hésitez pas à ouvrir une Pull Request.

## Licence
Ce projet est sous licence APACHE 2 - voir le fichier [LICENSE](LICENSE) pour plus de détails.