Closed tclaus closed 1 year ago
Few questions) Are you using a custom formatter you've wrote or one built in? Is your formatter fairly rudimentary or is it more complex. Can you produce an MVCE as a github repo>? Or push a failing test to this repo?
No, no custom formatter, just built in Pretty and Message. An MVCE runs surprisingly - it must be a setting in our (larger) software. So on my side something is misconfigured. (For reference: it is this project: https://github.com/diaspora/diaspora
But I found out that I've enabled the cucumber Reporting by setting the CUCUMBER_PUBLISH_TOKEN environment var. Without this set, this works.
It works and reports with a lower version than 2.320.
Can you create an MVCE on this repo with the variable set? It could be a bug when we are using the cucumber reports functionality.
@mattwynne would you have the possibility to reproduce on your own Mac BigSur?
This is the last line executed in Cucumber (from the stack trace above):
From there it seems to go into some kind of Rails monkey patching for constructors.
I'm not sure how or why one Cucumber's own classes has extended the ActiveRecord::Inheritance::ClassMethods
module. I think understanding this could help fix this bug.
It doesn't look to me like the OS has anything to do with this @aurelien-reeves. A Ruby runtime environment should behave the same on any platform, no?
It doesn't look to me like the OS has anything to do with this @aurelien-reeves. A Ruby runtime environment should behave the same on any platform, no?
That would be a bug in the Ruby runtime environment 😅
Here as @tclaus and @aslakhellesoy have already noticed, it seems to relate on @tclaus project if I understood well.
@tclaus can you modify cucumber-5.3.0/lib/cucumber/configuration.rb
between line 208 and 209
you could add a puts to ensure which formatter class is used here.
puts [format, factory].inspect
I will try this. Stand bye.
@tclaus I had a similar issue as did another user, and we "think" that the auto-inclusion of AS with some of our code may have impacted things.
If you try using cucumber v7+ and cucumber rails 2.4 It could make a difference (Note if you still need AS helpers, you'll need to re-include them).
With adding the puts line suggested by @mathieujobin I get this output:
["pretty", Cucumber::Formatter::Pretty]
Factory: Cucumber::Formatter::Pretty
Formatter_options: {}
Path: #
Same effect on cucumber-rails 2.4.0
Can you confirm that you also upgraded to cucumber v7+
ping @tclaus did you ever get around to creating an MVCE for this. I know you confirmed this is a bug on cucumber-rails 2.4.0
On My Mac (11.3.1, Intel) and "cucumber-rails", "2.3.0"
running cucumber fails with
With gem "cucumber-rails", "2.1.0" cucumber runs fine.
Between 2.1.0 and 2.2 the cucumber-messages switched from 12.4.0 to 13.2.1. Maybe this is a hint.