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

Add cov-dev makefile target #5576

Merged
merged 3 commits into from
Mar 31, 2021
Merged

Add cov-dev makefile target #5576

merged 3 commits into from
Mar 31, 2021

Conversation

weastur
Copy link
Contributor

@weastur weastur commented Mar 31, 2021

What do these changes do?

Add cov-dev target to makefile to run tests with coverage on dev host. Was removed in #5145, but stayed in docs. Just thought it's useful because now there is no way to get coverage except explicit pytest run

Are there changes in behavior for the user?

No.

Related issue number

#5145

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #5576 (6a3fbb6) into master (0c36ab6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5576   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files          41       41           
  Lines        8863     8863           
  Branches     1425     1425           
=======================================
  Hits         8616     8616           
  Misses        130      130           
  Partials      117      117           
Flag Coverage Δ
unit 97.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 0c36ab6...6a3fbb6. Read the comment docs.

Makefile Outdated
.PHONY: cov-dev
cov-dev: .develop
@pytest --cov-report=html
@echo "open file://`pwd`/htmlcov/index.html"
Copy link
Member

Choose a reason for hiding this comment

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

This is macOS-only. There should be a fallback to xdg-open for GNU/Linux if we want this to be useful in general.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@webknjaz webknjaz enabled auto-merge (squash) March 31, 2021 12:08
@webknjaz webknjaz merged commit 47b8d63 into aio-libs:master Mar 31, 2021
commonism pushed a commit to commonism/aiohttp that referenced this pull request Apr 27, 2021
commonism pushed a commit to commonism/aiohttp that referenced this pull request Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants