assertj / assertj/assertj-assertions-generator-maven-plugin

Only create assertion class when it does not exist or when the associated class has changed

Open
#48 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
30
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Currently, the generator plugin always generates the assertion class which requires the `test-compile` step of Maven to compile the classes in every run - even if no source code has changed. The assertion classes should only be generated:

1. when they do not exist
2. when the associated class changes

Example:

I want to create assertions for class `A`:

- assertion class for class `A` do not exist -> generate assertion class
- assertion class for class `A` exists and class `A` was not changed since the generation -> do not generate assertion class
- assertion class for class `A` exists and class `A` was changed since the generation -> generate a new version of the assertion class

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.