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

Allow to run tox on single test files #1181

Merged
merged 6 commits into from
Apr 13, 2023

Conversation

MarkusPiotrowski
Copy link
Contributor

Running tox always runs through the whole test suite, which can take a while, even when doing tox -e py. This small change in the tox.ini allows to pass single files, which I found quite helpful during the dev process.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Allow `tox` to run on single test files
Show example to run a single test file
Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. FWIW, I tend to run pytest directly in my local environment for day-to-development, and leave tox for "full tests" in CI (or locally when I need to test multiple Python versions); but this is a simple modification, so we might as well include it.

@freakboy3742 freakboy3742 merged commit 8606c57 into beeware:main Apr 13, 2023
@MarkusPiotrowski MarkusPiotrowski deleted the single_file_testing branch April 13, 2023 09:28
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