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: I0190d49f1f6153937a2032f199a17696c21efa83
Vu Cong Tuan 9 months ago
parent
commit
b0577a9a36
6 changed files with 9 additions and 18 deletions
  1. 1
    1
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    4
      .testr.conf
  4. 1
    1
      lower-constraints.txt
  5. 2
    2
      test-requirements.txt
  6. 1
    10
      tox.ini

+ 1
- 1
.gitignore View File

@@ -18,7 +18,7 @@ pip-log.txt
18 18
 # Unit test / coverage reports
19 19
 .coverage
20 20
 .tox
21
-.testrepository
21
+.stestr/
22 22
 
23 23
 #Translations
24 24
 *.mo

+ 4
- 0
.stestr.conf View File

@@ -0,0 +1,4 @@
1
+[DEFAULT]
2
+test_path=./mox3/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
lower-constraints.txt View File

@@ -24,7 +24,7 @@ six==1.10.0
24 24
 snowballstemmer==1.2.1
25 25
 Sphinx==1.6.5
26 26
 sphinxcontrib-websupport==1.0.1
27
-testrepository==0.0.18
27
+stestr==2.0.0
28 28
 testtools==2.2.0
29 29
 traceback2==1.4.0
30 30
 unittest2==1.1.0

+ 2
- 2
test-requirements.txt View File

@@ -8,12 +8,12 @@ flake8<2.6.0,>=2.5.4 # MIT
8 8
 
9 9
 coverage!=4.4,>=4.0 # Apache-2.0
10 10
 python-subunit>=1.0.0 # Apache-2.0/BSD
11
-testrepository>=0.0.18 # Apache-2.0/BSD
11
+stestr>=2.0.0 # Apache-2.0
12 12
 testtools>=2.2.0 # MIT
13 13
 
14 14
 six>=1.10.0 # MIT
15 15
 
16 16
 # this is required for the docs build jobs
17
-sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
17
+sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
18 18
 openstackdocstheme>=1.18.1 # Apache-2.0
19 19
 

+ 1
- 10
tox.ini View File

@@ -8,11 +8,7 @@ deps =
8 8
        -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
9 9
        -r{toxinidir}/requirements.txt
10 10
        -r{toxinidir}/test-requirements.txt
11
-commands =
12
-  python setup.py testr --slowest --testr-args='{posargs}'
13
-
14
-[testenv:py27]
15
-basepython = python2.7
11
+commands = stestr run --slowest {posargs}
16 12
 
17 13
 [testenv:docs]
18 14
 basepython = python3
@@ -26,11 +22,6 @@ commands = flake8
26 22
 basepython = python3
27 23
 commands = {posargs}
28 24
 
29
-[testenv:cover]
30
-basepython = python3
31
-commands =
32
-  python setup.py testr --coverage
33
-
34 25
 [flake8]
35 26
 show-source = true
36 27
 ignore = E721

Loading…
Cancel
Save