最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Junit 5 maven-surefire-plugin not showing ParameterizedTest values in report - Stack Overflow

programmeradmin4浏览0评论

I have a Junit 5 test

@ParameterizedTest(name = "{index}: {0}")
@MethodSource("data")
test_CHECKVALUE(String, Boolean, String)

If I run this test in VS code the name of the test in the Test Runner for Java will be

1: Check Negative Value

If I run this test using maven it will output

[ERROR] test.value.CHECKVALUE(String, Boolean, String)[4] -- Time elapsed: 1.435 s <<< FAILURE!

The junit 4 tests still output errors as I expect

[ERROR] test.value.DATES[12 (Negative search by Created Date)] -- Time elapsed: 0.410 s <<< FAILURE!

I've been looking everywhere for a solution and all I've found is people saying years ago surefire doesn't handle the reports the same way and then they will probably fix it in the future. The surefire version we are using 3.5.2

Is there anyway to have surefire reports give the values in the ParameterizedTest

发布评论

评论列表(0)

  1. 暂无评论