Only create assertion class when it does not exist or when the associated class has changed
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
- Domain
- build-system, tooling
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
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:
- when they do not exist
- when the associated class changes
Example:
I want to create assertions for class A:
- assertion class for class
Ado not exist -> generate assertion class - assertion class for class
Aexists and classAwas not changed since the generation -> do not generate assertion class - assertion class for class
Aexists and classAwas 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from assertj/assertj-assertions-generator-maven-plugin
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Move module to `assertj/assertj-generator`May be free again @scordio claimed this 503 days ago, and no pull request is open. Open
assertj/assertj-assertions-generator-maven-plugin#113 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
assertj/assertj-assertions-generator-maven-plugin#108 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
allow the jakarta version of `@Generated` instead of the javax one.May be free again @scordio claimed this 525 days ago, and no pull request is open. Open
assertj/assertj-assertions-generator-maven-plugin#93 · 7 comments · 7 reactions · 1 assignee ·
All issues in assertj/assertj-assertions-generator-maven-plugin
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
feature triaged
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Graylog2/graylog2-server#27549 ·
Maintainers usually reply within 1 day
-
component/zeebe kind/bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
UniversalMediaServer/UniversalMediaServer#6356 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
googleapis/google-cloud-java#14533 ·
Maintainers usually reply within 1 day