Skip to content

Grunt task fails with no explanation #173

@vernak2539

Description

@vernak2539

Running karma with grunt using jasmine, and phantomjs seems to crash a few tests before the end. This recently started happening, not sure why.

adding --verbose to the end of the grunt command didn't seem to log anything useful. Can add later if need be. Not exactly able to update module versions at the moment

Windows 10
node v4.2.3
npm 2.14.4

module versions

    "karma": "^0.12.3",
    "karma-chrome-launcher": "^0.1.3",
    "karma-coverage": "^0.2.1",
    "karma-jasmine": "~0.2.0",
    "karma-ng-html2js-preprocessor": "^0.1.0",
    "karma-phantomjs-launcher": "^0.1.4",
    "karma-teamcity-reporter": "^0.1.2",
    "grunt-karma": "^0.8.3",

task setup

karma: {
    options: {
        basePath: '',
        frameworks: ['jasmine'],
        files: FileFinder.generateList(globalConfig),
        preprocessors: {
            './SAM/Web/Scripts/Cassette/**/*.tpl.html': 'ng-html2js',
            './SAM/Web/Scripts/Cassette/App/**/!(*Tests).js': ['coverage']
        },
        ngHtml2JsPreprocessor: {
            cacheIdFromPath: function(filepath) {
                var cacheId = filepath.replace(/(.)*Web/g, '');
                return cacheId;
            },
            moduleName: 'templates'
        },
        reporters: [process.env.reporter || 'progress'],
        browsers: ['PhantomJS'],
        singleRun: process.env.singleRun || false

    },
    developer: {
        singleRun: true
    }
}
$ grunt karma:developer
Running "karma:developer" (karma) task
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Windows 8 0.0.0)]: Connected on socket IXfBA23OilrC9jQ7rvGD with id 29455449
PhantomJS 1.9.8 (Windows 8 0.0.0): Executed 1449 of 2346 SUCCESS (0 secs / 14.378 secs)
PhantomJS 1.9.8 (Windows 8 0.0.0): Executed 2330 of 2346 SUCCESS (0 secs / 29.312 secs)
ERROR [launcher]: PhantomJS crashed.

INFO [launcher]: Trying to start PhantomJS again (1/2).
PhantomJS 1.9.8 (Windows 8 0.0.0): Executed 2330 of 2346 DISCONNECTED (42.324 secs / 29.312 secs)
Warning: Task "karma:developer" failed. Use --force to continue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions