Install any skill in seconds. Free to start, no credit card required.
Get Started Free →sickn33/pytest-skill
Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns.
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I am setting up a new Python project and need to configure my testing environment. Please generate the standard configuration file to define my test directory and register some custom tags for long-running tests. Also, provide the exact terminal command I should use to execute the suite across multiple CPU cores and output an HTML report showing how much code was evaluated.
| Checked | Without skill | With skill |
|---|---|---|
| Chooses TOML format over INI format for the configuration file. | Missed | Passed |
| Places the configuration under the `[tool.pytest.ini_options]` table. | Missed | Passed |
| Uses the `auto` value for the `-n` flag to automatically detect CPU cores. | Passed | Passed |
| Specifies HTML as the output format for the coverage report flag. | Passed | Passed |
The instructions your model reads when the skill loads.
Use this skill when you need generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions "pytest", "conftest", "@pytest.fixture", "@pytest.mark", "Python test". Triggers on: "pytest", "conftest", "Python test", "parametrize", "Python...
import pytest
def test_addition():
assert 2 + 3 == 5
def test_exception():
with pytest.raises(ValueError, match="invalid"):
int("not_a_number")
class TestCalculator:
def test_add(self):
calc = Calculator()
assert calc.add(2, 3) == 5
def test_divide_by_zero(self):
with pytest.raises(ZeroDivisionError):
Calculator().divide(10, 0)
@pytest.fixture
def calculator():
return Calculator()
@pytest.fixture
def db_connection():
conn = Database.connect("test_db")
test cases passed, vs 21 / 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.