karma-runner/karma

Add hook to delay `start()`

Open

#375 opened on Mar 4, 2013

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (11,918 stars) (1,703 forks)batch import
apihelp wantedtype: backlogtype: feature

Description

For Ext.js, ember, and perhaps other applications, the test runner could use a direct API for delaying the test suite from running. Here's my current work-around:

window.__testacular__.loaded = function(){};
someApp.on('init', function() {
  window.__testacular__.start();
});

And then add it to the files array in the test config. Haven't had a chance to think about the API for that yet.

Contributor guide