Forum: IronRuby IronRuby and Cucumber

Posted by kavin_2010 IronRubyuser (kavitha)
on 2010-09-06 11:50
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.
Posted by Shay Friedman (shayfriedman)
on 2010-09-07 14:44
(Received via mailing list)
Hi Kevin,

I found the answer to your question here:
http://blog.webintellix.com/2009/10/how-to-use-cuc....
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
here<http://github.com/aslakhellesoy/cucumber/tree/v0.4....
>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 Friedman | 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
Posted by kavin_2010 IronRubyuser (kavitha)
on 2010-09-07 16:52
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 (R) Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft (R) .NET Framework version 3.5
Copyright (C) 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:in
`require'
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:in
`require'
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:in
`req
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:in `load_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:in `each'
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:in `execute!'
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:in `load'
C:/Ruby19/bin/cucumber:19


Shay Friedman wrote:
> Hi Kevin,

> 
> I found the answer to your question here:
> http://blog.webintellix.com/2009/10/how-to-use-cuc....
> 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
> here<http://github.com/aslakhellesoy/cucumber/tree/v0.4....
>>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 Friedman | 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
Posted by kavin_2010 IronRubyuser (kavitha)
on 2010-09-07 16:59
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-cuc....
>> 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
>> here<http://github.com/aslakhellesoy/cucumber/tree/v0.4....
>>>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 Friedman | 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.