Install any skill in seconds. Free to start, no credit card required.
Get Started Free →loulanyue/python-testing
pytest、TDD手法、フィクスチャ、モック、パラメータ化、カバレッジ要件を使用したPythonテスト戦略。
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
2 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
We want to profile the execution time and call counts of a Python script `compute.py` using Python's built-in profiler from the command line, sorting output by cumulative time.
| Checked | Without skill | With skill |
|---|---|---|
| Runs python -m cProfile | Passed | Passed |
| Uses -s cumulative to sort performance statistics | Missed | Passed |
The instructions your model reads when the skill loads.
Comprehensive testing strategies for Python applications using pytest, TDD methodology, and best practices.
Always follow the TDD cycle:
# Step 1: Write failing test (RED)
def test_add_numbers():
result = add(2, 3)
assert result == 5
# Step 2: Write minimal implementation (GREEN)
def add(a, b):
return a + b
# Step 3: Refactor if needed (REFACTOR)
pytest --cov to measure coveragetest cases passed, vs 18 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.