annotations
FreeConventions for using annotations in all tests using Jupiter
The English summary is being prepared. Showing the original description.
Conventions to use in Maven files, mostly the `pom.xml` files
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
test, remain test dependenciesIn most cases, test dependencies should be of scope test. If you find any dependencies that are supposed to be of scope test but are not, you should add the <scope>test</scope> element to them. This ensures that the dependencies are only included in the test classpath and not in the production classpath.
For these cases, the following are the dependencies that supposed to be of scope test:
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
<dependency>
<groupId>io.mockk</groupId>
<artifactId>mockk-jvm</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.ninja-squad</groupId>
<artifactId>springmockk</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.kotest</groupId>
<artifactId>kotest-assertions-core-jvm</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
In some cases, the test dependencies may be used for production code in test modules. Those cases are not always easy to determine. However, if you see that the module, where these dependencies are found to be used, is being used as a test dependency of other modules in the same project, then leave the dependency as is.
As a common practice, the maven-compiler-plugin was declared in the parent module, but also in many submodules.
The repetition is unnecessary, but may still prevail.
Please remove all maven-compiler-plugin declarations from all modules and submodules.
Keep only one at the top level.
All the other maven-compiler-plugin declarations can be removed
As a common practice, the maven-surefire-plugin and the maven-failsafe-plugin were declared in the parent module, but also in many submodules.
Please remove all maven-surefire-plugin and the maven-failsafe-plugin declarations from all modules and submodules.
Keep them only at the top level.
All the other maven-surefire-plugin and the maven-failsafe-plugin declarations can be removed
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Conventions for using annotations in all tests using Jupiter
The English summary is being prepared. Showing the original description.
Conventions for docker
The English summary is being prepared. Showing the original description.
Conventions for using in all JEE frameworks. These are common standards for CDI
The English summary is being prepared. Showing the original description.
Conventions for using in all JVM languages
The English summary is being prepared. Showing the original description.
Conventions for using Java
The English summary is being prepared. Showing the original description.
Conventions for using Kotlin
The English summary is being prepared. Showing the original description.