I'm a beginner at Karma testing using Jasmine, and i'm having some problem to figure out why my the debug command does not show any output of my AngularJs app testing on the console.
Again, the console is the one who dosent show any output, not the browser. I've seen other questions of people who thought that the browser was supose to show some kind of output, I know it dosent work that way.
Its like the test starts to run but ir dosen't really stops. I'm guessing is something with my karma.conf, probably the 'basePath' or the 'files'.
This is my karma.conf file:
// Karma configuration
// Generated on Sun Apr 03 2016 15:29:19 GMT-0300 (Hora Padrão da Bahia)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: http://ift.tt/1ft83uu
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'../../tests/**/*.js',
'../../src/**/*.js'
],
// list of files to exclude
exclude: [
],
// preprocess matching files before serving them to the browser
// available preprocessors: http://ift.tt/1gyw6MG
preprocessors: {
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: http://ift.tt/1ft83KQ
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: http://ift.tt/1ft83KU
browsers: ['Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity
})
}
This is how my console looks like when I click the 'debug' button in the browser instance that Karma opens on 'karma start'. It stays like this and dosen't ever change nor show any output.
Can some one help me out with this?
Aucun commentaire:
Enregistrer un commentaire