Test classes end up in the packaged JAR #2001
-
Following https://github.com/eclipse-tycho/tycho/blob/master/RELEASE_NOTES.md#240 I can successfully run plain JUnit tests in an eclipse-plugin project. As instructed there, I marked the folder containing tests as test source folder. However, its contents end up in the JAR because they are compiled both in target/classes (together with the main code) and in target/test-classes (where they should be). Do I have to specify some additional configuration to avoid that? I'm using Tycho 2.7.5. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
please try Tycho 4.0.0-SNAPSHOT where test handling was improved, if the problem is fixed there. If not it would be good to provide an integration-test to demonstrate the issue (e.g using the demo project as a basis: |
Beta Was this translation helpful? Give feedback.
-
I'll first try the demo project, but what I can immediately spot as a difference is that in https://github.com/eclipse-tycho/tycho/blob/master/demo/testing/surefire/with-source-folder/build.properties#L2 the |
Beta Was this translation helpful? Give feedback.
-
If you put things in |
Beta Was this translation helpful? Give feedback.
-
That was it! THANKS! |
Beta Was this translation helpful? Give feedback.
If you put things in
build.properties
they are part of the "binary build" and thus included in the final jar.