Project

Profile

Help

Task #133

Updated by bmbouter about 9 years ago

**Motivation** **Overview** 
 This is a task to replace for the ./run-tests.py modules in platform AND all plugins. Developers Currently, platform (for example) only supports the following options: 

 <pre> 
 -h, --help              show this help message and exit 
 --xunit-file XUNIT_FILE 
 --with-xunit 
 --enable-coverage 
 --with-xcoverage 
 --xcoverage-file XCOVERAGE_FILE 
 -x, --failfast 
 -v, --verbose 
 </pre> 

 The run-tests.py modules should be able to pass adjusted so that they preserve additional options and arguments to ./run-tests.py and have it pass passes them through to nose. We This would make ./run-tests.py behave similar to nosetests. 

 **Use Cases** 

 * Allow the user to use ./run-tests.py to specify a single module or single test to run. This is what nose does if you pass an argument into it. 

 * Allow custom options to be used without having to modify code. The other day I wanted to use a special nose plugin just for my Pulp installation but not others. The only was I could fix do that defect, or we could stop maintaining run-tests.py and still use tox instead. 

 ./run-tests.py was to edit either run-tests.py or pulp.devel.test_runner.run_tests. --options outside of the  

 **Requirements** 
 # Remove run-tests.py Adjust the ./run-tests.py in platform and all plugins plugins. 
 # Remove pulp.devel.test_runner 
 # List tox as a developer dependency somehow (I'm a little unclear on where to put this) 
 # Add a tox configuration to platform and plugins which provides Update the docstring so that it is clear that it takes all the same behaviors (flake8, test selection based on OS, etc). options that nose takes. 
 # Update the any other development docs accordingly. 
 # Consider if any changes need to be done to the dev setup scripts to accommodate this

Back