Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpunit testsuite name

Tags:

phpunit

I use phpunit and webdriver. In my test.php file, I try to get the name of the testsuite from the phpunit.xml file.

<testsuites>
    <testsuite name="myTestsuite">
        <directory>./tests</directory>
    </testsuite>
</testsuites>

Do you know, how can I access the testsuite name?

like image 600
user3890869 Avatar asked Apr 15 '26 12:04

user3890869


1 Answers

I don't think it's possible at the moment.

I created an issue in PHPUnit repository to discuss. https://github.com/sebastianbergmann/phpunit/issues/4468

like image 174
Tomáš Fejfar Avatar answered Apr 20 '26 16:04

Tomáš Fejfar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!