You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure the repository to use pytest for unit testing and integrate it into the pr_checks_backend workflow. Ensure that every PR impacting the data directory and its subdirectories triggers a unit testing check.
Steps
Install pytest as a development dependency.
Set up the repository for pytest:
Confirm that it discovers and runs all test files named test_*.py.
Integrate a unit testing step into the pr_checks_backend workflow:
Run pytest for PRs impacting the data directory and its subdirectories.
Configure the workflow to:
Report success when all tests pass.
Report failure when one or more tests fail.
Acceptance Criteria
pytest is installed and configured in the repository.
Existing tests run successfully using pytest.
A unit testing check step using pytest is added to the pr_checks_backend workflow.
Workflow triggers the unit testing step only for PRs impacting the data directory and its subdirectories.
PR comments/reporting:
Success is reported when all tests pass.
Failure is reported when any test fails.
The text was updated successfully, but these errors were encountered:
nlebovits
changed the title
Task: Add a pytest unit testing step to backend
Task: Set up pytest and integrate unit testing into PR workflow
Nov 20, 2024
nlebovits
changed the title
Task: Set up pytest and integrate unit testing into PR workflow
Task: Set up pytest and integrate unit testing into PR workflow
Nov 20, 2024
This ticket is moving along and the tests run fine on the backend. The one issue I'm running into is with test_diff_backup.py. While these are certainly useful, they aren't really classic unit tests in that they aren't isolated from each other and hit external resources (slack, gcp, email etc.).
Would there be any issues with moving this out of tests and creating a simpler suite for this functionality? I'm not sure where it would go. Possibly data_utils?
Yeah, I think that's probably fine. Maybe @zigouras has opinions, since he's the one who wrote them? Fwiw, I'm not sure how switching to using hypertables will affect the data diff functionality. That's something I need to puzzle through--would be glad to get some help on it, if that's in your wheelhouse @rmartinsen.
Task Description
Configure the repository to use
pytest
for unit testing and integrate it into thepr_checks_backend
workflow. Ensure that every PR impacting thedata
directory and its subdirectories triggers a unit testing check.Steps
pytest
as a development dependency.pytest
:test_*.py
.pr_checks_backend
workflow:pytest
for PRs impacting thedata
directory and its subdirectories.Acceptance Criteria
pytest
is installed and configured in the repository.pytest
.pytest
is added to thepr_checks_backend
workflow.data
directory and its subdirectories.The text was updated successfully, but these errors were encountered: