← スキル一覧に戻る

test-code
by tatsuki-washimi
gwpy expansions for experiments
⭐ 0🍴 0📅 2026年1月25日
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/DicttoMatrixconversion 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.
- Theoretical Verification: Execute Parseval's theorem, check known amplitude/frequency peaks, and perform dimensional analysis of units.
- Promotion to Pytest: After success is confirmed, extract assertions from the verification script and migrate/elevate them to a formal
pytestfile (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.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です