Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho-Surefire guessing the Test Framework

I understand this use case.
I also have such a project which does nothing else than use tycho-surefire-plugin to automatically setup a lightweight OSGI container with some components automatically deployed to be able to manually integration test a subset of the developed modules.
This project is an eclipse-test-plugin to enable tycho-surefire-plugin running, but does not contain any tests (yet) .

Dieter

On 05/15/2012 03:05 PM, Davy Meers wrote:
Hello,

Can you explain to me why you have a bundle that ends in ".tests" which is not a test bundle?
It looks suspicious to me.

Besides that i would not expect the build to fail if "failIfNoTests" is set to "false" and a bundle with 'eclipse-test-plugin' packaging contains no tests.

Kind regards

> Date: Tue, 15 May 2012 10:45:35 +0200
> From: hesteguet@xxxxxxxxxxxxxxxx<mailto:hesteguet@xxxxxxxxxxxxxxxx>
> To: tycho-user@xxxxxxxxxxx<mailto:tycho-user@xxxxxxxxxxx>
> Subject: [tycho-user] Tycho-Surefire guessing the Test Framework
>
> Hello,
>
> One of my bundles, which is not a test bundle, has '.tests' as suffix.
> So tycho-pomgenerator assign to that bundle, the 'eclipse-test-plugin' packaging.
> When i try to run tests i got the following error:
>
> [Could not determine test framework used by test bundle MavenProject: XXX.XXX.XXX.util.tests:0.2.0-SNAPSHOT]
>
> I try to set the option failIfNoTests to false, but i still got the same error.
>
> By overlooking the code of TestMojo from tycho 0.14.x sources, i discovered that tycho try to guess the test framework to use by searching JUnit declaration into the bundle classpath and failed if it doesn't find one.
>
> I think that tycho should not failed when it could not guess the test framework if the option failIfNotTests is set to false.
>
> Is anyone as already encountered this issue ?
>
>
> Thanks in advance, for your answers.
> Best regards.
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx<mailto:tycho-user@xxxxxxxxxxx>
> https://dev.eclipse.org/mailman/listinfo/tycho-user



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



Back to the top