Skip to content

Use pytest + coverage #190

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

Merged
merged 7 commits into from
Jul 21, 2025

Conversation

applied-mathematician
Copy link
Contributor

@applied-mathematician applied-mathematician commented Jul 16, 2025

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

Improve testing strategy, especially checking code coverage, before working on some src code changes.

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

What does this change do?

Ports the testing strategy from the class-based unittest style to using pytest. It also adds the tool coverage in order to monitor test coverage.

What is your testing strategy?

Run the test script, or simply uv run pytest. We should aim for increasing test coverage.

Is this related to any issues?

No

Have you read the Contributing Guidelines?

@maxwellflitton
Copy link
Contributor

@applied-mathematician thanks for the pull request it's passing all the tests

@maxwellflitton maxwellflitton merged commit a890614 into surrealdb:main Jul 21, 2025
19 checks passed
@applied-mathematician applied-mathematician deleted the use-pytest branch July 21, 2025 19:04
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