Mercurial > hg > configuration
annotate 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 |
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'], | |
19
cadc9514f60a
we have a legitimately failing test!
Jeff Hammel <jhammel@mozilla.com>
parents:
14
diff
changeset
|
13 'help': 'path to firefox'}, |
cadc9514f60a
we have a legitimately failing test!
Jeff Hammel <jhammel@mozilla.com>
parents:
14
diff
changeset
|
14 'develop': {'help': "useful for running tests on a developer machine. Creates a local webserver and doesn't upload to the graph servers.", |
cadc9514f60a
we have a legitimately failing test!
Jeff Hammel <jhammel@mozilla.com>
parents:
14
diff
changeset
|
15 'type': bool} |
3 | 16 } |
17 | |
18 if __name__ == '__main__': | |
19
cadc9514f60a
we have a legitimately failing test!
Jeff Hammel <jhammel@mozilla.com>
parents:
14
diff
changeset
|
19 options, args = ExampleConfiguration().parse() |
cadc9514f60a
we have a legitimately failing test!
Jeff Hammel <jhammel@mozilla.com>
parents:
14
diff
changeset
|
20 |