Nose plugin for generating HTML output
Go to file
Akihiro Motoki 71d12999b0 Python 3 support
* Implicit relative import 'import version' to import htmloutput.version.
  Use explicit relative import instead 'from . import version'.
  Somehow 'from htmloutput import version' does not work for python2
  when I tested this with horizon nosetest.
* Python3 dict does not has_key(). Use 'not in' instead.
* Open a file for writing with 'wb' (binary mode).
  In Python 3, encode() converts unicode including regular string into
  bytes. In Python 2, encode() converts unicode string into string and
  string and bytes are handled equivalently. Thus, opening a file with
  binary mode works both for python2 and python3.
* Decoding from string to unicode is only needed for Python 2,
  so six.PY2 check is added to isinstance(x, str) if-clause.

Change-Id: Ied161e133ced1d672aba9d1a44b52034dfb676da
2017-06-22 19:29:16 +09:00
htmloutput Python 3 support 2017-06-22 19:29:16 +09:00
tools Remove distribute depend 2013-07-05 21:37:51 -04:00
.gitignore Add tox.ini and requirements files. 2012-08-21 11:03:56 -07:00
.gitreview Updated .gitreview location 2012-12-16 10:41:46 -08:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 11:59:37 -08:00
README Initial commit of the nose html output plugin. 2012-08-07 17:21:30 -07:00
results.html Properly group tests in output. 2012-08-08 09:19:47 -07:00
setup.py Python 3 support 2017-06-22 19:29:16 +09:00
tox.ini Add tox.ini and requirements files. 2012-08-21 11:03:56 -07:00

README

A plugin for nosetests that will write out test results to results.html. The
code is adapted from the example html output plugin at
https://github.com/nose-devs/nose/blob/master/examples/html_plugin/htmlplug.py
and the pyunit Html test runner at
http://tungwaiyip.info/software/HTMLTestRunner.html.