1 #!/usr/bin/env python 2 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 """Starts the mojo spy dev server. 6 7 During normal usage of mojo spy, the spy files are compiled into standalone 8 HTML+JS+CSS snippets that are then embedded in the mojo shell. 9 10 The dev server allows edit-reload style development of the spy UI in isolation 11 of the c++ bits. To use, start the dev server, navigate to the URL the script 12 prints, and run any of the tests listed. Reloading in the browser loads the 13 latest content from disk, enabling a traditional web development workflow. 14 """ 15 import sys 16 17 import ui 18 from tvcm import test_runner 19 20 if __name__ == '__main__': 21 runner = test_runner.TestRunner() 22 runner.AddModule(ui) 23 sys.exit(runner.Main()) 24