[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Tycho-Surefire guessing the Test Framework
|
Thanks davy for coming back to the original subject.
The bundle that ends with '.tests' contains tests utilities and has maybe been wrongly named.
As i was saying in my first post, it seems that tycho-surefire is looking for Junit dependencies and complains if it doesn't find them, regardless of the value of the failIfNoTests option.
A quick workaround if we don't want to rename the bundle, is to add a dependency to JUnit or a dummy tests.
Best regards
> 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
>> To: 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
> https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user