Browse Source

Add debug testenv in tox

Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.

Change-Id: If12d6c7bd8b1ae04096b526ad37978f60fdb70db
ting.wang 3 years ago
parent
commit
d517d1344b
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      tox.ini

+ 11
- 0
tox.ini View File

@@ -18,6 +18,17 @@ commands =
18 18
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
19 19
          -b html releasenotes/source releasenotes/build/html
20 20
 
21
+[testenv:debug]
22
+commands = oslo_debug_helper {posargs}
23
+
24
+[testenv:debug-py27]
25
+basepython = python2.7
26
+commands = oslo_debug_helper {posargs}
27
+
28
+[testenv:debug-py34]
29
+basepython = python3.4
30
+commands = oslo_debug_helper {posargs}
31
+
21 32
 [testenv:pep8]
22 33
 commands =
23 34
   flake8 {posargs}

Loading…
Cancel
Save