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

make it possible to use tox pre_merge to test single file #695

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

jpcbertoldo
Copy link
Contributor

Can we do this, please?

It allows one to pass command line arguments to tox while keeping the previous behaviour as default.

Source: https://stackoverflow.com/a/35287375/9582881

So tox -e pre_merge will run all the tests in tests/pre_merge, like currently.

And tox -e pre_merge tests/pre_merge/path/to/single/test_single.py will only run the tests in test_single.py.

@jpcbertoldo jpcbertoldo marked this pull request as ready for review November 8, 2022 11:15
@samet-akcay
Copy link
Contributor

Wasn't aware that this would be possible

@jpcbertoldo
Copy link
Contributor Author

Wasn't aware that this would be possible

Yes, it's quite handy : )


image

I think it mergeable?

@ashwinvaidya17
Copy link
Collaborator

Nice! Do you guys think we should mention it here as well? https://openvinotoolkit.github.io/anomalib/developer_guide/using_tox.html. It's a handy feature that people might not be aware of.

@samet-akcay
Copy link
Contributor

Nice! Do you guys think we should mention it here as well? https://openvinotoolkit.github.io/anomalib/developer_guide/using_tox.html. It's a handy feature that people might not be aware of.

yeah, that'd be great

@jpcbertoldo
Copy link
Contributor Author

Nice! Do you guys think we should mention it here as well? https://openvinotoolkit.github.io/anomalib/developer_guide/using_tox.html. It's a handy feature that people might not be aware of.

Sure :)

Would you mind to take care of that part? I'm focused on something else atm 😬

@samet-akcay samet-akcay merged commit 0f51200 into openvinotoolkit:main Nov 9, 2022
NagatoYuki0943 added a commit to NagatoYuki0943/anomalib that referenced this pull request Nov 10, 2022
Add posargs to tox to enable testing a single file (openvinotoolkit#695)
@jpcbertoldo jpcbertoldo deleted the tox-posarg branch February 9, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants