OrderIntegrationTest tag does not match surefire/failsafe configuration
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- java, spring-boot
- Domain
- build-system, testing
Research direction
Start with OrderIntegrationTest and the surefire and failsafe sections of order-service/pom.xml, and compare the @Tag value with the excludedGroups and groups settings. Pick one tag name and use it in both places so surefire skips the test and failsafe runs it. Done when mvn verify runs the test under failsafe and the unit test run no longer includes it. The IntegrationTest interface and the redundant includes can go in the same change.
Written by the indexing model from the issue text.
Description
Problem
OrderIntegrationTest is annotated with @Tag("integration"), but order-service/pom.xml filters on pl.piomin.services.order.IntegrationTest (excludedGroups in surefire, groups in failsafe). The tag never matches, so:
- surefire runs the test as a regular unit test (it needs the
devprofile and MongoDB), - failsafe runs no tests.
The test also only calls System.out.println and has no assertions. <include>**/*.class</include> in surefire is unnecessary, and IntegrationTest is an empty interface used only in the pom.
Suggested solution
- Use
@Tag("integration")consistently and set surefireexcludedGroups/ failsafegroupstointegration. - Remove the empty
IntegrationTestinterface and the redundantincludes. - Consider naming it
OrderIntegrationITso failsafe picks it up by default. - Add real assertions (e.g. on the withdrawn account balance).
- Dominant language
- Java
- Stars
- 12
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
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 piomin/sample-spring-cloud-testing
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
enhancement
Difficulty 3/5 Half a day Newbie friendliness 62/100
-
bug
Difficulty 3/5 Half a day Newbie friendliness 62/100
All issues in piomin/sample-spring-cloud-testing
Similar issues
-
needs-area-label
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 2 days
-
enhancement Java macOS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freerouting/freerouting#1079 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-enforcer#1074 ·
Maintainers usually reply within 1 day
-
Gradle liquibaseDiffChangelog drops jhi_date_time_wrapperPossibly taken @mraible claimed this today. Openarea: triage theme: undefined
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jhipster/generator-jhipster#35998 ·
Maintainers usually reply within 1 day