Nell'applicazione introtokarma, ho cambiato il file karma-E2E-config.js come segue:errore durante l'esecuzione angularjs campione karma
module.exports = function(config) {
config.set({
basePath : '../',
files : ['tests/e2e/**/*.js'],
frameworks: ['ng-scenario'],
autoWatch : false,
browsers : ['Chrome'],
singleRun : true,
proxies : {
'/': 'http://localhost:8000/'
},
junitReporter : {
outputFile: 'test_out/e2e.xml',
suite: 'e2e'
}
});
};
Quando si esegue il codice, ottengo il seguente output:
C:\Project\introtokarma\config>karma start karma-e2e.conf.js
INFO [karma]: Karma v0.10.1 server started at localhost:9877/
INFO [launcher]: Starting browser Chrome
WARN [launcher]: The path should not be quoted.
Normalized the path to C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
INFO [Chrome 28.0.1500 (Windows 7)]: Connected on socket id pfBNNRs-3wAdgT-QsheL
Chrome 28.0.1500 (Windows 7): Executed 0 of 0 ERROR (0.207 secs/0 secs)
Che non ha funzionato. Grazie per la tua risposta veloce però. Ho aggiornato il post per lavorare con introtokarma – Mel
. L'ho provato, ma ora sto ottenendo: Errore: nessun provider per "framework: ng-scenario"! (Risoluzione: framework: ng-scenario) – Adam
Adam - prova npm installa karma-ng-scenario e vedi se questo aiuta –