##// END OF EJS Templates
Refactor of coloring and traceback mechanism....
Refactor of coloring and traceback mechanism. This should not change behavior be should slightly clean the code to be a bit more pythonic, and start to introduce methods that avoid side effect (that is to say return values instead of directly writing to stdout). I keep it relatively small and simple for now. My goal is to slowly change the traceback mechanisme to separate buiding the data structure from rendering it to potentially introduce richer tracebacks. Locally I've also started from the other side (re build a traceback rendered from scratch) to see what's needed.

File last commit:

r22963:2961b531
r24334:50b3e0b7
Show More
iptest.py
18 lines | 485 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Nose-based test runner.
"""
from nose.core import main
from nose.plugins.builtin import plugins
from nose.plugins.doctests import Doctest
from . import ipdoctest
from .ipdoctest import IPDocTestRunner
if __name__ == '__main__':
print('WARNING: this code is incomplete!')
print()
pp = [x() for x in plugins] # activate all builtin plugins first
main(testRunner=IPDocTestRunner(),
plugins=pp+[ipdoctest.IPythonDoctest(),Doctest()])