Skip to content

Instantly share code, notes, and snippets.

View markomanninen's full-sized avatar

Marko Manninen markomanninen

View GitHub Profile
@markomanninen
markomanninen / runtests.py
Last active August 29, 2015 13:59 — forked from jiffyclub/runtests.py
Text output to html table format via tagpy dependency
from IPython.core.magic import register_line_magic
from IPython.display import HTML
from tagpy import helper as h, table
@register_line_magic
def runtests(line):
"""
The %runtests magic searches your IPython namespace for functions
with names that begin with 'test'. It will attempt to run these
functions (calling them with no arguments), and report whether they