[
https://issues.apache.org/jira/browse/SUREFIRE-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Stein updated SUREFIRE-1585:
--------------------------------------
Description:
The internal *JUnitPlatformProviderInfo* should use the JUnit Platform Launcher
artifact version matching the one (highest?) the user's classpath hints to.
was:
Providers should be able to enhance the test runtime by injecting "missing"
artifacts before executing tests.
For example, the JUnit Platform Provider should add "missing" Test Engine
artifacts for when users only depend on the API of a test framework.
* User test depends on *`junit-jupiter-api`* only? Provide
*`junit-jupiter-engine`* at test runtime -- automatically or via plugin deps.
* User test depends on *`junit-jupiter-params`* only? That pulls in
*`junit-jupiter-api`* transitively. Provide *`junit-jupiter-engine`* at test
runtime -- automatically or via plugin deps.
* User test depends on *`junit:junit:4.12`* only *AND* the JUnit Platform
Provider is forced? Provide *`junit-vintage-engine`* at test runtime --
automatically or via plugin deps.
> Align JUnit Platform version at runtime
> ---------------------------------------
>
> Key: SUREFIRE-1585
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1585
> Project: Maven Surefire
> Issue Type: Improvement
> Components: JUnit 5.x support
> Affects Versions: 2.22.1
> Reporter: Christian Stein
> Assignee: Christian Stein
> Priority: Minor
> Labels: features
> Fix For: Backlog
>
>
> The internal *JUnitPlatformProviderInfo* should use the JUnit Platform
> Launcher artifact version matching the one (highest?) the user's classpath
> hints to.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)