Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activate coverage-clover logging at phpunit config to get clover.xml which read by coveralls.phar #1040

Merged
merged 2 commits into from
May 22, 2018

Conversation

samsonasik
Copy link
Member

looking at previous travis build, the coveralls command got the following error:

$ travis_retry php tests/bin/coveralls.phar
                                                                                 
  [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]  
  coverage_clover XML file is not readable                                       
                                                                                 
coveralls:v1:jobs [-c|--config [CONFIG]] [--dry-run] [--exclude-no-stmt] [-e|--env [ENV]] [-x|--coverage_clover COVERAGE_CLOVER] [-r|--root_dir [ROOT_DIR]]
The command "php tests/bin/coveralls.phar" failed. Retrying, 2 of 3.
                                                                                 
  [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]  
  coverage_clover XML file is not readable                                       
                                                                                 
coveralls:v1:jobs [-c|--config [CONFIG]] [--dry-run] [--exclude-no-stmt] [-e|--env [ENV]] [-x|--coverage_clover COVERAGE_CLOVER] [-r|--root_dir [ROOT_DIR]]
The command "php tests/bin/coveralls.phar" failed. Retrying, 3 of 3.
                                                                                 
  [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]  
  coverage_clover XML file is not readable                                       
                                                                                 
coveralls:v1:jobs [-c|--config [CONFIG]] [--dry-run] [--exclude-no-stmt] [-e|--env [ENV]] [-x|--coverage_clover COVERAGE_CLOVER] [-r|--root_dir [ROOT_DIR]]
The command "php tests/bin/coveralls.phar" failed 3 times.

It try to read build/logs/clover.xml which not exists, which should be generated when phpunit run

@jim-parry
Copy link
Contributor

@lonnieezell I am not sure why the clover.xml generation is commented out to begin with.
My phpunit.xml includes that, as well as logging to create the HTML code coverage report.

@samsonasik
Copy link
Member Author

looking at latest travis build https://travis-ci.org/bcit-ci/CodeIgniter4/jobs/381923964 , we now have generated coveralls data
screen shot 2018-05-22 at 6 59 16 am

@lonnieezell
Copy link
Member

@jim-parry Looks like an oops on my part. Thought I did that in my local one.

@lonnieezell lonnieezell merged commit d1618ff into codeigniter4:develop May 22, 2018
@samsonasik samsonasik deleted the cov branch May 22, 2018 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants