Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-surefire-plugin & birt unitesting

You should check about swt native libraries. I suspect the birt.swt or birth.swt is not loaded because of native dependencies

Jeff

On Fri, Sep 26, 2014 at 3:41 PM, Pierre GAUTIER <pierre.pg.gautier@xxxxxxxxx> wrote:

Hello,


I'm currently facing an issue with tycho-surefire-plugin version 0.21.0 for which I've found nothing relevant on the web.

I have a plugin c.m.s.c.charts that depends :
- explicitly on org.eclipse.birt.chart.engine,
- implicitly on org.eclipse.birt.chart.engine.extension and org.eclipse.birt.chart.device.swt

These 3 dependencies are put in the MANIFEST.MF and the RCP application is running well.

I also have a test fragment c.m.s.c.charts.tests based on this previous plugin.

I've written a few tests but surefire fails to run some of them with error message : Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.chart.device.swt.SwtRendererImpl cannot be found by org.eclipse.birt.chart.engine_4.4.0.v201405191524

I've declared them like said in tycho FAQ:

<build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-surefire-plugin</artifactId>
                <version>${tycho.version}</version>
                <configuration>
                    <dependencies>
                        <dependency>
                            <type>eclipse-plugin</type>
                            <artifactId>org.eclipse.birt.chart.device.swt</artifactId>
                            <version>4.4.0</version>
                        </dependency>
                        <dependency>
                            <type>eclipse-plugin</type>
                            <artifactId>org.eclipse.birt.chart.engine.extension</artifactId>
                            <version>4.4.0</version>
                        </dependency>
                    </dependencies>
                </configuration>
            </plugin>
        </plugins>
    </build>

And I've not the install error I got when tried with swt2:

ERROR] Cannot resolve project dependencies:
[ERROR]   You requested to install 'bundle org.eclipse.birt.chart.device.swt2 4.4.0' but it could not be found

At this point I'm really confused and I've now been stuck on it for hours.

Anyone could help me with this problem ?


By advance, many thanks,
Regards,

Pierre GAUTIER



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top