view tests/example.py @ 42:75886253ee73

test deserialization
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 11:07:51 -0700
parents 73e72a764c3a
children a8013bd3126a
line wrap: on
line source

#!/usr/bin/env python

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},
        'test_timeout': {'type': int,
                         'help': "Time to wait for the browser to output to the log file",
                         'default': 1200},
        }

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