Giter Club home page Giter Club logo

cucumber-and-minitest-with-and-without-bundler's Introduction

Cucumber and Minitest with and without Bundler

The simplest code example I could come up with that shows the behaviour I don't understand yet.

Local set up

Program Version
ruby 3.3.3
bundler 2.5.14
gem 3.5.14

Prepare running the commands

I updated the current version of all the gems my system, including rubygems isteslf and bundler

> gem update --system && gem update && bundle install

Latest version already installed. Done.
Updating installed gems
Nothing to update
Bundle complete! 2 Gemfile dependencies, 17 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.```

Checked the versions:

> gem -v
3.5.14
> bundler -v
Bundler version 2.5.14

With Bundler

 > bundle exec cucumber
Using the default profile...
Feature: Contrived Examples

  Scenario: Add stuff         # features/gives_cucumber_somthing_to_run.feature:3
    Given arguments 40 and 2  # features/step_definitions/general_steps.rb:1
    When they are added       # features/step_definitions/general_steps.rb:6
    Then the sum should be 42 # features/step_definitions/general_steps.rb:10

1 scenario (1 passed)
3 steps (3 passed)
0m0.003s

All is good.

Without Bundler

> cucumber
Using the default profile...
Feature: Contrived Examples

  Scenario: Add stuff         # features/gives_cucumber_somthing_to_run.feature:3
    Given arguments 40 and 2  # features/step_definitions/general_steps.rb:1
    When they are added       # features/step_definitions/general_steps.rb:6
    Then the sum should be 42 # features/step_definitions/general_steps.rb:10
      undefined method `assert_equal' for #<MinitestWorld:0x000000012aac1608> (NoMethodError)
      ./features/step_definitions/general_steps.rb:11:in `"the sum should be {int}"'
      features/gives_cucumber_somthing_to_run.feature:6:in `the sum should be 42'

Failing Scenarios:
cucumber features/gives_cucumber_somthing_to_run.feature:3 # Scenario: Add stuff

1 scenario (1 failed)
3 steps (1 failed, 2 passed)
0m0.050s

I don't understand why I get the NoMethodError in this case.

cucumber-and-minitest-with-and-without-bundler's People

Contributors

s2k avatar

Watchers

 avatar

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.