https://github.com/yegor256/aggregate-repeated-test
The @AggregateRepeatedTest JUnit annotation
https://github.com/yegor256/aggregate-repeated-test
java junit unit-testing
Last synced: about 1 month ago
JSON representation
The @AggregateRepeatedTest JUnit annotation
- Host: GitHub
- URL: https://github.com/yegor256/aggregate-repeated-test
- Owner: yegor256
- License: mit
- Created: 2025-09-25T06:41:08.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2026-05-19T06:25:08.000Z (about 1 month ago)
- Last Synced: 2026-05-19T08:56:12.575Z (about 1 month ago)
- Topics: java, junit, unit-testing
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# `@AggregateRepeatedTest` JUnit Annotation
> [!WARNING]
> This is not a production-ready package.
> It is used mostly for our internal experiments and research.
> Use it at your own risk.
The `@AggregateRepeatedTest` annotation is a custom JUnit annotation
that allows you to run a test method multiple times.
You just replace your `@Test` annotation with `@AggregateRepeatedTest`
and specify the number of repetitions as an argument.
The test method will be executed the specified number of times.
For example, the following test method will be executed 10 times:
```java
import com.yegor256.AggregateRepeatedTest;
@AggregateRepeatedTest(10)
void testSomething() {
// test code here
}
```
Each test run is logged to the `/tmp/aggregate-repeated-test.txt` file.
The location can't be changed.
The file is appended.