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

Update documentation about low_limit, high_limit #3880

Closed
delatbabel opened this issue Dec 29, 2016 · 1 comment
Closed

Update documentation about low_limit, high_limit #3880

delatbabel opened this issue Dec 29, 2016 · 1 comment
Labels

Comments

@delatbabel
Copy link

What are you trying to achieve?

In the code coverage report, Low coverage code is reported as < 35%, and high coverage as > 70%. Our company standards require low coverage to be < 30% and high coverage to be > 60%. There was no obvious documentation about how to change these thresholds.

The code coverage documentation here: http://codeception.com/docs/11-Codecoverage does not mention anything.

What do you get instead?

After reading the source code and some experimentation I found that these values could be overridden in the codeception.yml config file as follows:

coverage:
    enabled: true
    low_limit: 30
    high_limit: 60

I suggest updating the documentation page http://codeception.com/docs/11-Codecoverage and perhaps the reference page http://codeception.com/docs/reference/Configuration to cover this.

Details

  • Codeception version: 2.2.7
  • PHP Version: 7.0
  • Operating System: Ubuntu Linux 16.04
  • Installation type: Composer
  • List of installed packages (composer show): Not relevant
  • Suite configuration: Not relevant.
@delatbabel
Copy link
Author

Thanks! :)

chris1312 pushed a commit to chris1312/Codeception that referenced this issue Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants