{"library":"pytest-mpi","title":"pytest-mpi","description":"pytest-mpi is a pytest plugin that provides fixtures and markers for tests requiring MPI (Message Passing Interface) support, enabling parallel test execution across multiple processes. Version 0.6 is the latest, with infrequent releases.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pytest-mpi"],"cli":null},"imports":["from pytest_mpi import mpi_skip","from pytest_mpi import mpi"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pytest\nfrom pytest_mpi import mpi_skip\n\n@mpi_skip(reason=\"Requires MPI\")\ndef test_mpi_example(mpi):\n    rank = mpi.Get_rank()\n    size = mpi.Get_size()\n    assert size > 0\n    print(f\"Hello from rank {rank} out of {size}\")\n\n# Run with: mpirun -n 4 pytest -v test_mpi.py","lang":"python","description":"Simple test using mpi fixture and mpi_skip decorator.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}