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

Grunt task fails with no explanation #173

Open
vernak2539 opened this issue Dec 15, 2015 · 1 comment
Open

Grunt task fails with no explanation #173

vernak2539 opened this issue Dec 15, 2015 · 1 comment

Comments

@vernak2539
Copy link

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.
@julkue
Copy link
Contributor

julkue commented Feb 16, 2016

@vernak2539 Can you please set up a reduced demo project showing your issue? This might be helpful determining the issue if it is caused by your code and will make it easier to debug if not.

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

No branches or pull requests

3 participants