Search

PythonReactSEOPDF
GitHub Skill

test-code

pytestを使用してプロジェクトのテストスイートを実行する

tatsuki-washimi☆ 0 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

Test Code

This skill handles running the project's tests, including core types and general functionality.

Usage

To run all tests:

pytest

To run and check core metadata propagation (TimeSeries/Spectrogram matrices):

pytest tests/ -k "metadata" # or relevant pattern

Focus Areas (Core Verification)

  • Metadata Propagation: Verify radian(), degree(), to_matrix() keep axes and units.
  • Ufuncs: Check that arithmetic operations respect units.
  • Collections: Ensure List/Dict to Matrix conversion inherits metadata correctly.

Implementation Patterns

Physics-First TDD (P-TDD)

When implementing physical logic such as numerical calculations or signal processing, create an independent verification script (scripts/verify_*.py) before adding it to the pytest suite.

  1. Theoretical Verification: Execute Parseval's theorem, check known amplitude/frequency peaks, and perform dimensional analysis of units.
  2. Promotion to Pytest: After success is confirmed, extract assertions from the verification script and migrate/elevate them to a formal pytest file (e.g., tests/fields/test_*.py).

This allows environment-dependent AttributeErrors or logic errors to be isolated in a clean environment before integration into CI.

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-26
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!