Giter Club home page Giter Club logo

Comments (5)

iain avatar iain commented on August 26, 2024 1

Cucumber 3.0.1

I've made the following workaround:

  around = method(:Around)
  Knapsack::Adapters::CucumberAdapter.class_eval do
    define_method :Around do |*args, &block|
      around.call(*args, &block)
    end
  end

from knapsack.

ArturT avatar ArturT commented on August 26, 2024

What exactly version of Cucumber do you have?

from knapsack.

igas avatar igas commented on August 26, 2024

I experience the same issue. Also on 3.0.1.

from knapsack.

ArturT avatar ArturT commented on August 26, 2024

Ok. I will have to add support for Cucumber 3 then in https://github.com/ArturT/knapsack/blob/master/lib/knapsack/adapters/cucumber_adapter.rb

from knapsack.

ArturT avatar ArturT commented on August 26, 2024

FYI The workaround proposed by @iain does not work. The code is running but the hook is not called.

I found how to use around hook in Cucumber 3 here https://github.com/cucumber/cucumber-ruby/blob/v3.0.0/lib/cucumber/glue/dsl.rb

I prepared fix here: #68

I've released a new version of knapsack and knapsack_pro gem. You can learn more how to speed up your tests with advanced pro version here: https://knapsackpro.com

Thanks for reporting issue! 👍

from knapsack.

Related Issues (20)

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.