Skip to main content

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

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>
.. 
.. 

Back to the top