Skip to content

Conversation

@guotin
Copy link
Contributor

@guotin guotin commented Mar 18, 2021

Here's the version that runs only newly added tests as discussed in #92. The integration test uses pytester. For the unit test of filter_pytest_items I couldn't figure out how to build actual an pytest Item so I relied on some fake objects. Don't know if that's a good or a bad thing.

closes #92

guotin and others added 4 commits March 16, 2021 11:20
Start using the .coverage file from pytest-cov for rts
run only newly added tests that pytest-cov did not pick up when coverage file was made
test cases for running pytest-rts to find newly added tests
Copy link
Contributor

@matveypashkovskiy matveypashkovskiy left a comment

Choose a reason for hiding this comment

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

Looks very good! Please fix minor comments if you think that it makes sense/feasible and let's merge it.

@matveypashkovskiy
Copy link
Contributor

wait before merging, I'll double-check that the right version will be published

@matveypashkovskiy
Copy link
Contributor

Yes the right version will be published:

> semantic-release print-version -D version_variable=pytest_rts/__init__.py:__version__ 2.1.0
@guotin
Copy link
Contributor Author

guotin commented Mar 18, 2021

Does the release version bump up on every commit or every PR? Should a single PR have a single commit ?

@matveypashkovskiy
Copy link
Contributor

Does the release version bump up on every commit or every PR? Should a single PR have a single commit ?

Yes, it bumps minor version on every "feat" commit and patch on every "fix". Everything else doesn't change the version. It is absolutely fine to have several commits in the PR.

guotin added 2 commits March 18, 2021 15:39
add pytest-cov to install requirements and bump up the coverage threshold
add missing type hints to code
@matveypashkovskiy matveypashkovskiy merged commit 2a8300b into master Mar 18, 2021
@guotin guotin deleted the simplify-rts branch March 18, 2021 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants