Back to list
Silviase

refactoring-05-testing-regression

by Silviase

0🍴 0📅 Jan 15, 2026

SKILL.md


name: refactoring-05-testing-regression description: Use when adding tests and regression checks for Python research code.

Refactoring 05: Testing and Regression

Goal

Protect core logic with small, fast tests and regression checks for key metrics.

Sequence

  • Order: 05
  • Previous: refactoring-04-data-io-validation
  • Next: refactoring-06-static-analysis-style

Workflow

  • Identify stable, critical functions and write unit tests first.
    • Success: Core logic has focused unit tests.
  • Add regression tests for metrics or outputs using small fixtures.
    • Success: Key metrics have stable regression checks.
  • Keep tests fast; mark slow or data heavy tests as optional.
    • Success: Default test run finishes quickly.
  • Prefer deterministic fixtures over sampling from large datasets.
    • Success: Tests run deterministically without external data.
  • Add a single command to run tests via uv run.
    • Success: One documented command runs the full test suite.

Guardrails

  • Avoid testing training loops end to end unless requested.
  • Do not add flaky tests; stabilize randomness before asserting values.
  • Keep test data small and stored under tests/.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

0/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