{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"A pytest plugin that automatically runs tests with Xvfb (or Xephyr/Xvnc) to provide a virtual display, eliminating GUI windows during test execution and enabling headless testing on systems without a display.","skillfed_tags":["gui-testing","ci-automation","headless"],"use_cases":["Run GUI application tests in CI/CD pipelines without a physical display or display server.","Prevent GUI windows from popping up during local test runs while still testing graphical components.","Switch between Xvfb, Xephyr, and Xvnc to visually inspect test failures or debug rendering issues.","Configure virtual display dimensions and color depth per-project via pytest.ini for consistent test environments.","Replace xvfb-run wrapper scripts in GitHub Actions or similar CI configurations with a pytest plugin.","Skip specific tests when running under Xvfb using @pytest.mark.no_xvfb for tests that require a real display."],"what_it_does":"pytest-xvfb is a pytest plugin that integrates virtual display servers (Xvfb, Xephyr, or Xvnc) into your test workflow. When installed, it automatically provides a virtual X11 display for your test suite, preventing GUI windows from appearing during execution and enabling tests to run on headless systems like CI environments. The plugin treats the display server as optional\u2014tests run normally if it's unavailable, but you can enforce its use with command-line flags.\n\nThe plugin offers fine-grained control: you can disable Xvfb per-test with the @pytest.mark.no_xvfb decorator, switch backends via --xvfb-backend, or configure display dimensions and color depth in pytest.ini. It exposes a xvfb fixture with attributes like width, height, colordepth, and display number, and supports dynamic disabling through a pytest hook. This makes it useful both for local GUI testing (where you can visually inspect failures) and for CI pipelines where you want to replace wrapper scripts like xvfb-run.","worth_installing":"Yes, if you run GUI tests in CI or headless environments. The plugin has low install friction, permissive licensing, no known vulnerabilities, and recent maintenance. It is aging (last release 520 days ago) but still actively maintained. The main caveat is that Xvfb must be installed separately on your system; without it, the plugin degrades gracefully unless you explicitly require it. For projects testing graphical applications, this is a straightforward improvement over manual xvfb-run wrapping."},"id":"pytest-xvfb","links":{"html":"https://skillfed.io/packages/pytest-xvfb","md":"https://skillfed.io/packages/pytest-xvfb.md","pypi":"https://pypi.org/project/pytest-xvfb/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-03-12","license_spdx":null,"license_treatment":"permissive","name":"pytest-xvfb","python_support":"supports_current","summary":"A pytest plugin to run Xvfb (or Xephyr/Xvnc) for tests."},"popularity":{"monthly_downloads":229227,"position":9136,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.1.1"}
