Skip to main content

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

Hi Sandeep.

You're better off posting these types of questions to the Tycho Users
list, not the dev list. There are many more people on the user list
with experience running Tycho in strange environments.

JUnit 3.8-based tests run fine with Tycho 0.11.0 — I've been doing it
for ages now.  I wonder if there's some deeper issue that occurs
further back in the build log.

I'd recommend that you try creating a small demonstration of the
project that you can post to show the problem.

Brian.

On Wednesday, April 20, 2011, Sandeep Korrapati <sandy.4k@xxxxxxxxx> 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>
> ..
> ..
>
>


Back to the top