Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: mojo/tools/data/apptests

Issue 1258903002: Extract `mojo_test` - standalone apptest runner in devtools. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Centralize the documentation in mojo_test. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/tools/apptest_runner.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This file contains a list of Mojo gtest unit tests. 1 # This file contains a list of Mojo apptests. For description of the file
2 # 2 # format, see `mojo_test` in devtools.
3 # This must be valid Python. It may use the |config| global that will be a
4 # mopy.config.Config object, and must set a |tests| global that will contain the
5 # list of tests to run.
6 #
7 # The entries in |tests| are dictionaries of the form described in
8 # devtoolslib/apptest_runner.py.
9 3
10 tests = [ 4 tests = [
11 { 5 {
12 "test": "mojo:asset_bundle_apptests", 6 "test": "mojo:asset_bundle_apptests",
13 }, 7 },
14 { 8 {
15 "test": "mojo:authenticating_url_loader_interceptor_apptests", 9 "test": "mojo:authenticating_url_loader_interceptor_apptests",
16 }, 10 },
17 { 11 {
18 "test": "mojo:clipboard_apptests", 12 "test": "mojo:clipboard_apptests",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi g --use-osmesa"], 60 "shell-args": ["--args-for=mojo:native_viewport_service --use-headless-confi g --use-osmesa"],
67 }, 61 },
68 { 62 {
69 "test": "mojo:versioning_apptests", 63 "test": "mojo:versioning_apptests",
70 }, 64 },
71 { 65 {
72 "test": "mojo:url_response_disk_cache_apptests", 66 "test": "mojo:url_response_disk_cache_apptests",
73 }, 67 },
74 ] 68 ]
75 69
76 if config.target_os == config.OS_LINUX: 70 if target_os == 'linux':
77 tests += [ 71 tests += [
78 { 72 {
79 "test": "mojo:example_apptests", 73 "test": "mojo:example_apptests",
80 "name": "mojo:example_apptests (python_example_service)", 74 "name": "mojo:example_apptests (python_example_service)",
81 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. 75 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg.
82 "test-args": ["--example_apptest_arg"], 76 "test-args": ["--example_apptest_arg"],
83 "shell-args": [ 77 "shell-args": [
84 "--url-mappings=mojo:example_service=mojo:python_example_service" 78 "--url-mappings=mojo:example_service=mojo:python_example_service"
85 ], 79 ],
86 }, 80 },
87 { 81 {
88 "test": "mojo:mojo_url_redirector_apptests", 82 "test": "mojo:mojo_url_redirector_apptests",
89 "test-args": ["--redirector_port=49152", 83 "test-args": ["--redirector_port=49152",
90 "--app_location_files_port=49153"], 84 "--app_location_files_port=49153"],
91 "shell-args": ["--args-for=mojo:mojo_url_redirector 0.0.0.0:49152 http://l ocalhost:49153"], 85 "shell-args": ["--args-for=mojo:mojo_url_redirector 0.0.0.0:49152 http://l ocalhost:49153"],
92 } 86 }
93 ] 87 ]
94 88
95 if config.target_os == config.OS_ANDROID: 89 if target_os == 'android':
96 tests += [ 90 tests += [
97 { 91 {
98 "test": "mojo:example_apptests", 92 "test": "mojo:example_apptests",
99 "name": "mojo:example_apptests (android_example_service)", 93 "name": "mojo:example_apptests (android_example_service)",
100 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg. 94 # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg.
101 "test-args": ["--example_apptest_arg"], 95 "test-args": ["--example_apptest_arg"],
102 "shell-args": [ 96 "shell-args": [
103 "--url-mappings=mojo:example_service=mojo:android_example_service" 97 "--url-mappings=mojo:example_service=mojo:android_example_service"
104 ], 98 ],
105 }, 99 },
106 { 100 {
107 "test": "mojo:notification_apptests", 101 "test": "mojo:notification_apptests",
108 }, 102 },
109 { 103 {
110 "test": "mojo:shell_nfc_apptests", 104 "test": "mojo:shell_nfc_apptests",
111 }, 105 },
112 ] 106 ]
113 107
114 if config.target_os != config.OS_ANDROID: 108 if target_os != 'android':
115 tests += [ 109 tests += [
116 { 110 {
117 "test": "mojo:js_apptests", 111 "test": "mojo:js_apptests",
118 "type": "gtest_isolated", 112 "type": "gtest_isolated",
119 }, 113 },
120 { 114 {
121 "test": "mojo:reaper_apptests", 115 "test": "mojo:reaper_apptests",
122 }, 116 },
123 { 117 {
124 "test": "mojo:dart_apptests", 118 "test": "mojo:dart_apptests",
125 "type": "dart", 119 "type": "dart",
126 }, 120 },
127 { 121 {
128 # https://github.com/domokit/mojo/issues/61 122 # https://github.com/domokit/mojo/issues/61
129 # Sometime the shell get a trucated application when exposed through the 123 # Sometime the shell get a trucated application when exposed through the
130 # http server. 124 # http server.
131 "test": "mojo:shell_apptests", 125 "test": "mojo:shell_apptests",
132 }, 126 },
133 ] 127 ]
OLDNEW
« no previous file with comments | « mojo/tools/apptest_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698