Giter Club home page Giter Club logo

gulp-jasmine2-phantomjs's People

Contributors

nielsboogaard-luminis avatar orthographic-pedant avatar sebastianrosik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-jasmine2-phantomjs's Issues

Mechanism to dispatch error on page time out.

While processing the test scripts, few of them failed due to scripts errors. For instance, if we have 5 test cases and if all of them fail due to various script errors. Then the build will technically pass since there are no test case failures. Though off standard, I was looking at a way to provide some sort of error handler to the developer to create custom error notification of some sort. Let me know if you came across such situation.

Can not run Jasmine2 and phantomjs.exe in Windows 7 x64 environment

Environment:
Windows 7 Enterprise, x64
Nodejs: 4.4.0

Steps to reproduce:

Expected behavior:

  • test should be executed and output should be shown in the console

Actual result:

Other info:
I am not sure if the warnings that were shown during
the nmp packapges installation were important,
but also attaching them to this bug:
a) Gulp:
http://screencast.com/t/VFL8L5g6
b) gulp-jasmine2-phantomjs
http://screencast.com/t/ittzYCYOejI

Stream Output Support for gulp-istanbul or gulp-coverage

I have your project successfully working but I am now trying to get a coverage plugin working from the test results.

I keep getting error:

from task:

  gulp.task "spec_cover", dependencies, ->
    # Covering files
    gulp.src("dist/all.js")
    .pipe(istanbul()).on "finish", ->
      gulp.src("spec/spec_runner.html")
      .pipe(gulp.dest("dist"))
      gulp.src("dist/spec_runner.html")
      .pipe(runner())
      # Creating the reports after tests runned
      .pipe(istanbul.writeReports())

rails2gulp/node_modules/gulp-istanbul/node_modules/istanbul/lib/collector.js:67
        Object.keys(coverage).forEach(function (key) {
               ^
TypeError: Object.keys called on non-object
  at Function.keys (native)
  at Object.Collector.add (/Users/nick.mccready/Development/github/nmccready/rails2gulp/node_modules/gulp-istanbul/node_modules/istanbul/lib/collector.js:67:16)
  at Transform.<anonymous> (/Users/nick.mccready/Development/github/nmccready/rails2gulp/node_modules/gulp-istanbul/index.js:81:15)
  at Transform.EventEmitter.emit (events.js:117:20)
  at /Users/nick.mccready/Development/github/nmccready/rails2gulp/node_modules/gulp-istanbul/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:942:16
  at process._tickCallback (node.js:419:13)

Ability to pass options through to PhantomJS

I've hit the "Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL" error.
I think it might be connected to this issue: https://github.com/n1k0/casperjs/issues/1068

So, I'd like to try starting PhantomJS with the web-security=no option, but there doesn't seem to be any way to pass options through. I tried just passing an object literal with webSecurity:false like you can with gulp-phantom (https://www.npmjs.org/package/gulp-phantom#options) but no joy.

Apologies if this is already possible and I'm just missing something.

Trying to run the example results in ReferenceError

I have my own set of Jasmine spec files, slightly different from what the documentation says in jasmine2-junit. I have the JS dependencies managed via RequireJS and that seems to be causing problem. While trying to run the gulp task I get

ReferenceError: Can't find variable: require

Have you faced issues when the spec HTML loaded JS using require and not via script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.