Skip to content

feat: add comprehensive test suite#157

Merged
stabldev merged 8 commits intomainfrom
test/add-tests
Nov 15, 2025
Merged

feat: add comprehensive test suite#157
stabldev merged 8 commits intomainfrom
test/add-tests

Conversation

@stabldev
Copy link
Copy Markdown
Owner

@stabldev stabldev commented Nov 14, 2025

this pull request introduces a comprehensive test suite for the torrra application using pytest. it adds unit, integration, and snapshot tests to ensure code quality, prevent regressions, and validate core functionality.

KEY ADDITIONS:

  • CORE LOGIC TESTS: unit tests for core components like Config and Cache have been added, ensuring they behave as expected in isolation.
  • CLI TESTS: the click CLI is now tested using CliRunner, with application-launching functions mocked to verify argument parsing and command dispatch.
  • SCREEN & UI TESTS: the textual UI screens (WelcomeScreen and SearchScreen) are tested using pytest-textual's pilot to simulate user interaction and assert UI state changes.
  • SNAPSHOT TESTING: pytest-textual-snapshot has been configured to capture SVG snapshots of UI screens, protecting against unintended visual regressions.

@stabldev stabldev marked this pull request as ready for review November 15, 2025 07:34
@stabldev stabldev changed the title test: add unit and integration tests feat: add comprehensive test suite Nov 15, 2025
@stabldev stabldev merged commit 91e821b into main Nov 15, 2025
4 checks passed
@stabldev stabldev deleted the test/add-tests branch November 15, 2025 12:06
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.

1 participant