mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1371] [MERGED] Make it a little easier to run specific tests #1393
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
dev← Head:tweak-test-running📝 Commits (1)
741ff5fMake 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.shto pass command line options through topytest, and default to only running tests in thetests/directory instead of everywhere excluding a few directories.This means you can do things like
./bin/test.sh tests/test_add.py -k jsonto just run the JSON-related tests foradd.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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.