view tests/example.py @ 20:dbfabe96187e

start to add types...still have some things to work out here
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 26 Mar 2012 14:03:48 -0700
parents cadc9514f60a
children f6c3f91af7f2
line wrap: on
line source

from configuration import Configuration

class ExampleConfiguration(Configuration):
    """example configuration instance"""
    options = {
        'activeTests': {'type': list,
                        'required': "No tests specified; please specify --activeTests",
                        'help': 'Specify tests to run',
                        'flags': ['-a', '--activeTests']}, # command line flags
        'title': {'help': 'talos run title'},
        'browser_path': {'required': True,
                         'flags': ['-e', '--executablePath'],
                         'help': 'path to firefox'},
        'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.",
                    'type': bool}
        }

if __name__ == '__main__':
    options, args = ExampleConfiguration().parse()