codecov

codecov.io gives error in combination with Bitbucket pipelines

浪尽此生 提交于 2021-01-03 06:36:17
问题 I did set up a private repo on Bitbucket to host a PHP project. For this project I also use the pipelines integration. This is the content of my pipelines yaml file: image: php:7.1.4 pipelines: default: - step: script: - ./install_xdebug.sh - ./install_mailhog.sh - ./install_composer.sh - composer install - vendor/bin/phpunit --coverage-clover=coverage.xml - if [ $? -eq 0 ]; then bash <(curl -s https://codecov.io/bash); fi I'm able to generate a code coverage file with Xdebug: Generating code

Why is JaCoCo not covering my String switch statements?

懵懂的女人 提交于 2019-12-03 01:43:26
I have a switch statement that extracts an addressing mode from a String and I've written unit tests to cover, what I thought was every eventuality but JaCoCo seems to skip my switch statements, resulting in lower coverage. Why, if all my case statements, including a default are being executed in tests, would the switch statement not be counted as hit? (See, test results as displayed in CodeCov ) For the switch by String class Fun { static int fun(String s) { switch (s) { case "I": return 1; case "A": return 2; case "Z": return 3; case "ABS": return 4; case "IND": return 5; default: return 6;

Why is JaCoCo not covering my String switch statements?

為{幸葍}努か 提交于 2019-11-29 07:09:11
问题 I have a switch statement that extracts an addressing mode from a String and I've written unit tests to cover, what I thought was every eventuality but JaCoCo seems to skip my switch statements, resulting in lower coverage. Why, if all my case statements, including a default are being executed in tests, would the switch statement not be counted as hit? (See, test results as displayed in CodeCov) 回答1: For the switch by String class Fun { static int fun(String s) { switch (s) { case "I": return