karma-runner/karma

Add hook to delay `start()`

Open

#375 aperta il 4 mar 2013

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (1703 fork)batch import
apihelp wantedtype: backlogtype: feature

Metriche repository

Star
 (11.918 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor