IronRuby and Cucumber

Hi,

While I was trying to integrate Iron Ruby and Cucumber the installation
succeeded without any problems.

But when I wanted to execute some examples for CS folder I found the
folder to be missing.

Can anyone please let me know where the folder is available.

I am using cucumber-0.6.4 and there is no folder for CS examples.

Hi Kevin,

I found the answer to your question here:
http://blog.webintellix.com/2009/10/how-to-use-cucumber-with-net-and-c.html.
This is what the guy there says:
"As of version 0.4.3 of Cucumber, the examples\cs folder is no longer
there
in the code downloaded with the gem. If you like to run the above code
in
the post, you can download the zip file for the code at tag 0.4.2 from
herehttp://github.com/aslakhellesoy/cucumber/tree/v0.4.2/examples/.

From the top, you can download the zip by clicking on the “Download Source”.
Then you can copy the “cs” folder to your gem installation of your
current
cucumber version.".

Shay.

Shay F. | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Unleashed and ASP.NET 4 Programmer’s Reference | Co-Founder of CodeValue
Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay

Hi Shay,

Thankyou for the answer. Yes the problem got solved. I got the examples
for the cs folder from the below site and compiled. The instruction
states that we need to do compile.bat. This worked fine and the dll got
generated for me. After this I am stuck and cucumber feature files are
not getting generated. Any help from your side is highly appreciated. I
am getting the below error.

C:\ironruby\lib\ironruby\gems\1.8\gems\cucumber-0.6.4\examples\cs>compile

C:\ironruby\lib\ironruby\gems\1.8\gems\cucumber-0.6.4\examples\cs>csc
/target:li
brary /out:Calculator.dll src\demo\Calculator.cs
Microsoft ® Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft ® .NET Framework version 3.5
Copyright © Microsoft Corporation. All rights reserved.

C:\ironruby\lib\ironruby\gems\1.8\gems\cucumber-0.6.4\examples\cs>icucumber
feat
ures
*** WARNING: You must “igem install iron-term-ansicolor” to get coloured
ouput i
n on IronRuby
no such file to load – spec/expectations (LoadError)
C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in
require' C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:inrequire’
C:/IronRuby/lib/ironruby/gems/1.8/gems/polyglot-0.3.1/lib/polyglot.rb:63:in
req uire' C:/ironruby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/examples/cs/features/step_ definitons/calculator_steps.rb:1 C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:inrequire’
C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:30:in
require' C:/IronRuby/lib/ironruby/gems/1.8/gems/polyglot-0.3.1/lib/polyglot.rb:63:inreq
uire’
C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/…/lib/cucumber/rb_sup
port/rb_language.rb:124:in load_code_file' C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/step_m other.rb:85:inload_code_file’
C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/…/lib/cucumber/step_m
other.rb:77:in load_code_files' C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/step_m other.rb:76:ineach’
C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/…/lib/cucumber/step_m
other.rb:76:in load_code_files' C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/../lib/cucumber/cli/ma in.rb:51:inexecute!’
C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/…/lib/cucumber/cli/ma
in.rb:20:in execute' C:/IronRuby/lib/ironruby/gems/1.8/gems/cucumber-0.6.4/bin/cucumber:8 C:/Ruby19/bin/cucumber:19:inload’
C:/Ruby19/bin/cucumber:19

Shay F. wrote:

Hi Kevin,

I found the answer to your question here:
http://blog.webintellix.com/2009/10/how-to-use-cucumber-with-net-and-c.html.
This is what the guy there says:
"As of version 0.4.3 of Cucumber, the examples\cs folder is no longer
there
in the code downloaded with the gem. If you like to run the above code
in
the post, you can download the zip file for the code at tag 0.4.2 from
herehttp://github.com/aslakhellesoy/cucumber/tree/v0.4.2/examples/.

From the top, you can download the zip by clicking on the “Download Source”.
Then you can copy the “cs” folder to your gem installation of your
current
cucumber version.".

Shay.

Shay F. | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Unleashed and ASP.NET 4 Programmer’s Reference | Co-Founder of CodeValue
Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay

Hi Shay,

I have been closely following the details mentioned in your website for
the past two weeks. The example solution file for running IronRuby using
.NET and VS2008 was very helpful for me. I succeeded in running IronRuby
scripts using the sample provided by you. Thankyou for the same.

kavin

Hi Kevin,

I found the answer to your question here:
http://blog.webintellix.com/2009/10/how-to-use-cucumber-with-net-and-c.html.
This is what the guy there says:
"As of version 0.4.3 of Cucumber, the examples\cs folder is no longer
there
in the code downloaded with the gem. If you like to run the above code
in
the post, you can download the zip file for the code at tag 0.4.2 from
herehttp://github.com/aslakhellesoy/cucumber/tree/v0.4.2/examples/.

From the top, you can download the zip by clicking on the “Download Source”.
Then you can copy the “cs” folder to your gem installation of your
current
cucumber version.".

Shay.

Shay F. | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Unleashed and ASP.NET 4 Programmer’s Reference | Co-Founder of CodeValue
Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs