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

Create pytest marker to easily run local unit tests #954

Closed
olliesilvester opened this issue Dec 10, 2024 · 3 comments
Closed

Create pytest marker to easily run local unit tests #954

olliesilvester opened this issue Dec 10, 2024 · 3 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@olliesilvester
Copy link
Collaborator

To run unit tests locally, we now need to type pytest -m "not (s03 or adim)", and the list of things which we are skipping is going to grow. We should add a unit tests only flag which does all the 'nots' for us

Acceptance Criteria

  • Add pytest flag to run local unit tests
@olliesilvester olliesilvester added the good first issue Good for newcomers label Dec 10, 2024
@NINAD-KHADSE
Copy link

Can you assign this to me

@olliesilvester
Copy link
Collaborator Author

Sure, I think we want to add something in our pytest_runtest_setup so that running pytest -m unittests does the same as pytest -m "not (s03 or adim). https://docs.pytest.org/en/stable/example/markers.html might help

@olliesilvester
Copy link
Collaborator Author

tox -e tests gives us this functionality given that [tool.tox] is configured correctly in pyproject.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants