Skip to main content

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

Tycho has moved to github and therefore you should best open an issue/discussion there:

https://github.com/eclipse-tycho/tycho/issues
https://github.com/eclipse-tycho/tycho/discussions

regarding Tycho testing options you can read about it here:

https://tycho.eclipseprojects.io/doc/master/TestingBundles.html

Am 02.06.23 um 06:42 schrieb Maksym Oleksiv:
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 <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 <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

_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev


Back to the top