s9tpepper / grunt-cucumber-js Goto Github PK
View Code? Open in Web Editor NEWA grunt.js task for cucumber.js
A grunt.js task for cucumber.js
How I can run scenario on PhantomJS ?
WebDriver doesn't load a page when I declare the WebDriver client outside the step definition and run the feature with the grunt-cucumber-js
plugin (grunt cucumberjs
).
Same feature run with the cucumber-js
script (npm run cucumberjs
) works fine.
I suppose there is a problem with WebDriver promise resolving.
Please clone the project to reproduce the issue:
https://github.com/mgryszko/grunt-cucumber-js-webdriver-bug
I am currently unable to run cucumber tests by specifying tags, not sure if this is me actually using it wrong or it is a bug, below is the feature file
Feature: This is the POC Feature
In order to learn Cucumber
As a developer
I want to make this feature pass
@scenario1
Scenario: Scenario 1
Given a variable set to 1
When I increment the variable by 2
Then the variable should contain 3
Here is the gruntfile config
cucumberjs: {
files: 'features',
options: {
steps: 'features/step_definitions',
format: 'json', //Options: pretty, json, progress, summary
tags: '@MainFeature'
}
No tests are run when using any of the tags in the feature file, it's as if they are not found.
I'm posting this issue to let you know that we will be publishing Grunt 0.4 on Monday, February 18th.
If your plugin is not already Grunt 0.4 compatible, would you please consider updating it? For an overview of what's changed, please see our migration guide.
If you'd like to develop against the final version of Grunt before Monday, please specify "grunt": "0.4.0rc8"
as a devDependency in your project. After Monday's release, you'll be able to use "grunt": "~0.4.0"
to actually publish your plugin. If you depend on any plugins from the grunt-contrib series, please see our list of release candidates for compatible versions. All of these will be updated to final status when Grunt 0.4 is published.
Also, in an effort to reduce duplication of effort and fragmentation in the developer community, could you review the grunt-contrib series of plugins to see if any of your functionality overlaps significantly with them? Grunt-contrib is community maintained with 40+ contributors—we'd love to discuss any additions you'd like to make.
Finally, we're working on a new task format that doesn't depend on Grunt: it's called node-task. Once this is complete, there will be one more conversion, and then we'll never ask you to upgrade your plugins to support our changes again. Until that happens, thanks for bearing with us!
If you have any questions about how to proceed, please respond here, or join us in #grunt on irc.freenode.net.
Thanks, we really appreciate your work!
Critical Potential Command Injection
Package shell-quote
Patched in >=1.6.1
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > shell-quote
More info https://nodesecurity.io/advisories/117
Low Incorrect Handling of Non-Boolean Comparisons During
Minification
Package uglify-js
Patched in >= 2.4.24
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > browser-pack > umd
> ruglify > uglify-js
More info https://nodesecurity.io/advisories/39
Low Incorrect Handling of Non-Boolean Comparisons During
Minification
Package uglify-js
Patched in >= 2.4.24
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > umd > ruglify >
uglify-js
More info https://nodesecurity.io/advisories/39
Low Regular Expression Denial of Service
Package uglify-js
Patched in >=2.6.0
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > browser-pack > umd
> ruglify > uglify-js
More info https://nodesecurity.io/advisories/48
Low Regular Expression Denial of Service
Package uglify-js
Patched in >=2.6.0
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > umd > ruglify >
uglify-js
More info https://nodesecurity.io/advisories/48
Low Regular Expression Denial of Service
Package uglify-js
Patched in >=2.6.0
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > browser-pack > umd
> uglify-js
More info https://nodesecurity.io/advisories/48
Low Regular Expression Denial of Service
Package uglify-js
Patched in >=2.6.0
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > umd > uglify-js
More info https://nodesecurity.io/advisories/48
Low Regular Expression Denial of Service
Package uglify-js
Patched in >=2.6.0
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > pogo > uglify-js
More info https://nodesecurity.io/advisories/48
High Regular Expression Denial of Service
Package minimatch
Patched in >=3.0.2
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > browserify > glob > minimatch
More info https://nodesecurity.io/advisories/118
Moderate Regular Expression Denial of Service
Package underscore.string
Patched in >=3.3.5
Dependency of grunt-cucumber [dev]
Path grunt-cucumber > cucumber > underscore.string
More info https://nodesecurity.io/advisories/745
Even when there are undefined steps or tests are failing.
According to http://git.io/MSrClA you use the option named executable
more like one that should be named modulePath
.
I tried executable: "node_modules/cucumber/bin/cucumber.js"
and that didn't work, so I had to peek into the code to figure out how it was used.
I added this package to my devDependencies
in my Node package.json
and set up a task in Grunt. When I went to run it, it complained about "missing module source-map". On a whim, I added source-map
to my devDependencies
in my Node package.json
and then everything worked as I expected.
Please add source-map
as a dependency of this module.
Hi guys,
I'm trying to run my acceptance tests with firefox 22 on a CentOS machine and that's the output:
[10:46:04]: COMMAND POST "/wd/hub/session"
[10:46:04]: DATA {"desiredCapabilities":{"browserName":"firefox","version":"","javascriptEnabled":true,"platform":"LINUX"},"sessionId":null}
[10:46:50]: ERROR COULDNT GET A SESSION ID
[10:46:50]: ERROR UnknownError An unknown server-side error occurred while processing the command.
Unable to connect to host localhost on port 7055 after 45000 ms. Firefox console output:
(firefox:3092): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no display specified
(firefox:3098): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no display specified
[10:46:50]: ERROR NO SESSION, EXITING
[10:46:50]: COMMAND POST "/wd/hub/session/:sessionId/url"
[10:46:50]: DATA {"url":"http://myapp.com.br/v2"}
[10:46:50]: ERROR COULDNT GET A SESSION ID
.[10:46:50]: COMMAND POST "/wd/hub/session/:sessionId/element"
[10:46:50]: DATA {"using":"css selector","value":"[data-type_="logar"]"}
[10:46:50]: ERROR COULDNT GET A SESSION ID
[10:46:50]: COMMAND POST "/wd/hub/session/:sessionId/element"
[10:46:50]: DATA {"using":"css selector","value":"[data-type_="logar"]"}
[10:46:50]: ERROR COULDNT GET A SESSION ID
Fatal error: Cannot read property 'ELEMENT' of undefined
You guys have any idea on how can I get this fixed?
Hi
I appreciate you are busy but would it possible to upgrade cucumber to 0.4.0 this now has support for tables; I will give you a couple of days. If no change I will assume you are no longer interested in this and fork and publish to npm. If you would like to hand this off, I will gladly take it on.
Thanks
Hi,
cucumberjs has the support directories which can house the hooks etc. There is no way to parameterize this in the plugin at the moment. If I'm missing something please let me know, else I'm happy to create a pull request with this feature.
Something like adding:
if (! _.isEmpty(support)) {
execOptions.push('-r');
execOptions.push(support);
}
Thanks,
John
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.