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

use newer pytest(-cov) features only when available #39

Merged
merged 1 commit into from
May 3, 2018

Conversation

dirk-thomas
Copy link
Member

@dirk-thomas dirk-thomas commented May 2, 2018

  • -o ... as of pytest version 3.3.0
  • --cov-branch as of pytest-cov version 2.5.0

@codecov-io
Copy link

codecov-io commented May 2, 2018

Codecov Report

Merging #39 into master will decrease coverage by 0.21%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
- Coverage   77.61%   77.39%   -0.22%     
==========================================
  Files          48       48              
  Lines        2519     2526       +7     
  Branches      400      402       +2     
==========================================
  Hits         1955     1955              
- Misses        550      557       +7     
  Partials       14       14
Impacted Files Coverage Δ
colcon_core/task/python/test/pytest.py 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a5ccfa...eddec1e. Read the comment docs.

Copy link
Contributor

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pytest_cov check is actually checking the pytest version and not pytest_cov

PR description should refer to pytest 3.3.0 and not 3.5.0

]
# use --cov-branch option only when available
# https://github.com/pytest-dev/pytest-cov/blob/v2.5.0/CHANGELOG.rst
from pytest import __version__ as pytest_cov_version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be from pytest_cov import ...

Copy link
Member Author

@dirk-thomas dirk-thomas May 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed in eddec1e. Please re-review.

@dirk-thomas dirk-thomas force-pushed the conditional_pytest_features branch from f2cf7a7 to d928c10 Compare May 3, 2018 03:01
@dirk-thomas dirk-thomas force-pushed the conditional_pytest_features branch from d928c10 to eddec1e Compare May 3, 2018 03:17
Copy link
Contributor

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dirk-thomas dirk-thomas merged commit d5ced9d into master May 3, 2018
@dirk-thomas dirk-thomas deleted the conditional_pytest_features branch May 3, 2018 20:01
@dirk-thomas dirk-thomas removed the review Waiting for review (Kanban column) label May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

4 participants