forked from netzpirat/guard-cucumber
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Several tests related to the NotificationFormatter fail with Cucumber 4.0.0. It appears that Cucumber 4.x removed classes and methods that were relied on by guard-cucumber:
- Cucumber::Core::Ast
- Cucumber::Runtime#steps
The spec errors are reproduced below.
$ bundle exec rspec
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 58616
.............................................FFF..............
Failures:
1) Guard::Cucumber::NotificationFormatter#step_name when failure is in a background step notifies with a valid feature name
Failure/Error: instance_double(Cucumber::Core::Ast::Feature, name: "feature1")
NameError:
uninitialized constant Cucumber::Core::Ast
# ./spec/guard/cucumber/notification_formatter_spec.rb:30:in `block (3 levels) in <top (required)>'
# ./spec/guard/cucumber/notification_formatter_spec.rb:34:in `block (3 levels) in <top (required)>'
2) Guard::Cucumber::NotificationFormatter#step_name with a buggy Background implementation correctly gets the feature name
Failure/Error: instance_double(Cucumber::Core::Ast::Feature, name: "feature1")
NameError:
uninitialized constant Cucumber::Core::Ast
# ./spec/guard/cucumber/notification_formatter_spec.rb:30:in `block (3 levels) in <top (required)>'
# ./spec/guard/cucumber/notification_formatter_spec.rb:34:in `block (3 levels) in <top (required)>'
3) Guard::Cucumber::NotificationFormatter after all features formats the notification
Failure/Error: allow(mother).to receive(:steps).with(:passed).and_return([step])
the Cucumber::Runtime class does not implement the instance method: steps
# ./spec/guard/cucumber/notification_formatter_spec.rb:11:in `block (3 levels) in <top (required)>'
Finished in 0.09354 seconds (files took 2.13 seconds to load)
62 examples, 3 failures
Failed examples:
rspec ./spec/guard/cucumber/notification_formatter_spec.rb:47 # Guard::Cucumber::NotificationFormatter#step_name when failure is in a background step notifies with a valid feature name
rspec ./spec/guard/cucumber/notification_formatter_spec.rb:62 # Guard::Cucumber::NotificationFormatter#step_name with a buggy Background implementation correctly gets the feature name
rspec ./spec/guard/cucumber/notification_formatter_spec.rb:18 # Guard::Cucumber::NotificationFormatter after all features formats the notification
Randomized with seed 58616
peagha and ozzyaaron
Metadata
Metadata
Assignees
Labels
No labels