devtools/devctl.py
changeset 10413 22a89d0f4143
parent 10308 3f94034cc972
child 10474 1dcc52f5e340
equal deleted inserted replaced
10412:3540131a8405 10413:22a89d0f4143
   835         if viewer:
   835         if viewer:
   836             p = Popen((viewer, out))
   836             p = Popen((viewer, out))
   837             p.wait()
   837             p.wait()
   838 
   838 
   839 
   839 
   840 class GenerateQUnitHTML(Command):
       
   841     """Generate a QUnit html file to see test in your browser"""
       
   842     name = "qunit-html"
       
   843     arguments = '<test file> [<dependancy js file>...]'
       
   844 
       
   845     def run(self, args):
       
   846         from cubicweb.devtools.qunit import make_qunit_html
       
   847         print make_qunit_html(args[0], args[1:])
       
   848 
       
   849 for cmdcls in (UpdateCubicWebCatalogCommand,
   840 for cmdcls in (UpdateCubicWebCatalogCommand,
   850                UpdateCubeCatalogCommand,
   841                UpdateCubeCatalogCommand,
   851                #LiveServerCommand,
   842                #LiveServerCommand,
   852                NewCubeCommand,
   843                NewCubeCommand,
   853                ExamineLogCommand,
   844                ExamineLogCommand,
   854                GenerateSchema,
   845                GenerateSchema,
   855                GenerateQUnitHTML,
       
   856                ):
   846                ):
   857     CWCTL.register(cmdcls)
   847     CWCTL.register(cmdcls)