Back to list
tatsuki-washimi

test-code

by tatsuki-washimi

gwpy expansions for experiments

0🍴 0📅 Jan 25, 2026

SKILL.md


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

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.

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon