OpenStack tooling for interacting with testr
Go to file
lkuchlan 2c07d4e638 subunit2html dealing with incorrect data format
The patch encodes a data string which contains
non-ASCII characters to unicode type.

In python2 there are two text types str and unicode.
When we add two different text types, for example:
>>> "Hello " + u"World"
u'Hello World'

The string on the left is decoded by using the default
system encoding into a Unicode string.
If it would contain non-ASCII characters(as in our case)
this normally blow up with an UnicodeDecodeError because
the default encoding is set to ASCII.

Change-Id: I17e5aa6f45133d9d12aa38cec9cc42694913d4bd
Closes-Bug: #1857901
2020-01-22 10:55:32 +02:00
doc Replace git.openstack.org URLs with opendev.org URLs 2019-06-25 09:33:30 +00:00
os_testr subunit2html dealing with incorrect data format 2020-01-22 10:55:32 +02:00
releasenotes Deprecate ostestr command 2019-06-03 18:44:07 +09:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:42:01 +00:00
.gitignore Switch to stestr under the covers 2017-08-29 11:03:30 -04:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:26 +00:00
.mailmap Initial Cookiecutter Commit. 2015-03-17 14:58:46 -04:00
.stestr.conf Switch to stestr under the covers 2017-08-29 11:03:30 -04:00
.zuul.yaml Add Python 3 Train unit tests 2019-07-15 13:12:46 -04:00
babel.cfg Initial Cookiecutter Commit. 2015-03-17 14:58:46 -04:00
CONTRIBUTING.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-25 09:33:30 +00:00
HACKING.rst Use updated hacking url link 2018-10-17 02:34:54 +00:00
LICENSE Initial Cookiecutter Commit. 2015-03-17 14:58:46 -04:00
MANIFEST.in Initial Cookiecutter Commit. 2015-03-17 14:58:46 -04:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-25 09:33:30 +00:00
requirements.txt Updated from global requirements 2017-11-16 11:20:18 +00:00
setup.cfg Add Python 3 Train unit tests 2019-07-15 13:12:46 -04:00
setup.py Updated from global requirements 2017-03-02 17:50:34 +00:00
test-requirements.txt Update hacking version 2019-06-30 05:52:12 +00:00
tox.ini Add Python 3 Train unit tests 2019-07-15 13:12:46 -04:00

os-testr

Latest Version

Downloads

A testr wrapper to provide functionality for OpenStack projects.

Features

Warning

ostestr command is deprecated. Use stestr command instead like following

  1. Install stestr (This step is already done if you're using ostestr.)
  2. You can use stestr run ... instead of ostestr ...
  3. You can use stestr list ... instead of ostestr --list ...

For more sub commands and options, please refer to stestr help or the stestr document.

  • ostestr: a testr wrapper that uses subunit-trace for output and builds some helpful extra functionality around testr
  • subunit-trace: an output filter for a subunit stream which provides useful information about the run
  • subunit2html: generates a test results html page from a subunit stream
  • generate-subunit: generate a subunit stream for a single test