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

PhantomJS timed out #92

Open
georgezhang opened this issue Jan 25, 2017 · 2 comments
Open

PhantomJS timed out #92

georgezhang opened this issue Jan 25, 2017 · 2 comments

Comments

@georgezhang
Copy link

georgezhang commented Jan 25, 2017

Error:

Running "jasmine:taskName" (jasmine) task
Testing Jasmine specs via PhantomJS
Warning: PhantomJS timed out, possibly due to an unfinished async spec. Use --force to continue.

Gruntfile.js

#```javascript
module.exports = function(grunt) {

// Example configuration using a single requireJS config file
grunt.initConfig({
jasmine: {
taskName: {
src: 'src/*.js',
options: {
specs: 'spec/*Spec.js',
//helpers: 'spec/*Helper.js',
template: require('grunt-template-jasmine-requirejs'),
templateOptions: {
//requireConfigFile: 'src/main.js'
}
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-jasmine');

// Default task(s).
grunt.registerTask('test', ['jasmine:taskName']); //'jasmine:global',

};



package.json

  "devDependencies": {
    "grunt": "*",
    "grunt-contrib-jasmine": "^1.1.0",
    "grunt-contrib-uglify": "*",
    "grunt-contrib-watch": "*",
    "grunt-template-jasmine-requirejs": "^0.2.3",
    "grunt-umd": "*"
  }
@jgonggrijp
Copy link

May be related to gruntjs/grunt-contrib-jasmine#255.

@wpwood
Copy link

wpwood commented Sep 7, 2017

I was seeing this issue. The solution was not really PhantomJS-related, it was more related to the fact that the _SpecRunner.html file was not generated correctly. I was using a later version of lodash, which resulted in https://github.com/cloudchen/grunt-template-jasmine-requirejs/blob/master/src/template-jasmine-requirejs.js#L176 returning a function, rather than the results of a function invocation.

See #88 and #89 for the solution. I wound up forking this repo and pulling in various changes to get it working for me. YMMV.

For what it's worth, it doesn't really look like this git repo is being actively maintained. Perhaps it's time for someone to fork it and take it over.

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

3 participants