Mercurial > hg > configuration
annotate tests/example.py @ 11:e00afe2c83bf
stubbing configuration parser
| author | Jeff Hammel <jhammel@mozilla.com> | 
|---|---|
| date | Mon, 26 Mar 2012 09:45:06 -0700 | 
| parents | 92e1b2dd60c8 | 
| children | 12162afcd78f | 
| rev | line source | 
|---|---|
| 0 | 1 from configuration import Configuration | 
| 2 | |
| 3 class ExampleConfiguration(Configuration): | |
| 4 """example configuration instance""" | |
| 3 | 5 options = { | 
| 6 'activeTests': {'type': list, | |
| 7 'required': "No tests specified; please specify --activeTests", | |
| 8 'help': 'Specify tests to run', | |
| 9 'flags': ['-a', '--activeTests']}, # command line flags | |
| 10 'title': {'help': 'talos run title'}, | |
| 11 'browser_path': {'required': True, | |
| 12 'flags': ['-e', '--executablePath'], | |
| 13 'help': 'path to firefox'} | |
| 14 } | |
| 15 | |
| 16 if __name__ == '__main__': | |
| 4 | 17 parser = ExampleConfiguration().parser() | 
| 11 
e00afe2c83bf
stubbing configuration parser
 Jeff Hammel <jhammel@mozilla.com> parents: 
4diff
changeset | 18 | 
