Update python-octaviaclient tox for stestr
This patch updates the python-octaviaclient tox environment to use stestr. Change-Id: I617834260efa6853496b001a92596cb09c623ed7
This commit is contained in:
		
				
					committed by
					
						
						Adam Harwell
					
				
			
			
				
	
			
			
			
						parent
						
							df1306db11
						
					
				
				
					commit
					22e10bc884
				
			
							
								
								
									
										3
									
								
								.stestr.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.stestr.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					[DEFAULT]
 | 
				
			||||||
 | 
					test_path=${OS_TEST_PATH:-./octaviaclient/tests/}
 | 
				
			||||||
 | 
					top_dir=./
 | 
				
			||||||
@@ -1,8 +0,0 @@
 | 
				
			|||||||
[DEFAULT]
 | 
					 | 
				
			||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
 | 
					 | 
				
			||||||
             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
 | 
					 | 
				
			||||||
             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
 | 
					 | 
				
			||||||
             ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./octaviaclient/tests/unit} $LISTOPT $IDOPTION
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
test_id_option=--load-list $IDFILE
 | 
					 | 
				
			||||||
test_list_option=--list
 | 
					 | 
				
			||||||
@@ -66,7 +66,7 @@ rfc3986==0.3.1
 | 
				
			|||||||
simplejson==3.5.1
 | 
					simplejson==3.5.1
 | 
				
			||||||
six==1.10.0
 | 
					six==1.10.0
 | 
				
			||||||
stevedore==1.20.0
 | 
					stevedore==1.20.0
 | 
				
			||||||
testrepository==0.0.18
 | 
					stestr==2.0.0
 | 
				
			||||||
testscenarios==0.4
 | 
					testscenarios==0.4
 | 
				
			||||||
testtools==2.2.0
 | 
					testtools==2.2.0
 | 
				
			||||||
traceback2==1.4.0
 | 
					traceback2==1.4.0
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,5 +8,5 @@ coverage!=4.4,>=4.0 # Apache-2.0
 | 
				
			|||||||
mock>=2.0.0 # BSD
 | 
					mock>=2.0.0 # BSD
 | 
				
			||||||
python-subunit>=1.0.0 # Apache-2.0/BSD
 | 
					python-subunit>=1.0.0 # Apache-2.0/BSD
 | 
				
			||||||
oslotest>=3.2.0 # Apache-2.0
 | 
					oslotest>=3.2.0 # Apache-2.0
 | 
				
			||||||
testrepository>=0.0.18 # Apache-2.0/BSD
 | 
					stestr>=2.0.0 # Apache-2.0
 | 
				
			||||||
testscenarios>=0.4 # Apache-2.0/BSD
 | 
					testscenarios>=0.4 # Apache-2.0/BSD
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										17
									
								
								tox.ini
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								tox.ini
									
									
									
									
									
								
							@@ -17,8 +17,8 @@ deps =
 | 
				
			|||||||
    -r{toxinidir}/test-requirements.txt
 | 
					    -r{toxinidir}/test-requirements.txt
 | 
				
			||||||
commands =
 | 
					commands =
 | 
				
			||||||
    find . -type f -name "*.pyc" -delete
 | 
					    find . -type f -name "*.pyc" -delete
 | 
				
			||||||
    rm -Rf .testrepository/times.dbm
 | 
					    stestr run {posargs}
 | 
				
			||||||
    python setup.py test --slowest --testr-args='{posargs}'
 | 
					    stestr slowest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:pep8]
 | 
					[testenv:pep8]
 | 
				
			||||||
commands = flake8 {posargs}
 | 
					commands = flake8 {posargs}
 | 
				
			||||||
@@ -27,7 +27,18 @@ commands = flake8 {posargs}
 | 
				
			|||||||
commands = {posargs}
 | 
					commands = {posargs}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:cover]
 | 
					[testenv:cover]
 | 
				
			||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
 | 
					setenv =
 | 
				
			||||||
 | 
					  {[testenv]setenv}
 | 
				
			||||||
 | 
					  PYTHON=coverage run --source octaviaclient --parallel-mode
 | 
				
			||||||
 | 
					whitelist_externals =
 | 
				
			||||||
 | 
					  find
 | 
				
			||||||
 | 
					commands =
 | 
				
			||||||
 | 
					  find octaviaclient -type f -name "*.pyc" -delete
 | 
				
			||||||
 | 
					  coverage erase
 | 
				
			||||||
 | 
					  stestr run {posargs}
 | 
				
			||||||
 | 
					  coverage combine
 | 
				
			||||||
 | 
					  coverage html -d cover
 | 
				
			||||||
 | 
					  coverage xml -o cover/coverage.xml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:docs]
 | 
					[testenv:docs]
 | 
				
			||||||
deps =
 | 
					deps =
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user