Skip to main content
marbles.svg

marbles

https://img.shields.io/pypi/v/marbles.svg https://img.shields.io/travis/twosigma/marbles.svg Documentation Status https://codecov.io/gh/twosigma/marbles/branch/master/graph/badge.svg

Read better test failures.

Overview

marbles is a Python unittest extension that allows test authors to write richer tests that expose more information on test failure to help you debug failing tests faster.

  • Treat test failures as documentation

  • Contextualize failures without digging through test code and dropping debugging statements everywhere

  • Write clearer, more explicit tests

Features

  • Drop-in unittest replacement

  • Information-rich failure messages

    • The full statement that failed (instead of just the last line)

    • Local variables in scope at the time the test failed

    • Optional annotation provided by the test author with details about the test

    • Ability to toggle traceback

  • Semantically-rich assertion methods

  • Assertion logging

Demo

You can run the example tests provided to see what a marbles failure message looks like

getting_started.png

You can also run your existing unittest tests with marbles

python -m marbles test_module.py

Installing

pip install marbles

Release files for marbles 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marbles 0.10.0
File Size Uploaded
marbles-0.10.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marbles 0.10.0
File Interpreter ABI Platform
marbles-0.10.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.7 kB

Release files / marbles-0.10.0.tar.gz

Download URL marbles-0.10.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
398d6d24ae147ecb4a40d00d689795e5d2ffa5c442c37fb52e98f3baa408fdca
BLAKE2b-256 checksum
How to use checksums
07a7ad766803805c0d3eb3847f43cdf065a0d574cc12f0ef90ed60153bf07ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release files / marbles-0.10.0-py2.py3-none-any.whl

Download URL marbles-0.10.0-py2.py3-none-any.whl
Size 3.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
147bc31787df219238a7ce9e066cafe520bfaea360a2f202a9dcd3b5f4250d62
BLAKE2b-256 checksum
How to use checksums
b03816f993b8c82511d326bfc576768380d412fe59b7d213ea93dfc5e222a045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

0.12.3

2 release files

0.12.2

2 release files

0.11.0

2 release files

This release

0.10.0 This release

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page