Skip to content

Conversation

@MattShirley
Copy link
Collaborator

@MattShirley MattShirley commented Jun 26, 2025

We are currently using hatch as a build system.

This change allows the user to execute tests in an isolated environment directly from the command line:

hatch run test:test

The old way, where test packages are only set as optional dependencies, requires the user to manually set the environments packages prior to executing tests:

# install test dependencies
pip install -e ".[test]"
hatch run python -m pytest
# uninstall test dependencies
pip install -e .

@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.47%. Comparing base (54b5bee) to head (408c235).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #608   +/-   ##
=======================================
  Coverage   96.47%   96.47%           
=======================================
  Files          29       29           
  Lines        1960     1960           
=======================================
  Hits         1891     1891           
  Misses         69       69           
Flag Coverage Δ
unittests 96.47% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@ponyisi ponyisi left a comment

Choose a reason for hiding this comment

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

I'm happy with it (just, can we confirm the coverage invocation is the same as what the current system does)?

@ponyisi ponyisi merged commit 71e9ff6 into master Jul 13, 2025
37 checks passed
@ponyisi ponyisi deleted the mshirley/add-hatch-test-env branch July 13, 2025 14:14
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.

3 participants