Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Add test markers to allow more granularity selecting tests #1219

Merged

Conversation

m-novikov
Copy link
Contributor

@m-novikov m-novikov commented Nov 22, 2021

To speed up testing add markers for selecting/deselecting following cases:

  • hiredis_parser
  • python_parser
  • connection pool
  • single connection

What do these changes do?

Following up on #1213 as the current test suite could take longer to run, it makes sense to have more granularity when selecting tests.

It is probably most convenient to use for deselecting tests. For example:

pytest -k "not python_parser and not connection_pool" -v

Are there changes in behavior for the user?

No changes to behavior

Related issue number

#1213

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> (e.g. 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.

To speed up testing add markers for selecting/deselecting following cases:
* hiredis_parser
* python_parser
* connection pool
* single connection
@codecov
Copy link

codecov bot commented Nov 22, 2021

Codecov Report

Merging #1219 (f147e1a) into master (2ba15fb) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1219      +/-   ##
==========================================
+ Coverage   90.68%   90.71%   +0.02%     
==========================================
  Files          21       21              
  Lines        6872     6872              
  Branches      793      793              
==========================================
+ Hits         6232     6234       +2     
+ Misses        468      467       -1     
+ Partials      172      171       -1     
Flag Coverage Δ
unit 90.62% <ø> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
tests/conftest.py 92.25% <ø> (ø)
aioredis/connection.py 77.67% <0.00%> (+0.23%) ⬆️

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 2ba15fb...f147e1a. Read the comment docs.

Copy link
Collaborator

@Andrew-Chen-Wang Andrew-Chen-Wang left a comment

Choose a reason for hiding this comment

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

This LGTM! Thanks for contributing!

@seandstewart seandstewart merged commit 8a38f98 into aio-libs-abandoned:master Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants