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 a little easier to run specific tests #1371

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

jimwins
Copy link
Contributor

@jimwins jimwins commented Mar 1, 2024

Summary

Changes ./bin/test.sh to pass command line options through to pytest, and default to only running tests in the tests/ directory instead of everywhere excluding a few directories.

This means you can do things like ./bin/test.sh tests/test_add.py -k json to just run the JSON-related tests for add.

Also keeps the mock_server used in testing quiet so access log entries don't appear on stdout. (Maybe it would be useful to direct the log to a file somewhere but that seemed like more of a hassle than I wanted to tackle for now.)

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

Sorry, something went wrong.

Changes ./bin/test.sh to pass command line options to pytest, and default to
only running tests in the tests/ directory instead of everywhere excluding
a few directories which is more error-prone.

Also keeps the mock_server used in testing quiet so access log entries don't
appear on stdout.
@pirate pirate merged commit 62183b4 into ArchiveBox:dev Mar 2, 2024
1 of 2 checks passed
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