# Customizations to codecov for Trillian repo. This will be merged into
# the team / default codecov yaml file.
#
# Validate changes with:
# curl --data-binary @codecov.yml https://codecov.io/validate

# Exclude code that's for testing, demos or utilities that aren't really
# part of production releases.
ignore:
  - "**/mock_*.go"
  - "**/testonly"
  - "docs"
  - "examples"
  - "integration"
  - "testonly"

# Customizations to codecov for Trillian repo. This will be merged into
# the team / default codecov yaml file.
#
# Validate changes with:
# curl --data-binary @codecov.yml https://codecov.io/validate

# Exclude code that's for testing, demos or utilities that aren't really
# part of production releases.
ignore:
  - "**/mock_*.go"
  - "**/testonly"
  - "docs"
  - "examples"
  - "integration"
  - "testonly"

coverage:
  status:
    project:
      default:
        # Allow 1% coverage drop without complaining, to avoid being too noisy.
        threshold: 1%

Allow 1% drop in test coverage before CodeCov complains
Allow 1% drop in test coverage before CodeCov complains

Non-deterministic tests can result in fluctuations in our test coverage,
which end up flag PRs as reducing test coverage when they actually
don't. Introduce a margin of error for test coverage so that only
significant reductions in test coverage are flagged.
