Registry / testing / pytest-pikachu

pytest-pikachu

JSON →
library1.0.0pypypiunverified

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.

pip install pytest-pikachu pytest
INSTALL
IMPORT
SIG · PYTEST-PIKACHU
P
pytest-pikachu
testingpythonv1.0.0
Install
2.6s avg
Import
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.8MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.6s · import 0.000s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

N/A (plugin auto-discovered)
No direct import needed
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.

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.

import pytest # test_example.py def test_passing_example(): assert True def test_another_passing_case(): assert 1 + 1 == 2 # To run this example after installing pytest and pytest-pikachu: # 1. Save the above code as 'test_example.py' # 2. Open your terminal in the same directory # 3. Run: pytest test_example.py # If all tests pass, a surprised Pikachu will appear in your terminal output.
Debug
Known issues
gotchaPikachu only appears if *all* tests pass. If even one test fails, is skipped, or errors, the Pikachu animation will not be displayed.
fix
Ensure your entire test suite passes to see the Pikachu animation. Use `pytest -v` to inspect individual test outcomes.
affects: 1.0.0
gotchaThis plugin is purely visual and provides no programmatic hooks, configuration options, or command-line arguments to modify its behavior or appearance.
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.
affects: 1.0.0
Upgrade
Version history
1.0.0latest on PyPI · released Aug 5, 2021
Audit
Dependencies
pytestrequiredpytest-pikachu is a plugin for pytest and requires it to function.
Agent activity
14 hits · last 30 days
node
12
Resources
pytest-pikachu — pip install pytest-pikachu · libregistry