PHPUnit progress points are on a new line and show the "wrong" percentage

I checked my toolkit and got this conclusion

PHPUnit 3.7.21 Configuration read from php-application-toolkit/dev/Test/phpunit.xml ............................................................... 63 / 119 ( 52%) ........................................................ 

At some point, a new line appears, and all the other points go there. The percentage is not 100%, even if all tests are correct.

What is wrong here? Does it matter?

All related files are here: http://github.com/sourcerer-mike/php-application-toolkit/tree/release-0.2

+6
source share
1 answer

FLOOR(63/119*100) gives 52% ...

As PHPUnit runs the test, it displays a marker on the screen to indicate its progress.

This means that by the end of the first line of points (one point for each test) phpunit completed 63 tests out of 119 general tests, which is 52% of the test run. There are 63 dots in this first line, indicating that all 63 of these tests were executed and passed without any failures, omissions, ignoring, etc. The correctness / failure of tests is shown by different colors / symbols than . such as red F for failed test

After each display line completed PHPUnit shows the number of completed tests, the total number of all tests and% completed.

The second line has 56 points, showing the results for tests 64 to 119, after which 100% completion. Since this is not a complete line of points, but the start of all tests is really completed, it again does not display numbers; but will show detailed results for any errors or failures that occurred before returning to the command prompt

+10
source

Source: https://habr.com/ru/post/949290/


All Articles