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

Expand testing #15

Merged
merged 5 commits into from
Jul 30, 2024
Merged

Expand testing #15

merged 5 commits into from
Jul 30, 2024

Conversation

kurtmckee
Copy link
Contributor

This PR introduces the following changes:

  • Introduce a tox config so the test suite can be run locally against all supported Python versions, with dependencies already installed.

    Run the test suite using tox, or tox p to run everything in parallel.

  • Test against Python 3.12 and 3.13, and update the list of PyPI trove classifiers to indicate support when the next version is released.

  • Add a test to verify the type of the min_length argument. The code branch was not getting tested at all.

  • Fix an edge case, that developers could pass a bool as the min_length argument.

  • Introduce a coverage config, with a fail-under value of 99% code coverage.

  • Update CI to use tox, so local and CI testing match.

  • Use hypothesis to test round-tripping.

Thanks for your work on sqids!

@kurtmckee
Copy link
Contributor Author

Reviewing the CI failures now.

@kurtmckee
Copy link
Contributor Author

CI is failing unrelated to this PR. I've submitted #17 to address the issue.

@kurtmckee
Copy link
Contributor Author

Resolved merge conflicts

@Pevtrick Pevtrick merged commit 288f896 into sqids:main Jul 30, 2024
8 checks passed
@kurtmckee kurtmckee deleted the expand-testing branch July 30, 2024 14:00
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