sandermak / gulp-jasmine2-phantomjs Goto Github PK
View Code? Open in Web Editor NEWGulp plugin to run Jasmine 2.0 specs headless on PhantomJS
License: Other
Gulp plugin to run Jasmine 2.0 specs headless on PhantomJS
License: Other
Windows issues cause this to fail. This code has been pulled from jasmine-reporters which had the same issue:
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.
Environment:
Windows 7 Enterprise, x64
Nodejs: 4.4.0
Steps to reproduce:
Expected behavior:
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
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)
Hey!
Wonder to know, is there any plans for this plugin? The time is running out, that's why I think we need to go further.
Please add some tests.
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.