{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"}],"enrichment":{"capability":"A pytest plugin that automatically measures and logs resource consumption (memory, CPU, execution time) for each test function, storing results in a local SQLite database for historical tracking and comparison.","skillfed_tags":["performance-profiling","test-monitoring","resource-tracking"],"use_cases":["Track memory and CPU trends in test suites across multiple commits to detect performance regressions early.","Compare test resource usage between development, CI, and production environments to identify platform-specific issues.","Identify memory leaks or CPU hotspots in tests by analyzing historical consumption patterns in the SQLite database.","Establish performance baselines for test suites and alert when resource usage exceeds thresholds.","Debug flaky tests by correlating resource spikes with test failures across different runs."],"what_it_does":"pytest-monitor is a pytest plugin that runs automatically once installed and measures resource consumption for every test function. It collects memory usage (via memory-profiler), CPU usage (via psutil), and wall-clock execution time, storing all measurements in a local .pymon SQLite database alongside environment metadata (CPU count, RAM, Python version, system info, and SCM commit hash). This creates a historical record of test performance across runs and environments.\n\nThe plugin is designed for developers who need to track how test resource usage changes over time, compare behavior across different machines or configurations, or identify performance regressions. It requires Python 3.5+ and works only with pytest (not unittest). Results are stored locally by default, though optional backend services (monitor-server-api or pytest-monitor-backend) can be used for centralized storage and querying.","worth_installing":"Yes, if you need historical test performance tracking and your project is on a stable pytest version. The plugin is low-friction to install and requires no code changes\u2014it activates automatically. However, the dormant maintenance status (last release June 2023) means compatibility with very recent pytest or Python versions is unverified; test this in a staging environment first if you're on cutting-edge tooling. No known security vulnerabilities."},"id":"pytest-monitor","links":{"html":"https://skillfed.io/packages/pytest-monitor","md":"https://skillfed.io/packages/pytest-monitor.md","pypi":"https://pypi.org/project/pytest-monitor/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-06-25","license_spdx":null,"license_treatment":"permissive","name":"pytest-monitor","python_support":"supports_current","summary":"Pytest plugin for analyzing resource usage."},"popularity":{"monthly_downloads":113711,"position":12333,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.6"}
