Skip to content

Pytest plugin that works with pytest-cov to generate coverage data for CircleCI's Smarter Testing

License

Notifications You must be signed in to change notification settings

circleci/pytest-circleci-coverage

Repository files navigation

pytest-circleci-coverage

A pytest plugin that works with pytest-cov to generate coverage data for CircleCI's Smarter Testing.

Usage

Install the plugin via git.

python -m pip install git+https://github.com/circleci/pytest-circleci-coverage.git

Install pytest-cov.

Run pytest with coverage and the --circleci-coverage flag to generate coverage JSON.

pytest --cov --cov-context=test --circleci-coverage=coverage.json

Development

Running tests

Install the plugin locally in editable mode.

pip install --editable .

Run tests.

pytest

About

Pytest plugin that works with pytest-cov to generate coverage data for CircleCI's Smarter Testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages