[PR #1371] Make it a little easier to run specific tests #2902

Closed
opened 2026-03-01 18:01:05 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/ArchiveBox/ArchiveBox/pull/1371

State: closed
Merged: Yes


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
**Original Pull Request:** https://github.com/ArchiveBox/ArchiveBox/pull/1371 **State:** closed **Merged:** Yes --- # 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 - [X] Command line interface - [ ] Configuration options - [ ] Internal architecture - [ ] Snapshot data layout on disk
kerem 2026-03-01 18:01:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2902
No description provided.