[
https://issues.apache.org/jira/browse/FLINK-41662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martijn Visser updated FLINK-41662:
-----------------------------------
Description:
Flink uses maven-surefire-plugin 3.2.2 since FLINK-28215. It reports every
invocation of a test template without parameters under the bare method name:
ParameterizedTestExtension tests, @TestFactory and @ParameterizedClass methods.
A failure then shows up as testFoo without the parameter set that failed. An
error in @BeforeAll gets an empty name, and classes that use
@ParameterizedClass (FLINK-40988) get tests="0" in the class report.
3.6.1 names these testFoo()[n] and initializationError, and counts
@ParameterizedClass invocations. @ParameterizedTest names (testFoo(int)[n])
don't change. I'd like to do this before we convert more tests to
@ParameterizedClass. Test names in the CI history change for the 215
ParameterizedTestExtension classes.
was:
Flink uses maven-surefire-plugin 3.2.2 since FLINK-28215. It reports every
invocation of a parameterized JUnit 5 test under the bare method name, so a
failure shows up as testFoo without the parameter set that failed. For classes
that use @ParameterizedClass (FLINK-40988) it also writes tests="0" in the
class report.
3.6.1 names each invocation testFoo()[n], counts them in the class report and
reports a failure under that name, both for ParameterizedTestExtension and
@ParameterizedClass. I'd like to do this before we convert more tests to
@ParameterizedClass. Test names in the CI history change for parameterized
tests.
> Bump maven-surefire-plugin to 3.6.1
> -----------------------------------
>
> Key: FLINK-41662
> URL: https://issues.apache.org/jira/browse/FLINK-41662
> Project: Flink
> Issue Type: Technical Debt
> Components: Build System
> Reporter: Martijn Visser
> Assignee: Martijn Visser
> Priority: Major
>
> Flink uses maven-surefire-plugin 3.2.2 since FLINK-28215. It reports every
> invocation of a test template without parameters under the bare method name:
> ParameterizedTestExtension tests, @TestFactory and @ParameterizedClass
> methods. A failure then shows up as testFoo without the parameter set that
> failed. An error in @BeforeAll gets an empty name, and classes that use
> @ParameterizedClass (FLINK-40988) get tests="0" in the class report.
> 3.6.1 names these testFoo()[n] and initializationError, and counts
> @ParameterizedClass invocations. @ParameterizedTest names (testFoo(int)[n])
> don't change. I'd like to do this before we convert more tests to
> @ParameterizedClass. Test names in the CI history change for the 215
> ParameterizedTestExtension classes.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)