{"library":"pytest-monitor","title":"pytest-monitor","description":"A pytest plugin for analyzing resource usage (CPU, memory, I/O) of tests. It records resource consumption and optionally sends results to a monitoring server. The current version is 1.6.6, with a maintenance cadence of a few releases per year.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pytest-monitor"],"cli":{"name":"pytest","version":"pytest 9.0.3"}},"imports":["import pytest_monitor"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# pytest automatically discovers and activates the plugin\n# Install: pip install pytest-monitor\n# Run tests with resource monitoring enabled by default\n# Example test file: test_example.py\ndef test_resource_usage():\n    import time\n    time.sleep(0.1)\n    assert True\n\n# Run: pytest --monitor=sqlite:///monitor.db test_example.py","lang":"python","description":"Basic usage: install, write a test, and run with the --monitor flag to record results into a SQLite database.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}