Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is their a personalizable progress indicator in PHPUnit?

Tags:

php

phpunit

When writing PHPUnit tests, some of them turn out to take quite long to execute. To check certain functions, I need to check a lot of different combinations of variables, and this leads to a very long test.

Is is possible to tell PHPUnit how far the test has progressed so it can output the intermediate progress for the test to the command line? Now it is just waiting there for 2 minutes without any indication of progress.

I am just looking for an extra progress indicator that would be part of PHPUnit, and not just a custom echo, which I can write myself just fine.

like image 210
Roel Vermeulen Avatar asked Sep 03 '25 09:09

Roel Vermeulen


1 Answers

I am sorry, but this is not possible.

However, if you need to invoke the same piece of code with different data, for instance call the same method with different arguments, then you should have a look at data providers.

like image 163
Sebastian Bergmann Avatar answered Sep 04 '25 22:09

Sebastian Bergmann