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

Include test script in release tarball #6856

Closed
c0dev0id opened this issue Jan 19, 2025 · 2 comments
Closed

Include test script in release tarball #6856

c0dev0id opened this issue Jan 19, 2025 · 2 comments

Comments

@c0dev0id
Copy link

Hi,
would it be possible include the scripts/run_tests.py script in the release tarball? The tests directory is already there, just the main script is missing. Or move run_tests.py from the scripts to the tests folder?

This would be handy for package maintainers to quickly run automated tests before packaging the updated version for their distribution.

@mikf
Copy link
Owner

mikf commented Jan 19, 2025

Sure, this would be possible, but do you really need it? Its basic functionality (running all tests) can be easily replicated with a Bash oneliner

for t in test/test_*.py; do python "$t"; done

@c0dev0id
Copy link
Author

c0dev0id commented Jan 19, 2025

Sure, I can do this. I'd loose the summary and only get the individual script output. I also need to filter out (or rm) test_result.py, because that's not a test and runs into error.

I thought it might have been an oversight that the tests are shipped, but the run_tests.py is not.

Either way, if it's included in the next release, I'd prefer to use it. If not, I find other ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants