Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Trace the generator plugin's assertion-class generation and its Maven test-compile integration. First inspect how generated classes and their associated source classes are located and timestamped; done means generation occurs only when the assertion class is missing or the associated class has changed, while unchanged inputs avoid regeneration.

Written by the indexing model from the issue text.

Description

enhancement

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
Dominant language
Java
Stars
30
Forks
27
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from assertj/assertj-assertions-generator-maven-plugin

All issues in assertj/assertj-assertions-generator-maven-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.