codeception-progress-reporter icon indicating copy to clipboard operation
codeception-progress-reporter copied to clipboard

Unable to display the estimated time if the maximum number of steps is not set.

Open Mte90 opened this issue 7 years ago • 9 comments

I get that error when I execute Codeception:

Powered by PHPUnit 6.5.11-9-g814ba320f by Sebastian Bergmann and contributors.

  [RunProcess] Starting java -jar -Dwebdriver.chrome.driver=/opt/selenium/chromedriver /opt/selenium/selenium-server.jar

Current suite: acceptance
Current test: AdminSettingsPageCest
Success: 3 Errors: 0 Fails: 0
[===]
3/3 100% 35 secs/35 secs 18.0 MiB
  [RunProcess] Starting java -jar -Dwebdriver.chrome.driver=/opt/selenium/chromedriver /opt/selenium/selenium-server.jar

                                                                                   
  Unable to display the estimated time if the maximum number of steps is not set.  
                                                                                   

run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite>] [<test>]

  [RunProcess] Stopping java -jar -Dwebdriver.chrome.driver=/opt/selenium/chromedriver /opt/selenium/selenium-server.jar

The process works without problems but there is this error that create confusion. Seems that is generated by the symfony console module.

Mte90 avatar Aug 29 '18 11:08 Mte90

It seems like you're using a pure PHPUnit test case, right?

fr05t1k avatar Aug 29 '18 15:08 fr05t1k

codecept run with only 3 acceptance tests

Mte90 avatar Aug 29 '18 17:08 Mte90

I was using RunProcess to execute selenium and removing that now the error is gone.

Mte90 avatar Aug 29 '18 17:08 Mte90

Can you make a repository with this example for reproducing this bug?

fr05t1k avatar Aug 30 '18 05:08 fr05t1k

This project at this commit https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/commit/9afd61b25d589ecd7a29cb7ffeb43266954fbda0 with your library had that problem

Mte90 avatar Aug 30 '18 10:08 Mte90

I am getting that error when I use codeception without specifying a tests suite

Mte90 avatar Sep 20 '18 15:09 Mte90

The problem seems based on https://github.com/symfony/console/blob/master/Helper/ProgressBar.php#L449

Mte90 avatar Sep 20 '18 15:09 Mte90

I am getting that error when I use codeception without specifying a tests suite

Yes, that's why. I'll check it a bit later

fr05t1k avatar Sep 20 '18 19:09 fr05t1k

any updates?

Mte90 avatar Feb 21 '19 12:02 Mte90