Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] how does the tycho compiler for test code find all the dependencies?

hi,

now that we have instead of this:

[INFO] --- maven-compiler-plugin:3.8.1:testCompile (compiletests) @ sablo ---
[INFO] Toolchain in maven-compiler-plugin: JDK[c:/javatools/jdk18/]
[INFO] Nothing to compile - all classes are up to date

this:

[INFO] --- tycho-compiler-plugin:2.4.0:testCompile (default-testCompile) @ sablo ---
[INFO] Compiling 5 source files to C:\Users\jcomp\git\servoy_master\sablo\sablo\target\test-classes
[INFO] ------------------------------------------------------------------------

we have problem that it can't find all kind of classes that are just by the test classes
i am not talking about the junit itself but:

for us testing always just worked because we use the normal maven compile and the normal maven dependency resolution (so we have all the jars that are used by test as a normal pom dependency)

but now we get:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.4.0:testCompile (default-testCompile) on project sablo: Compilation failure: Compilation failure:
[ERROR] C:\Users\jcomp\git\servoy_master\sablo\sablo\src\test\java\org\sablo\filter\SecurityFilterTest.java:[22]
[ERROR]         import static org.mockito.Matchers.any;


because tycho I guess only looks at plugin dependencies? 
But i don't want to add that to the plugins dependencies they are purely test stuff


i only see stuff about the jsunit container, but thats only part of the problem

also the sample:


is to simple because that doesn't use extra pure test libs 

--
Johan Compagner
Servoy

Back to the top