karma-runner/karma

Add hook to delay `start()`

Aberta

#375 aberto em 4 de mar. de 2013

 (5 comentários) (0 reação) (0 responsável)JavaScript (1.703 forks)batch import
apihelp wantedtype: backlogtype: feature

Métricas do repositório

Stars
 (11.918 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador