devtools/devctl.py
changeset 5775 34195230dc2a
parent 5762 730d458ec1bf
child 6138 65f5e488f983
--- a/devtools/devctl.py	Thu Jun 17 15:15:52 2010 +0200
+++ b/devtools/devctl.py	Thu Jun 17 15:30:28 2010 +0200
@@ -741,10 +741,21 @@
             p = Popen((viewer, out))
             p.wait()
 
+
+class GenerateQUnitHTML(Command):
+    """Generate a QUnit html file to see test in your browser"""
+    name = "qunit-html"
+    arguments = '<test file> [<dependancy js file>...]'
+
+    def run(self, args):
+        from cubicweb.devtools.qunit import make_qunit_html
+        print make_qunit_html(args[0], args[1:])
+
 register_commands((UpdateCubicWebCatalogCommand,
                    UpdateTemplateCatalogCommand,
                    #LiveServerCommand,
                    NewCubeCommand,
                    ExamineLogCommand,
                    GenerateSchema,
+                   GenerateQUnitHTML,
                    ))