cucumber / cucumber-cpp

Support for writing Cucumber step definitions in C++
MIT License
308 stars 131 forks source link

Why it found the feature file but doesn't found the step definitions? #219

Closed Ingvanegas closed 10 months ago

Ingvanegas commented 5 years ago

Summary

I use cuucumber-cpp on my project and get me this result image

muggenhor commented 5 years ago

Do you have a step_definitions/cucumber.wire file near your feature files?

konserw commented 5 years ago

From my expirience it's wrong ruby/cucmber versions combination

ChrisCAdsk commented 5 years ago

@konserw Do you know what is the correct cucumber-cpp / ruby versions combination? I have installed cucumber gem 3.1.2 and I'm running a cucumber-cpp 0.5 executable containing step definitions along with the gem and I'm getting all steps undefined. This doesn't happen with ruby 2.3.3 x64 + devkit, it doesn't work without the devkit installed either.

konserw commented 5 years ago

cucumber-ruby 2.4.0, see #179 and #194

konserw commented 5 years ago

also cucumber-cpp own README:

Please mind that Cucumber-Cpp is not compatible with Cucumber-Ruby 3.x due to a bug in its wire protocol implementation.

ChrisCAdsk commented 5 years ago

I think I may have a different issue because it's not working for me with cucumber-ruby 2.4.0. There is no logging from the wire protocol so I can't be sure what the issue is. The app that contains the tests has the wire port listening, so the issue is likely on the cucumber-ruby side. I'm going to try with cucumber 2.0.0 using ruby 2.3 x64 and the associated devkit for 2.3. I'm using cucumber-cpp 0.5 on a Windows 10 machine.

jermus67 commented 3 years ago

Hello,

@Ingvanegas and @ChrisCAdsk , any luck getting cucumber-cpp to work? Not that I'm in the best position to help when things still don't work... I'm mainly developing on GNU/Linux, so the latest support is also mostly focused on getting cucumber-cpp working in that environment again. You are of course more than welcome to step in and help in maintaining cucumber-cpp for windows... :)

Kind regards, Jeroen Kouwer

ursfassler commented 10 months ago

Because the step implementations are only suggested in Ruby and not C++, this seems to be a problem with the configuration of cucumber itself. Most likely a wrong configuration with the cucumber.wire file as mentioned in https://github.com/cucumber/cucumber-cpp/issues/219#issuecomment-463609265.

ursfassler commented 10 months ago

Please reopen this issue if it is not resolved for you. In the case it works for you, I would appreciate if you can help others by doing one or more: