Discussion:
[tycho-user] Can JUnit 5 be used?
i***@guite.de
2017-11-28 17:41:32 UTC
Permalink
Hi Tycho users,

can JUnit 5 already be utilised with Tycho Surefire? In theory, the
junit dependency just needs to be replaced by junit-jupiter-engine. Did
anybody try this yet?

Thanks,

Axel
Felix Dorner
2017-11-28 17:43:50 UTC
Permalink
I would also be interested. There is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=522475
Post by i***@guite.de
Hi Tycho users,
can JUnit 5 already be utilised with Tycho Surefire? In theory, the junit
dependency just needs to be replaced by junit-jupiter-engine. Did anybody
try this yet?
Thanks,
Axel
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Linux. The choice of a GNU generation.
Daniel Johnson (danijoh2)
2018-01-03 16:57:31 UTC
Permalink
I have tried it, and it seems to work fine. I set it up ~6-8 weeks ago with Junit5 RC3 and Surefire 2.20:

<properties>
<!-- Move to 2.20.1 once available to fix Heap Overflow error when test fails -->
<maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
<junit.version>5.0.0-RC3</junit.version>
<junit.platform.version>1.0.0-RC3</junit.platform.version>
</properties>


<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>${junit.platform.version}</version>
</dependency>
</dependencies>
<configuration>
<!-- Trim stack traces to bypass Heap Overflow when a test fails with Surefire 2.20 -->
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>

Project dependencies on:
org.junit.jupiter:junit-jupiter-api:${junit.version}
org.junit.jupiter:junit-jupiter-engine:${junit.version}
org.junit.jupiter:junit-jupiter-params:${junit.version}

Hope this helps,
Daniel

From: <tycho-user-***@eclipse.org> on behalf of Felix Dorner <***@gmail.com>
Reply-To: Tycho user list <tycho-***@eclipse.org>
Date: Tuesday, November 28, 2017 at 9:43 AM
To: Tycho user list <tycho-***@eclipse.org>
Subject: Re: [tycho-user] Can JUnit 5 be used?

I would also be interested. There is https://bugs.eclipse.org/bugs/show_bug.cgi?id=522475

On Tue, Nov 28, 2017 at 6:41 PM, <***@guite.de<mailto:***@guite.de>> wrote:
Hi Tycho users,

can JUnit 5 already be utilised with Tycho Surefire? In theory, the junit dependency just needs to be replaced by junit-jupiter-engine. Did anybody try this yet?

Thanks,

Axel

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Linux. The choice of a GNU generation.
Loading...