[BUILD-293] Configure surefire dependencies to support JUnit 5 Created: 11/Dec/17  Updated: 27/Oct/20  Resolved: 27/Oct/20

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Neutral
Reporter: Mikaël Geljić Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: junit5
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to BUILD-394 Validate test execution with JUnit5 f... Closed
Template:
Acceptance criteria:
Empty
Epic Link: Basic JUnit 5
Story Points: 5

 Description   
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.19.1</version>
  <dependencies>
    <dependency>
      <groupId>org.junit.platform</groupId>
      <artifactId>junit-platform-surefire-provider</artifactId>
      <version>1.0.2</version>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.0.2</version>
    </dependency>
  </dependencies>
</plugin>
  • issue doing that, is that JUnit would leak into parent poms :/ can we do it via property?
  • surefire version 2.19.1 was mandated because 2.19 had a regression
  • validate as well whether JUnit 4 "vintage" engine needs to be set up here too


 Comments   
Comment by Mikaël Geljić [ 11/Dec/17 ]
Comment by Mikaël Geljić [ 27/Oct/20 ]

Since MGNLCE-182, surefire update to 3.0.0-M5 successfully selects providers/engines automatically, so that poms don't have to.

Generated at Sun Feb 11 23:40:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.