UNPKG

ares-ide

Version:

A browser-based code editor and UI designer for Enyo 2 projects

24 lines (23 loc) 561 B
/* To add a test case: 1) Create a subclass of EnyoTestCase 2) Add file to package.js */ enyo.kind({ name: "enyo.TestRunner", kind: enyo.Control, index: 0, rendered: function() { this.inherited(arguments); this.next(); }, next: function() { var test = enyo.TestSuite.tests[this.index++]; if (test) { enyo.log("STARTING TEST SUITE ", test.prototype.kindName); this.createComponent({name: test.prototype.kindName, kind: enyo.TestReporter, onFinishAll: "next"}).render().runTests(); } else { enyo.log("TEST RUNNER FINISHED"); } } });