Browse Source

Switch to stestr

According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I7dd587134d0047f8e18f1218d162dd5301fc732b
Vu Cong Tuan 9 months ago
parent
commit
abe1509c6f
5 changed files with 7 additions and 7 deletions
  1. 1
    1
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    4
      .testr.conf
  4. 1
    1
      requirements.txt
  5. 1
    1
      tox.ini

+ 1
- 1
.gitignore View File

@@ -7,5 +7,5 @@ build
7 7
 *.swp
8 8
 *.swo
9 9
 *.pyc
10
-.testrepository
10
+.stestr/
11 11
 .DS_Store

+ 4
- 0
.stestr.conf View File

@@ -0,0 +1,4 @@
1
+[DEFAULT]
2
+test_path=./tests
3
+top_dir=./
4
+

+ 0
- 4
.testr.conf View File

@@ -1,4 +0,0 @@
1
-[DEFAULT]
2
-test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
3
-test_id_option=--load-list $IDFILE
4
-test_list_option=--list

+ 1
- 1
requirements.txt View File

@@ -9,7 +9,7 @@ sphinxcontrib-actdiag
9 9
 sphinxcontrib-blockdiag
10 10
 sphinxcontrib-nwdiag
11 11
 sphinxcontrib-seqdiag
12
-testrepository>=0.0.18
12
+stestr>=2.0.0
13 13
 testtools>=0.9.34
14 14
 yasfb>=0.5.1
15 15
 whereto>=0.3.0  # Apache-2.0

+ 1
- 1
tox.ini View File

@@ -8,7 +8,7 @@ usedevelop = True
8 8
 setenv = VIRTUAL_ENV={envdir}
9 9
 install_command = pip install -U {opts} {packages}
10 10
 deps = -r{toxinidir}/requirements.txt
11
-commands = python setup.py testr --slowest --testr-args='{posargs}'
11
+commands = stestr run --slowest {posargs}
12 12
 
13 13
 [testenv:venv]
14 14
 commands = {posargs}

Loading…
Cancel
Save