pytest-pikachu

1.0.0 · active · verified Fri Apr 17

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

view raw JSON →