Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing error messages #8

Open
gabortill opened this issue Apr 11, 2016 · 0 comments
Open

missing error messages #8

gabortill opened this issue Apr 11, 2016 · 0 comments

Comments

@gabortill
Copy link

When karma config singleRun is false, I could see the error/warning messages only after the first run, but not after any file saves.

gulp task below

gulp.task('bdd', function(done) { new Server({ configFile: __dirname + '/karma.conf.js' }, done).start(); });

karma conf below
`
module.exports = function(config) {
config.set({
basePath: './',

    frameworks: [
        'jasmine'
    ],

    reporters: [
        'progress'
    ],

    browsers: ['PhantomJS'],

    preprocessors: {
        'test/spec/**/*.spec.js': [
            'eslint',
            'babel'
        ],
        'test/util/**/*.util.js': [
            'eslint',
            'babel'
        ]
    },

    babelPreprocessor: {
        options: {
            presets: ['es2015']
        },
        filename: function(file) {
            return file.originalPath.replace(/\.js$/, '.es5.js');
        },
        sourceFileName: function(file) {
            return file.originalPath;
        }
    },

    eslint: {
        stopOnError: true,
        stopOnWarning: true,
        showWarnings: true,
        engine: {
            configFile: __dirname + '/.eslintrc'
        }
    },

    files: [
        // libraries for the app
        'bower_components/jquery/dist/jquery.js',
        'bower_components/angular/angular.js',
        'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
        'bower_components/angular-cookies/angular-cookies.js',
        'bower_components/angular-resource/angular-resource.js',
        'bower_components/angular-ui-router/release/angular-ui-router.js',
        'bower_components/angular-i18n/angular-locale_nl-nl.js',
        'bower_components/angular-konami/angular-konami.js',
        'bower_components/bootstrap-sass/assets/javascripts/bootstrap.js',
        'bower_components/underscore/underscore.js',
        'bower_components/iban/iban.js',
        'bower_components/moment/moment.js',

        // libraries for testing
        'bower_components/angular-mocks/angular-mocks.js',

        // utils
        'test/util/**/*.util.js',

        // source files
        'src/**/*.js',

        // test files
        'test/spec/**/*.spec.js'
    ]
});

};
`

devDependencies below
"devDependencies": { "babel-preset-es2015": "^6.6.0", "eslint": "^2.7.0", "eslint-config-airbnb": "^6.2.0", "eslint-plugin-angular": "^1.0.0", "eslint-plugin-react": "^4.3.0", "jasmine-core": "^2.4.1", "karma": "^0.13.22", "karma-babel-preprocessor": "^6.0.1", "karma-eslint": "^2.1.0", "karma-jasmine": "^0.3.8", "karma-phantomjs-launcher": "^1.0.0", "phantomjs-prebuilt": "^2.1.7" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant