djangosnippets.org: Latest snippets tagged with 'traceback'http://djangosnippets.org/tags/traceback/2012-08-20T08:57:44.305316-05:00Syntax highlighting for tracebacks in console output
2012-08-20T08:57:44.305316-05:00jezdezhttp://djangosnippets.org/snippets/2805/<p>This is hardcoded to use <a href="http://pypi.python.org/pypi/django-discover-runner">django-discover-runner</a> since that's my main test runner but could easily be adopted to use Django's own test runner. If you're using a terminal that is capable of showing 256 colors use the <code>Terminal256Formatter</code> formatter instead.</p>
<p>Enabled it with the <code>TEST_RUNNER</code> setting:</p>
<pre><code>TEST_RUNNER = 'dotted.path.to.highlighted.runner.HighlightedDiscoverRunner'
</code></pre>
<p>Where …</p>
Freely redistributable