{"id":27298,"library":"pytest-bazel","title":"pytest-bazel","description":"A pytest plugin that collects and runs tests in Bazel workspaces. Currently at version 0.1.6 with no active maintenance; last release was in 2020. Works by integrating pytest with Bazel's test runner, enabling parallel execution and caching. Suitable for Python projects using Bazel as their build system.","status":"deprecated","version":"0.1.6","language":"python","source_language":"en","source_url":"https://github.com/aignas/pytest-bazel.git","tags":["pytest","bazel","testing"],"install":[{"cmd":"pip install pytest-bazel","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required as the testing framework","package":"pytest","optional":false}],"imports":[{"note":"Do not import directly; plugin is auto-discovered when installed.","wrong":"import pytest_bazel","symbol":"pytest_bazel","correct":"pytest_bazel is a plugin; no direct import needed. Use `--bazel` flag with pytest."}],"quickstart":{"code":"# Ensure pytest-bazel is installed\n# Add to BUILD file or run:\npytest --bazel --bazel-python=$(which python) tests/\n","lang":"python","description":"Run pytest with Bazel support."},"warnings":[{"fix":"Switch to `rules_python` integration with native pytest support, or use `pip install bazel_pytest` for an alternative.","message":"pytest-bazel is no longer actively maintained. Consider migrating to `rules_python` or `bazel_pytest`.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure Bazel is installed and available in your shell environment.","message":"The plugin requires that Bazel and Python are on PATH. Misconfiguration may lead to 'Bazel not found' errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install Bazel (https://bazel.build) or add its location to PATH.","cause":"Bazel is not installed or not in PATH.","error":"ERROR: Bazel binary not found"},{"fix":"Run `pip install pytest-bazel` in the correct Python environment.","cause":"pytest-bazel is not installed in the environment.","error":"ModuleNotFoundError: No module named 'pytest_bazel'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}