Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] Attached tests are not picked up automatically after migration to newer Tycho

Hi.
I'm migrating Eclipse RCP to the latest 4.27 version. In scope of this I'm also migrating:
- Maven from 3.5.0 to 3.9.2
- JavaSE from 11 to 17
- tycho-compiler-plugin from 1.4.0 to 3.0.4. 
- JUnit from 4.12 to 4.13.2
- Maven-compiler-plugin from 3.6.1 to 3.11.0
other.

I use what is called "attached tests" that are set up per https://maven.apache.org/guides/mini/guide-attached-tests.html.

During the migration process I faced the following issues (changes):
1. Instead of "maven-compiler-plugin:3.6.1:testCompile (compiletests)" "tycho-compiler:3.0.4:testCompile (default-testCompile)" is used (the error that I see is similar to the one described at https://www.eclipse.org/lists/tycho-user/msg09151.html)
2. The tests jar package that was created in the previous built project is not found by the tycho-compiler automatically as it should be per instructions (but I can add it manually in the .classpath file the following way: <classpathentry kind="lib" path="../com.company.shared/target/com.company.shared-1.0.0-tests.jar"/>. But after such tweak the tests fail and probably require update).

Can I somehow restore the previous behavior of building the tests using maven-compiler-plugin?

--
Best regards,
Maksym Oleksiv

Back to the top