16 Oct 21:19
[Cucumber:9462] Running Cucumber-JVM within a scripting language environment
Folks,
I'm currently exploring packaging options for the following
interpreters, all supported by Cucumber-JVM:
* Groovy
* JRuby
* Clojure
* Jython
* Rhino
Currently there are two ways to kick off Cucumber on these platforms
and they all seem clunky:
a) Using JUnit
Just like with Java you have to create a @Cucumber annotated JUnit
class for each feature file, and then kick it off with a JUnit runner.
b) Using the CLI
This involves running `java -classpath CP cucumber.cli.Main [args]`
where CP is a very long classpath
Option a) makes little sense because the use of JUnit is not natural
in these environments.
Option b) is convoluted because it's hard to set up the command line.
Taking JRuby as an example - the most natural way to use it would be:
gem install cucumber-jvm
cucumber-jvm features
This means we have to package up cucumber-jvm as a ruby gem and push
it to Rubygems. Not a big deal.
But what about the other platforms? Should we package it as a python
module so it can be installed with pip?
What about Groovy?
If you have suggestions or wishes for a particular JVM language and
package manager, please create a ticket over at
https://github.com/cucumber/cucumber-jvm/issues
Aslak
--
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cukes@...
To unsubscribe from this group, send email to cukes+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
RSS Feed