Coder Social home page Coder Social logo

grunt-cucumber-js's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

grunt-cucumber-js's Issues

WebDriver doesn't open a page in a Cucumber step

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

Running Grunt Using Tags

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

@MainFeature,@candrews

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.

Grunt 0.4 Release

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!

Update cucumber to fix npm audit issues

  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      

option executable is badly named

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.

Undeclared dependency on `source-map`

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.

Can't find firefox 22 - CentOS

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?

Upgrade to 0.4.0

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

'Support' directory not.... supported

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

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.