You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Ioan Eugen Stan (Jira)" <ji...@apache.org> on 2020/07/05 08:53:00 UTC

[jira] [Commented] (OFBIZ-11870) Migrate from JUnit 4 to JUnit 5

    [ https://issues.apache.org/jira/browse/OFBIZ-11870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17151522#comment-17151522 ] 

Ioan Eugen Stan commented on OFBIZ-11870:
-----------------------------------------

I think it makes sense to make the transition.

In James we do have it ongoing.

Junit5 people have documented the upgrade process and you can make it
gradually and have both.

Use ` git grep org.junit.Test | wc -l `to count the non-migrated tests.

This is what we have based on the migration samples
https://github.com/junit-team/junit5-samples#gradle-migration-----

https://github.com/junit-team/junit5-samples/blob/main/junit5-migration-gradle/build.gradle


https://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4

----

    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
    testCompileOnly 'junit:junit:4.13'
    testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.5.1'
}

test {
    useJUnitPlatform()
}

----

> Migrate from JUnit 4 to JUnit 5
> -------------------------------
>
>                 Key: OFBIZ-11870
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11870
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>
> With [JUnit 5?|https://markmail.org/message/uav5hgjhfldqsly2] thread I proposed to move from JUnit 4 to JUnit 5:
> {quote}
> I stumbled upon this tweet
>      https://twitter.com/junitteam/status/1036707906706698243
> Had a quick look at
>      https://junit.org/junit5/docs/5.3.0/release-notes/
>      https://www.baeldung.com/junit-5-migration
> {quote}
> The main enhancement I see is "Parallel Test Execution". This could speed our tests and that would be really appreciable.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)