Skip to content

Enhance logging #80

Description

@ingoe

If jasmine provides wrong URL's for phantom you get no hint of whats going wrong.
In my case I had a setup where, for whatever reason, jasmine called the phantomrunner with wrong options where the host property contained the protocol twice, e.g. "host":"http://http://localhost:9000/"

In the jasmine.js setup function something like this would be helpful:

phantomjs.on('fail.load',function(url){
      grunt.log.writeln();
      grunt.warn('PhantomJS failed to request url ' + url , 90);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions