Display python unittest results in nice, tabular form [closed]

This is not exactly what you are asking, but there are several options for having a readable test output there:

  • HTMLTestRunner generates easy to use HTML test reports in a tabular form. Here’s a sample report.
  • nose-html-output plugin for nose test runner
  • unittest-xml-reporting – PyUnit-based test runner with JUnit like XML reporting
  • nose with --with-xunit option will produce junit xml style reports that are easy to read and convert

Also see:

  • How to produce html unit test output in Python?
  • Python Unittest Reporting in HTML
  • unittest colored output (coloring the output can make results readable too)

If you want to see test results in a tabular form in the console anyway, I think that a good idea would be to write your own nose plugin or test runner based on unittest.TestProgram as it was done in HTMLTestRunner.

Hope that helps.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)