Skip to content

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

Open
cdprete wants to merge 1 commit intocodecentric:masterfrom
cdprete:chore/fix-tests-run
Open

chore: fix lack of test resources when npm build is skip#5303
cdprete wants to merge 1 commit intocodecentric: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 6 times, most recently from fc3a0d1 to d2e8c9f Compare April 29, 2026 08:59
@cdprete cdprete force-pushed the chore/fix-tests-run branch from d2e8c9f to f6cf614 Compare April 29, 2026 18:05
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.

1 participant