eric5_unittest.py

changeset 945
8cd4d08fa9f6
parent 896
f855351d5e98
child 1509
c0b5e693b0eb
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
6 6
7 """ 7 """
8 Eric5 Unittest 8 Eric5 Unittest
9 9
10 This is the main Python script that performs the necessary initialization 10 This is the main Python script that performs the necessary initialization
11 of the unittest module and starts the Qt event loop. This is a standalone 11 of the unittest module and starts the Qt event loop. This is a standalone
12 version of the integrated unittest module. 12 version of the integrated unittest module.
13 """ 13 """
14 14
15 import sys 15 import sys
16 16
37 fn = argv[1] 37 fn = argv[1]
38 except IndexError: 38 except IndexError:
39 fn = None 39 fn = None
40 return UnittestWindow(fn) 40 return UnittestWindow(fn)
41 41
42
42 def main(): 43 def main():
43 """ 44 """
44 Main entry point into the application. 45 Main entry point into the application.
45 """ 46 """
46 options = [\ 47 options = [\
47 ("--config=configDir", 48 ("--config=configDir",
48 "use the given directory as the one containing the config files"), 49 "use the given directory as the one containing the config files"),
49 ] 50 ]
50 appinfo = Startup.makeAppInfo(sys.argv, 51 appinfo = Startup.makeAppInfo(sys.argv,
51 "Eric5 Unittest", 52 "Eric5 Unittest",
52 "file", 53 "file",
53 "Graphical unit test application", 54 "Graphical unit test application",

eric ide

mercurial