Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning for '~@no-js-emulation' with cucumber 3.0.1 #346

Closed
asartalo opened this issue Oct 11, 2017 · 15 comments
Closed

Deprecation warning for '~@no-js-emulation' with cucumber 3.0.1 #346

asartalo opened this issue Oct 11, 2017 · 15 comments

Comments

@asartalo
Copy link

I'm getting the following when running with cucumber 3.0.1:

Deprecated: Found tagged hook with '~@no-js-emulation'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
@dbilek
Copy link

dbilek commented Oct 18, 2017

I have the similar issue:

Deprecated: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.

@systemnate
Copy link

@dbilek - Is there anything in your cucumber.yml file that has ~@wip in it?

@macfanatic
Copy link

Looks like #348 would solve this, not sure what the failures are looking through Travis though.

@bramski
Copy link

bramski commented Nov 19, 2017

We also have:

Deprecated: Found tagged hook with '~@javascript'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
Deprecated: Found tagged hook with '~@no-database-cleaner'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
Deprecated: Found tagged hook with '~@no-database-cleaner'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.

@bramski
Copy link

bramski commented Nov 19, 2017

No such tags exist in our code base.

@kieuhua
Copy link

kieuhua commented Dec 22, 2017

I also have the same issue. I wonder if the issue has been solved.
Thanks

@DannyBen
Copy link

Besides the point that there seems to be a bug somewhere, since a few people are getting these errors with no way of solving them - I for one think this change not an improvement. The old syntax was more succinct, and did not require putting this parameter in quotes, but I guess the authors had their reasons.

@bunnymatic
Copy link

bunnymatic commented Jan 29, 2018

I ran into this issue after some recent upgrades.

As it turns out, the tags are included in other gem's that I'm using. To find the offenders, I went to my bundle directory and ran

grep -l -r '~@wip

and got something like the following

...
./simplecov-0.15.0/cucumber.yml
./rspec-its-1.2.0/cucumber.yml
...

I was able to update some of the offenders to suppress this warning but some of the upgrade will be required by the gem owners (or by PR).

Hope this helps others figure out what's going on with their projects.

@DannyBen
Copy link

As it turns out, the tags are included in other gem's that I'm using.

Although it is a helpful comment, and this way we can find the culprit, I am still confused as to why cucumber complains about features of other gems (that are not even executed) when I am running feature tests for my own project. Seems like an overzealous deprecation case search on cucumber's part. The owners of those other gems should be the ones to see these warnings.

@triskweline
Copy link

cucumber-rails did define some hooks with the deprecated tag syntax (~@tag instead of not @tag).

This issue has been fixed in master, but there hasn't been a new gem release in a while.

Can we get a new gem release?

@mvz
Copy link
Contributor

mvz commented Apr 7, 2018

@triskweline Unfortunately, the generated files still use the old tag syntax. Only the hooks in the step definitions were updated.

@triskweline
Copy link

@mvz Thanks for letting me know.

@xtrasimplicity
Copy link
Member

xtrasimplicity commented Apr 22, 2018

The new release, v1.6.0, will resolve this.
#375

@LeonardoRomeo
Copy link

I have a similar problem, running my test cucumber throws a new exception like this:
"Found tagged hook with '@javascript'.'@tag' is no longer supported, use 'not @tag' instead. (RuntimeError)"
First problem was also with '@wip', but i changed it in 'cucumber.yml with 'not @wip' and when i launch cucumber it doesn't matter anymore; I can't find '@javascript' anywhere, so i can't change it. Anyone knows where to find?

@mvz
Copy link
Contributor

mvz commented Feb 7, 2021

@LeonardoRomeo since this bug was fixed two years ago your problem is probably different (although the strikethrough makes it hard for me to figure out what your problem actually is). Can you open a new ticket please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests