Want to add Jython or Erlang support to Cucumber-JVM?

56 views
Skip to first unread message

aslak hellesoy

unread,
Aug 21, 2011, 6:44:21 PM8/21/11
to Cucumber Users
Hi there,

I added JRuby support to Cucumber-JVM today:


It's fairly straightforward to add support for another programming language that provides Java APIs for interacting with the underlying native system.

For example, adding Jython support similar to the existing JRuby implementation (or Rhino, Clojure or Groovy) should be relatively easy. Here are some relevant docs:


Likewise, adding Erlang support (through Jinterface) should be doable as well. I have yet to find good docs about Jinterface, but maybe someone familiar with it could help?

So if you want a small hacking challenge framed as a small, well-defined API to implement, go ahead and hack - and send us a pull request when you think you have something that (kind of) works. As always I'm here to answer any questions about the Cucumber-JVM API, design internals etc.

Aslak

Aslak Hellesøy

unread,
Aug 21, 2011, 6:47:53 PM8/21/11
to Cukes


On Aug 21, 11:44 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> Hi there,
>
> I added JRuby support to Cucumber-JVM today:
>
> https://github.com/cucumber/cucumber-jvm/issues/3https://github.com/cucumber/cucumber-jvm/commit/44cf9fc2e29d35ff4e3e6...
>
> It's fairly straightforward to add support for another programming language
> that provides Java APIs for interacting with the underlying native system.
>
> For example, adding Jython support similar to the existing JRuby
> implementation (or Rhino, Clojure or Groovy) should be relatively easy. Here
> are some relevant docs:
>
> http://wiki.python.org/jython/UserGuide#embedding-jythonhttp://wiki.python.org/jython/UserGuide#accessing-java-from-jythonhttps://rspec.lighthouseapp.com/projects/16211/tickets/527-python-sup...
> about stepdef API design)
>
> Likewise, adding Erlang support (through Jinterface) should be doable as
> well. I have yet to find good docs about Jinterface, but maybe someone
> familiar with it could help?
>
> So if you want a small hacking challenge framed as a small, well-defined API
> to implement, go ahead and hack - and send us a pull request when you think
> you have something that (kind of) works. As always I'm here to answer any
> questions about the Cucumber-JVM API, design internals etc.
>

Oh, and rumours say @jteigen is working on reviving the Scala backend.
(I salvaged some Scala pieces before setting fire to cuke4duke, but
the code needs to be updated to work with the new API).

Aslak

> Aslak

aslak hellesoy

unread,
Aug 21, 2011, 6:58:51 PM8/21/11
to Cucumber Users
On Sun, Aug 21, 2011 at 11:44 PM, aslak hellesoy <aslak.h...@gmail.com> wrote:
Hi there,

I added JRuby support to Cucumber-JVM today:


It's fairly straightforward to add support for another programming language that provides Java APIs for interacting with the underlying native system.

For example, adding Jython support similar to the existing JRuby implementation (or Rhino, Clojure or Groovy) should be relatively easy. Here are some relevant docs:



Matt Wynne

unread,
Aug 21, 2011, 7:01:02 PM8/21/11
to cu...@googlegroups.com

On 21 Aug 2011, at 23:47, Aslak Hellesøy wrote:

> I salvaged some Scala pieces before setting fire to cuke4duke

What, more looting going on in North London, Aslak? I thought that had all calmed down ;)

cheers,
Matt

--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne

David Kowis

unread,
Aug 21, 2011, 7:19:00 PM8/21/11
to cu...@googlegroups.com
On Sun, Aug 21, 2011 at 5:44 PM, aslak hellesoy
<aslak.h...@gmail.com> wrote:
> Hi there,
> I added JRuby support to Cucumber-JVM today:
> https://github.com/cucumber/cucumber-jvm/issues/3
> https://github.com/cucumber/cucumber-jvm/commit/44cf9fc2e29d35ff4e3e6f6aa19c03659aaae4e5

You're awesome :) Thanks for doing this. It's really made my day :)

David

Reply all
Reply to author
Forward
0 new messages