Skip to content

Ruby Step Defs support #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dkowis opened this issue Aug 18, 2011 · 7 comments
Closed

Ruby Step Defs support #3

dkowis opened this issue Aug 18, 2011 · 7 comments

Comments

@dkowis
Copy link
Member

dkowis commented Aug 18, 2011

I'm sad to see that there's no out of the box for Ruby Step Defs.

The integration between JRuby and Java is very high and being able to use it as the language of choice for the step definitions would be wonderful.

Not talking about supporting Gems and installing Gems and whatnot, that might be able to be handled separately or via a different mechanism, just supporting running the step definitions the same way they run in regular Ruby Cucumber.

Thanks,
David

@aslakhellesoy
Copy link
Contributor

Why don't you contribute JRuby support?

@dkowis
Copy link
Member Author

dkowis commented Aug 21, 2011

I might do this :) Turns out someone i work with is on the core team (i dont remember his name off the top of my head) If i can find time between all my other time wasting activites ;)

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

aslakhellesoy [email protected] wrote:

Why don't you contribute JRuby support?

Reply to this email directly or view it on GitHub:
#3 (comment)

!DSPAM:2,4e50ce1114728305117159!

@aslakhellesoy
Copy link
Contributor

Now, if you can figure out how to require 'test/unit' or require 'minitest' in the stepdefs that would be great. They should be in the stdlib embedded inside the jruby jar, but maybe some extra config is needed in order for that to be picked up. Being able to pick up gems from the file system (perhaps by setting $GEM_PATH and/or $GEM_HOME would be even more awesome.

Would you want to investigate that?

Cheers,
Aslak

@dkowis
Copy link
Member Author

dkowis commented Aug 21, 2011

That is something I might be able to do :)

It'd be a wonderful benefit to be able to somehow package gems and use them. I will percolate on that Idea, and see if I can't sneak in some time at work to get it done.

Thanks for getting this done so quickly. You're awesome.

@nicokruger
Copy link

Hey guys,

Just to let you know with relation to the require 'test/unit' (or indeed, any require that is in the sort of "standard library" for jruby), if you just change your jruby dependency from jruby to jruby-complete in the POM of your project, then all the standard ruby libraries seem to be available.

So basically, I did this (in my projects pom.xml):

   <dependency>
        <groupId>info.cukes</groupId>
        <artifactId>cucumber-jruby</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.jruby</groupId>
                <artifactId>jruby</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

(Note the exclusion of the original jruby dependency from cucumber-jruby)

Then I simply added:

    <dependency>
        <groupId>org.jruby</groupId>
        <artifactId>jruby-complete</artifactId>
        <version>1.6.1</version>
        <scope>test</scope>
    </dependency>

And everything seems peachy now.

Hope this helps

@aslakhellesoy
Copy link
Contributor

@nicokruger: facepalm

Will fix this soon :-)

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
mpkorstanje pushed a commit that referenced this issue Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants