lorairo-test-generator
CommunityGenerate robust tests for Python & PySide6, ensure quality effortlessly.
AuthorNEXTAltair
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the time-consuming and often complex task of writing comprehensive tests for Python applications, especially those with GUI components. It streamlines test generation, ensuring high code quality and significantly reducing manual testing effort.
Core Features & Use Cases
- Pytest Test Generation: Create unit, integration, and GUI tests using pytest, complete with proper fixtures and mocks for isolated and reliable testing.
- PySide6 GUI Testing: Leverage
pytest-qtto write robust and interactive tests for PySide6 UI components, ensuring a smooth user experience. - Coverage Reporting: Generate detailed coverage reports to ensure a minimum of 75% code coverage, helping identify untested areas and improve code quality.
- Use Case: After implementing a new image processing service, use this Skill to generate unit tests for its core logic, integration tests for its database interactions, and GUI tests for its user interface, all while tracking code coverage.
Quick Start
Example: Generate a basic unit test for a function
File: tests/utils/test_calculator.py
import pytest from src.lorairo.utils.calculator import add
@pytest.mark.unit def test_add_numbers(): assert add(1, 2) == 3 assert add(-1, 1) == 0 assert add(0, 0) == 0
Example: Run unit tests with coverage
uv run pytest -m unit --cov=src --cov-report=html
Dependency Matrix
Required Modules
pytestpytest-qtpytest-cov
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lorairo-test-generator Download link: https://github.com/NEXTAltair/LoRAIro/archive/main.zip#lorairo-test-generator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.