Yang Jie created SPARK-44170:
--------------------------------
Summary: Migrating Junit4 to Junit5
Key: SPARK-44170
URL: https://issues.apache.org/jira/browse/SPARK-44170
Project: Spark
Issue Type: Sub-task
Components: Tests
Affects Versions: 4.0.0
Reporter: Yang Jie
JUnit5 is a powerful and flexible update to the JUnit framework, and it
provides a variety of improvements and new features to organize and
describe test cases, as well as help in understanding test results:
# JUnit 5 leverages features from Java 8 or later, such as lambda functions,
making tests more powerful and easier to maintain, but Junit 4 still a Java 7
compatible version
# JUnit 5 has added some useful new features for describing, organizing, and
executing tests. For examples: [Parameterized
Tests|https://junit.org/junit5/docs/current/user-guide/#writing-tests-parameterized-tests]
and [Conditional Test
Execution|https://junit.org/junit5/docs/current/user-guide/#extensions-conditions]
may make our test code look simpler, [Parallel
Execution|https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution]
may make our test faster
More importantly, Junit4 is currently an inactive project, which has not
released a new version for more than two years
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]