[ 
https://issues.apache.org/jira/browse/HADOOP-19608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran resolved HADOOP-19608.
-------------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

JUnit has been upgraded to 5.13.3 so that test suites can
be parameterized at the class level (again).
This requires a matching upgrade to Surefire and some
tuning of surefire options to restore existing behavior.

Dependency Changes:
* junit.jupiter and junit.vintage => 5.13.3
* junit.platform => 1.13.3
* Surefire => 3.5.3.

Changed Surefire Flags: 
* trimStackTrace => false
* surefire.failIfNoSpecifiedTests => false

h2. Build property trimStackTrace

trimStackTrace is set to false by default

This restores the behavior that any test failure
includes a deep stack trace rather than the first two elements.
In this version of surefire it also seems to print the full stack
of JUnit test execution and the java runtime itself.

This is only an issue for when tests fail.
If the short trace is desired, enable it on the command line:
{code}
    mvn test -DtrimStackTrace
{code}

h2. Build property surefire.failIfNoSpecifiedTests

surefire.failIfNoSpecifiedTests is set to false by default    

This is required to retain the behavior where the invocation
{code}
    mvn verify -Dtest=unknown
{code}
will skip the unit tests but still run the integration tests, and a
specific property "it.test" can name the specific test to run:
{code}
    mvn verify -Dtest=unknown -Dit.test=ITestConnection
{code}


> Upgrade to Junit 5.13.3
> -----------------------
>
>                 Key: HADOOP-19608
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19608
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build, test
>    Affects Versions: 3.5.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.0
>
>
> Upgrade to JUnit 5.13.3 so that Parameterized test classes work again.
> Needs corresponding updates in surefire



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to