PHPUnit - @dataProvider - display #dataset data

Hi,

If using PHPUnit @dataProvider annotation test fails for some data set, PHPStorm displays information about that: failed method with data set #41.
I'm testing webform input so I have multi field values to validate, which gives me a lot of datasets to validate, and I don't want to use numeric keys, because I rather put new values in place where they belong best.

Is there option for tests to display actual data set values?

3

Is there any change on getting this feature? It's really neat to be able to recognize which data set in provider test was failing :(

 

0

There is a ticket on YouTrack that seems to be about it:
https://youtrack.jetbrains.com/issue/WI-21383/Add-content-of-a-dataset-when-running-test-with-data-provider

Does it look like what are you looking for?

0

请先登录再写评论。