Я учу огурец, и у меня есть некоторые проблемы.
Я создал объект в этом месте /Documents/calculator/features/adding.features
И когда я выполняю «огурец» в папке / features, я получаю следующее сообщение об ошибке / предупреждение:
me@my-pc:~/Documents/calculator/features$ cucumber
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/ast/feature_element.rb:52: warning: circular argument reference - name
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb:3:in `<top (required)>'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/runtime.rb:21:in `initialize'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/cli/main.rb:40:in `new'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/cli/main.rb:40:in `execute!'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/cli/main.rb:20:in `execute'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/bin/cucumber:14:in `<top (required)>'
/usr/local/bin/cucumber:23:in `load'
/usr/local/bin/cucumber:23:in `<main>'
You don't have a 'features' directory. Please create one to get started.
See http://cukes.info/ for more information.
Но если я вручную добавлю путь к функции, он будет работать (хотя предупреждение не исчезнет)
me@my-pc:~/Documents/calculator/features$ cucumber ~/Documents/calculator/features/adding.features
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/ast/feature_element.rb:52: warning: circular argument reference - name
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb:3:in `<top (required)>'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/runtime.rb:21:in `initialize'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/cli/main.rb:40:in `new'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/cli/main.rb:40:in `execute!'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/lib/cucumber/cli/main.rb:20:in `execute'
/var/lib/gems/2.5.0/gems/cucumber-1.1.3/bin/cucumber:14:in `<top (required)>'
/usr/local/bin/cucumber:23:in `load'
/usr/local/bin/cucumber:23:in `<main>'
Feature: Adding
Screnario: Add two numbers
Given the input "2+2"
When the calculator is run
Then the output should be "4"
0 scenarios
0 steps
0m0.000s
Кто-нибудь знает, что происходит?