How to mark a source folder as test source folder #2036
Unanswered
phermsdorf
asked this question in
Q&A
Replies: 3 comments 1 reply
-
|
maybe related to #1776 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is the pom.xml file for the test fragment correctly setting |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
As always an example that one can import to see the problem would help! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we have a typical eclipse test setup where a test fragment contains the junit tests for a host plugin with the same package structure as the host plugin.
We now have the problem that SonarLint identifies the test sources as production code since it looks into the build path configuration if the setting "Contains test sources" is active.
The problem is that "Maven -> Update project" reset's that setting when enabling it manually.
I tried adding
<testSourceDirectory>src</testSourceDirectory>to the pom.xml of the test fragment but that also does not seem to help.Can there anything else be done to get that setting generated correctly by m2e?
Thanks for any hints on this.
Bye Peter
Beta Was this translation helpful? Give feedback.
All reactions