Pytest

🌐Community
by bobmatnyc · vlatest · Repository

Pytest automates Python testing by running tests and reporting results, streamlining development and ensuring code quality.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add pytest npx -- -y @trustedskills/pytest
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "pytest": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/pytest"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The pytest skill enables AI agents to run and manage Python unit tests using the popular pytest framework. It allows users to execute test suites, generate reports, and identify failures or errors in code. This is particularly useful for developers who need automated testing capabilities within their workflows.

When to use it

  • You want to automate running Python unit tests as part of a CI/CD pipeline.
  • You're debugging an application and need detailed feedback from test runs.
  • Your development workflow requires integration with pytest for continuous testing.

Key capabilities

  • Execute pytest commands in a controlled environment.
  • Generate test reports and summaries.
  • Identify failing tests and provide error details.

Example prompts

  • "Run all unit tests in the current directory using pytest."
  • "Generate an HTML report of the latest test run."
  • "Identify which tests failed in the last pytest execution."

Tips & gotchas

  • Ensure that pytest is installed in your environment before using this skill.
  • Test files must be structured correctly (e.g., named test_*.py) for pytest to recognize them.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
bobmatnyc
Installs
376

🌐 Community

Passed automated security scans.