Fix coverage configuration and execution
A configuration error prevents the successful creation of code coverage. This patch corrects the .coveragerc omit setup and the tox package name generation. Closes-Bug: 1489164 Change-Id: I172708fe9048ed6208eb404974a5fa2e42bb810a
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
[run]
 | 
			
		||||
branch = True
 | 
			
		||||
source = openstack
 | 
			
		||||
omit = openstack/tests/*,openstack/openstack/*
 | 
			
		||||
omit = openstack/tests/*
 | 
			
		||||
 | 
			
		||||
[report]
 | 
			
		||||
ignore_errors = True
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								tox.ini
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tox.ini
									
									
									
									
									
								
							@@ -38,7 +38,7 @@ commands = {posargs}
 | 
			
		||||
; If this fails for you, you may be running an old version of tox.
 | 
			
		||||
; Run 'pip install tox' to install a newer version of tox.
 | 
			
		||||
[testenv:cover]
 | 
			
		||||
commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}'
 | 
			
		||||
commands = python setup.py test --coverage --coverage-package-name=openstack --testr-args='{posargs}'
 | 
			
		||||
 | 
			
		||||
[testenv:docs]
 | 
			
		||||
commands = python setup.py build_sphinx
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user