Commit Graph

13 Commits

Author SHA1 Message Date
Thiago da Silva 25b1e1fad4 Bump version to 0.0.7
Note that there was a jump from 0.0.5 to 0.0.7. This is due
to an error during last release that mistakenly tagged commit
71d12999b0 as 0.0.5 when it
should have bumped to 0.0.6.

Change-Id: Icfa6f0d0e3fb08ba17ddf9ec32a9309f8f78fc9c
2019-11-01 16:44:18 +02:00
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
Monty Taylor 4b8840d96d Remove nose from setup_requires
It's not really a setup_require. nose is not needed to run setup.py.

Change-Id: Ib2e22fe1be40a1feeca4bf7d35ed1797bdb10de8
2013-08-08 13:20:10 -03:00
Clark Boylan b0a3e9be2b Bump version to 0.0.4 in prep for release.
The nose html output plugin now handles skip tests properly. Bump the
version to 0.0.4 so that this new feature can be released.

Change-Id: I1e5ff6e713ff86089f238c5e021f9e746babff8f
2012-08-28 09:42:07 -07:00
Clark Boylan 03ebb761da Record skipped tests.
Record skipped tests. Ensure that this plugin runs before the skip test
plugin as that plugin removes the SkipTest exceptions from the pipeline
and the data isn't available unless you run before the skip plugin.

Change-Id: I0f2b1be51981ca0191f36bdd577d98cd0e99e88e
2012-08-23 19:31:36 -07:00
Clark Boylan fe717883af Fix typo in htmloutput sorting.
Fix a typo and bump the version number to prep for releasing this fix.

Change-Id: Iabcb552d6b0aad8b665a4b825dd9e5434a5962f0
2012-08-22 16:47:42 -07:00
Clark Boylan c7bd84dd31 Bump version number in prep for next release.
Bump version from 0.0.1 to 0.0.2 in prep for the next release. Next
release will contain fix for tests wrapped with a Nose *Suite.

Change-Id: I596bd941d83b0e5a481d613a720a6d4714025d79
2012-08-22 10:21:27 -07:00
Clark Boylan 22e13ab903 Validate the nose test case wrapper test member.
Apparently not every nose test case wrapper has a test member. Validate
that the member exists before accessing it. If the test case does not
have a test member check if it is a Test Suite with a _tests member.
Iterate over that iterable of tests if it exists.

Change-Id: Ie1afeb3ebc023f114975a84d8757d0c282932834
2012-08-21 17:52:35 -07:00
Clark Boylan 6d0d2670b1 Cleanup.
Remove unneeded class and its instantiation. Cleanup docstrings.
2012-08-08 11:41:01 -07:00
Clark Boylan 7872e280a9 Fix versioning depending on nose.
Previously versioning depended on nose which broke setup.py if nose
was not already installed. Break version into its own module so that
it is not dependent on nose.
2012-08-08 10:37:26 -07:00
Clark Boylan 23de5f2415 Properly group tests in output.
The nose.case.Test class wraps all tests and in doing so caused the
output to think all tests belonged to that class. Needed to access the
nose.case.Test.test member in order to get the actual test class.
2012-08-08 09:19:47 -07:00
Clark Boylan 7ed30bccbf Make width of error message relative.
Previously the width of the error message block was static and messages
would go outside the boundary of the border. Change the width to be
relative to make better use of the available space.
2012-08-08 09:07:50 -07:00
Clark Boylan 28529d5bb8 Initial commit of the nose html output plugin.
Should be working as is (but may require some hackery). More automagic
to come once setup.py is written.
2012-08-07 17:21:30 -07:00