diff options
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 36 |
1 files changed, 24 insertions, 12 deletions
@@ -1,19 +1,31 @@ | |||
1 | =============================== | 1 | ===== |
2 | ttrun | 2 | ttrun |
3 | =============================== | 3 | ===== |
4 | 4 | ||
5 | Simple CLI to run testtools tests | 5 | Simple CLI to run testtools tests |
6 | 6 | ||
7 | Please fill here a long description which must be at least 3 lines wrapped on | 7 | In a testrepository based workflow, sometimes you want/need to run individual |
8 | 80 cols, so that distribution package maintainers can use it in their packages. | 8 | tests outside of the construct of testtools. Additionally, someitmes you want |
9 | Note that this is a hard requirement. | 9 | to use a pre-existing tox virtualenv to do so. Or, at least, I do. |
10 | 10 | ||
11 | * Free software: Apache license | 11 | Typing: |
12 | * Documentation: http://docs.openstack.org/developer/ttrun | 12 | :: |
13 | * Source: http://git.openstack.org/cgit/openstack/ttrun | ||
14 | * Bugs: http://bugs.launchpad.net/ttrun | ||
15 | 13 | ||
16 | Features | 14 | .tox/py27/bin/python -m testtools.run some.test |
17 | -------- | ||
18 | 15 | ||
19 | * TODO | 16 | Got boring. So this is a simple wrapper. |
17 | |||
18 | It has two modes: | ||
19 | :: | ||
20 | |||
21 | ttrun some.test | ||
22 | |||
23 | Will run that test with the system python. | ||
24 | |||
25 | If you want to re-use a tox virtualenv: | ||
26 | :: | ||
27 | ttrun -epy27 some.test | ||
28 | |||
29 | Will run some.test in the given tox venv. | ||
30 | |||
31 | Both modes can be run with no parameters to have testtools run all the tests. | ||