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

Closed
opened 2026-03-01 14:49:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1371
Author: @jimwins
Created: 3/1/2024
Status: Merged
Merged: 3/2/2024
Merged by: @pirate

Base: devHead: tweak-test-running


📝 Commits (1)

  • 741ff5f Make it a little easier to run specific tests

📊 Changes

3 files changed (+4 additions, -2 deletions)

View changed files

📝 bin/test.sh (+1 -1)
📝 pyproject.toml (+2 -0)
📝 tests/mock_server/server.py (+1 -1)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ArchiveBox/ArchiveBox/pull/1371 **Author:** [@jimwins](https://github.com/jimwins) **Created:** 3/1/2024 **Status:** ✅ Merged **Merged:** 3/2/2024 **Merged by:** [@pirate](https://github.com/pirate) **Base:** `dev` ← **Head:** `tweak-test-running` --- ### 📝 Commits (1) - [`741ff5f`](https://github.com/ArchiveBox/ArchiveBox/commit/741ff5f1a864ab6833ed98da5ff7a3be79cbee52) Make it a little easier to run specific tests ### 📊 Changes **3 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `bin/test.sh` (+1 -1) 📝 `pyproject.toml` (+2 -0) 📝 `tests/mock_server/server.py` (+1 -1) </details> ### 📄 Description # 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 14:49:36 +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#1393
No description provided.