Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] JUnit tests fail with TYCHO

This does not provide enough information to be able to help you. Can you
provide a sample project we can use to reproduce the problem?

--
Regards,
Igor

On 11-04-20 05:18 AM, Sandeep Korrapati wrote:
Hi,

I try to build and test some eclipse plugins with "TYCHO 0.11.0".
The JUnit tests that pass when run in Eclipse, but only 2 of them pass
(out of 10) when run with TYCHO.
These .tests plugins require 3.8.2 of JUnit.
The errors I get are,
       1 Java NULL Pointer Exception (for one test)
       2 junit.framework.AssertionFailedError: Class XYZ.tests.XXXTest
has no public constructor TestCase(String name) or TestCase()

Can anyone help me with this.

I run my with

$mvn clean integration-test

My Test Plugin POM has
..
..
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>maven-osgi-test-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
</configuration>
</plugin>
</plugins>
</build>
..
..


Parent POM:
..
..
<build>
              ..
              ..
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>maven-osgi-compiler-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
              ..
              ..
</build>
..
..

Regards,
Sandeep



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top