{"id":10146,"library":"pytest-pikachu","title":"pytest-pikachu","description":"pytest-pikachu is a pytest plugin that displays a surprised Pikachu in the terminal when all tests pass successfully. It aims to add a touch of fun to the testing experience without affecting test logic. The current version is 1.0.0, and it is a stable, low-maintenance plugin that relies on pytest's plugin discovery mechanism.","status":"active","version":"1.0.0","language":"en","source_language":"en","source_url":"https://github.com/chornsby/pytest-pikachu","tags":["pytest","plugin","testing","cli","fun"],"install":[{"cmd":"pip install pytest-pikachu pytest","lang":"bash","label":"Install plugin and pytest"}],"dependencies":[{"reason":"pytest-pikachu is a plugin for pytest and requires it to function.","package":"pytest","optional":false}],"imports":[{"note":"pytest-pikachu is an auto-discovered pytest plugin and does not expose specific Python symbols for direct import into user code. Its functionality is activated automatically when `pytest` is run with the plugin installed.","symbol":"N/A (plugin auto-discovered)","correct":"No direct import needed"}],"quickstart":{"code":"import pytest\n\n# test_example.py\ndef test_passing_example():\n    assert True\n\ndef test_another_passing_case():\n    assert 1 + 1 == 2\n\n# To run this example after installing pytest and pytest-pikachu:\n# 1. Save the above code as 'test_example.py'\n# 2. Open your terminal in the same directory\n# 3. Run: pytest test_example.py\n# If all tests pass, a surprised Pikachu will appear in your terminal output.","lang":"python","description":"Install the `pytest-pikachu` plugin along with `pytest`. Create a test file with only passing tests. When `pytest` is run on this file, if all tests complete successfully, a surprised Pikachu will be displayed in the terminal output."},"warnings":[{"fix":"Ensure your entire test suite passes to see the Pikachu animation. Use `pytest -v` to inspect individual test outcomes.","message":"Pikachu only appears if *all* tests pass. If even one test fails, is skipped, or errors, the Pikachu animation will not be displayed.","severity":"gotcha","affected_versions":"1.0.0"},{"fix":"Understand that the plugin's behavior is fixed. If you require customizable test feedback or integrations, consider other pytest plugins that offer such features.","message":"This plugin is purely visual and provides no programmatic hooks, configuration options, or command-line arguments to modify its behavior or appearance.","severity":"gotcha","affected_versions":"1.0.0"}],"env_vars":null,"last_verified":"2026-04-17T00:00:00.000Z","next_check":"2026-07-16T00:00:00.000Z","problems":[{"fix":"First, verify `pytest-pikachu` is installed (`pip install pytest-pikachu`). Ensure all your tests pass (run `pytest -v`). Check your terminal emulator for proper Unicode and ANSI escape code support, especially on older or non-standard terminals.","cause":"The plugin might not be correctly installed, your terminal might lack proper support for the animation, or not all tests are actually passing.","error":"Pikachu is not showing up when my tests pass!"},{"fix":"You should not attempt to `import pytest_pikachu` in your Python files. Install it using `pip install pytest-pikachu`, and `pytest` will automatically discover and load the plugin when you run your tests.","cause":"`pytest-pikachu` is a pytest plugin, not a standard Python library designed for direct `import` statements in user code.","error":"ModuleNotFoundError: No module named 'pytest_pikachu'"}]}