equal
deleted
inserted
replaced
739 schema2dot.schema2dot(schema, out, skiptypes=skiptypes) |
739 schema2dot.schema2dot(schema, out, skiptypes=skiptypes) |
740 if viewer: |
740 if viewer: |
741 p = Popen((viewer, out)) |
741 p = Popen((viewer, out)) |
742 p.wait() |
742 p.wait() |
743 |
743 |
|
744 |
|
745 class GenerateQUnitHTML(Command): |
|
746 """Generate a QUnit html file to see test in your browser""" |
|
747 name = "qunit-html" |
|
748 arguments = '<test file> [<dependancy js file>...]' |
|
749 |
|
750 def run(self, args): |
|
751 from cubicweb.devtools.qunit import make_qunit_html |
|
752 print make_qunit_html(args[0], args[1:]) |
|
753 |
744 register_commands((UpdateCubicWebCatalogCommand, |
754 register_commands((UpdateCubicWebCatalogCommand, |
745 UpdateTemplateCatalogCommand, |
755 UpdateTemplateCatalogCommand, |
746 #LiveServerCommand, |
756 #LiveServerCommand, |
747 NewCubeCommand, |
757 NewCubeCommand, |
748 ExamineLogCommand, |
758 ExamineLogCommand, |
749 GenerateSchema, |
759 GenerateSchema, |
|
760 GenerateQUnitHTML, |
750 )) |
761 )) |