This repo was created by accident, use deb-python-os-testr
instead.
Needed-By: I1ac1a06931c8b6dd7c2e73620a0302c29e605f03
Change-Id: I81894aea69b9d09b0977039623c26781093a397a
This commit fixes some doc warnings and disables the smarty-pants
function. The html_use_smartypants function renders '--' to '–'(–)
but it's not good for command options.
Change-Id: Iab0a93db86f46f26b074ca3e9904fd5ff1b0f533
The problem with TODO files is they require constant commits to keep
up to date, and this rarely happens. As is the case here where this
file is now quite stale and hasn't ever been updated. This commit
just drops the file in favor of just using launchpad as our task
tracking solution.
Change-Id: Id576d0f4dab2ecaf28db93909b7860306898a759
This commit makes unexpected success (uxsuccess) as fail. We already
consider expected fail as success. So this is a consistent change.
Change-Id: Ic8f9f07354dc16bc0daac71f59aa9799c04c27a6
When the generate-subunit command was added to os-testr we neglected
to add documentation for the new command, this commit addressed that.
Change-Id: Ie643ecd2eb5faa98bfae921a9d9f96a33c7d43ba
Currently tests are sorted alphabetically by test class name regardless
of the pass/fail status. When troubleshooting failed unit tests in
jenkins jobs with many unit tests (> 11242 in nova), one must scroll
potentially a lot or wait as the page loads to search for the word
'fail' to get to the details of the failed test.
This sorts failed (and error) tests at the top of the HTML page for
easier troubleshooting (sorted failed tests + sorted passed tests).
Change-Id: I0b575e77c4a3e1cc73e60ea48ca5b9bf2e84d76f
The regex building logic is independently useful and will likely start
to be used in other places. This commits splits it out from the ostestr
cli and makes it an independent module that just contains the pieces
necessary for building a selection regex.
Change-Id: Ic8494d0f54357fdafd650b40219e6ad7fd5a65ad
This commit splits out the actual output generation functionality from
the main function. It also adds parameters for specifying a stdin and
stdout file object. This enables external access to the output
generation within python, which could be useful for integrating
subunit-trace output with your own test runner.
Change-Id: Id9fc13b9b70c5b2cc47b48eee6426e7e312eff7f
--coverage-package-name option was no longer supported by 'testr'[1].
This commit replaces from 'testr' to 'test' as coverage option.
[1] https://review.openstack.org/#/c/217847/
Change-Id: I0430fd696752c1cd8e33bb2d146e08e442ebc3f8
This commit adds a version option to os-testr commands. Users would like
to confirm the version when then face unexpected behavior of the command
like a bug.
Change-Id: I30ee9623c25f2ce2da0fab0b5e0a2795b46a2cd6
This commit removes openstack-common.conf file. It was introduced by the
cookiecutter when the os-testr repository was created. However, this
file isn't used anymore, and it was already removed from the
cookiecutter repository as a cleanup[1].
[1] I2b5377391a4422caa395f62fbd5df3049f01fdec
Change-Id: Id33e4c7c4bd8cebded08f5dad55a60cf0be7cd0f
This commit adds pypi download and version badges into README.rst.
With these badges, users can know the latest version and download
statistics.
Change-Id: I16eed1cf4acf84df728ba9c9dcf7706d14a484fe
OpenStack projects are no longer being tested under Python 3.3, so
remove the trove classifier implying that this project supports 3.3.
Change-Id: Ic189fc1f4159459457bf9ca0e55969f6b17b2d8e
Closes-Bug: #1526170
This commit updates one edge case where output from xfail was treated
like a failure instead of like a success.
Change-Id: I073302bc9aea6751906cb4955055c55b7c5dc3fc
This commit enables passing through any unknown arguments to testr run.
There are several features in testr's run cli which aren't exposed in
ostestr. Instead of adding a duplicate argument for each of these this
commit will capture any unidentified arguments and will pass them
through to the testr run subprocess call.
Change-Id: I26eb5c6a5908258c3035b93d72924646bb834d40
We already support comments in blacklist files. we should
do the same for whitelist files as well.
Change-Id: I5ad0c113cdb04dd1bdaa4d8bfdd1a3ab169fb0af
This commit adds a generate_subunit.py script which is used to
generate a subunit stream with a single result for a period of time.
It takes 2 mandatory args and 2 optional to specify the start time,
stop time, and optionally the status (it defaults to success) and an
id for test (if one isn't provided 'devstack' is used) The resulting
stream is written to STDOUT. There is some overlap with subunit-output
from tool from python-subunit, but this is a much smaller scope to just
just do a test_id, status, and timestamps. subunit-output doesn't support
timestamps. Eventually it'll be good to add the missing pieces to
subunit-output at which point we can likely deprecate and remove this.
The intent here is to leverage this to inject 'test results' into the
subunit2sql db to reflect failures that occur before tempest (or any
other test suite) is run. This is necessary for the openstack-health
dashboard. (otherwise it makes our failure rate look much better than
it is) This is only needed until we get a zuul mysql reporter in place
which can give us the higher level run information.
Change-Id: Icc7df33e4d73ba6322af38fbdf3aea230f2fcf4d
Python 3.3/2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.
Change-Id: Ib4c347038aa894ef808c0ab731d9b38982a47b40
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.
Change-Id: Iac614c24ba33b169ffcb83680556adf0b550f2c3
This commit adds a new flag to the ostestr cli, --color, which
is a passthrough option to subunit-trace to enabled colorized
output.
Change-Id: Ic38e008982d8f5bca78c52f51c69b5333744ecbc