karma-runner/karma

Add hook to delay `start()`

Ouverte

#375 ouverte le 4 mars 2013

 (5 commentaires) (0 réaction) (0 personne assignée)JavaScript (1 703 forks)batch import
apihelp wantedtype: backlogtype: feature

Métriques du dépôt

Stars
 (11 918 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur