Closed lukepass closed 5 years ago
@lukepass That's a great idea! If anyone can add this feature let's do it.
Not necessary. You can set keys as names for the dataproviders that will also make it clearer which tests ran when using PHPUnit:
public function dpSomeDataForTests(): array {
return [
"condition 1" => ["param1", "param2"],
"condition 2" => ["param1", "param3"],
];
}
@lukepass As @willemstuursma showed above, if you add a string before each @dataProvider entry it will output in the slowness threshold report. The PHPUnit documentation has great examples here: https://phpunit.readthedocs.io/en/8.3/writing-tests-for-phpunit.html#writing-tests-for-phpunit-data-providers-examples-datatest1-php
@willemstuursma Thank you for helping with the example.
Thanks for making this suggestion! 🚀
Hello, when using tests with parameters it could be useful to actually show the parameters' values.
Thanks!