Skip to content

chore: fix lack of test resources when npm build is skip#5303

Merged
SteKoe merged 1 commit into
codecentric:masterfrom
cdprete:chore/fix-tests-run
May 5, 2026
Merged

chore: fix lack of test resources when npm build is skip#5303
SteKoe merged 1 commit into
codecentric:masterfrom
cdprete:chore/fix-tests-run

Conversation

@cdprete
Copy link
Copy Markdown
Contributor

@cdprete cdprete commented Apr 26, 2026

Fixes the lack of resources (e.g.: sba-settings.js) when the tests are executed with -PnoNpm.
The issue with some tests failing was reported in #5285 (comment) and this PR fixes it.

The needed resources have been generated once and made them available under target/classes, as opposite of the default target/testClasses, to not change the existing tests which, by relying on the default configuration, they expect to load them from the class resources instead of from the test class ones.

By the way, the frontend-maven-plugin also fails with the same issue reported in eirslett/frontend-maven-plugin#1178 😞
EDIT: the point above about npm is solved with #5312

@cdprete cdprete requested a review from a team as a code owner April 26, 2026 14:09
@cdprete cdprete force-pushed the chore/fix-tests-run branch from 8e0b5c0 to 1747e56 Compare April 26, 2026 14:10
@cdprete cdprete marked this pull request as draft April 26, 2026 14:54
@cdprete cdprete force-pushed the chore/fix-tests-run branch 2 times, most recently from 9ce8333 to 7f7f8b6 Compare April 26, 2026 15:04
@cdprete cdprete marked this pull request as ready for review April 26, 2026 15:04
@cdprete cdprete force-pushed the chore/fix-tests-run branch 10 times, most recently from af0d9c0 to db4d90d Compare May 2, 2026 18:13
@cdprete cdprete force-pushed the chore/fix-tests-run branch 3 times, most recently from 453148b to 5379182 Compare May 5, 2026 12:55
@cdprete cdprete force-pushed the chore/fix-tests-run branch from 5379182 to 8b6f363 Compare May 5, 2026 16:34
@SteKoe SteKoe merged commit 14331ca into codecentric:master May 5, 2026
1 check passed
@cdprete cdprete deleted the chore/fix-tests-run branch May 5, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants