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-bounces@xxxxxxxxxxx> on behalf of Felix Dorner <felix.dorner@xxxxxxxxx>
Reply-To: Tycho user list <tycho-user@xxxxxxxxxxx>
Date: Tuesday, November 28, 2017 at 9:43 AM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Can JUnit 5 be used?
On Tue, Nov 28, 2017 at 6:41 PM, <info@xxxxxxxx> 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-user@xxxxxxxxxxx
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.