unable to run all cukes?

7 views
Skip to first unread message

rogerdpack

unread,
Apr 26, 2011, 6:24:15 PM4/26/11
to Redcar
Hello.

I think this used to work, but now doesn't?

jruby -S rake cucumber
(in C:/dev/ruby/redcar)
C:/dev/ruby/redcar/Rakefile:196 warning: already initialized constant
Spec
jruby bin/cucumber -cf progress -e ".*fixtures.*" plugins/*/features
&& echo 'done'
Redcar 0.12.0dev ( java )
No such file or directory - plugins/*/features

full backtrace: https://gist.github.com/943329

Anybody know what I might be missing here?

Thanks!

Tim Felgentreff

unread,
Apr 26, 2011, 6:38:58 PM4/26/11
to redcar...@googlegroups.com
I'm not sure what's wrong here (providing the tree isn't messed up
somehow); that line works fine on the CI. One difference I can spot is
that the CI is using cucumber 0.9.4 and jruby 1.6.0 instead of 0.9.2 and
1.6.1

-Tim

rogerdpack

unread,
Apr 26, 2011, 6:53:51 PM4/26/11
to Redcar
> I'm not sure what's wrong here (providing the tree isn't messed up
> somehow); that line works fine on the CI. One difference I can spot is
> that the CI is using cucumber 0.9.4 and jruby 1.6.0 instead of 0.9.2 and
> 1.6.1

Do you get the same error at all? I get it on both linux and
windows...
-r

Tim Felgentreff

unread,
Apr 26, 2011, 7:07:55 PM4/26/11
to redcar...@googlegroups.com
Works here. Can't test on windows, though.
- Tim


--
You received this message because you are subscribed to the Google Groups "Redcar" group.
To post to this group, send email to redcar...@googlegroups.com.
To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en.

rogerdpack

unread,
Apr 26, 2011, 7:11:42 PM4/26/11
to Redcar
> Do you get the same error at all?  I get it on both linux and
> windows...


Oops I just get it on windows.

I believe this may be the cause (windows globs don't expand for
jruby):

http://jira.codehaus.org/browse/JRUBY-4527

Daniel Lucraft

unread,
Apr 27, 2011, 6:22:04 AM4/27/11
to Redcar
Yes, file globbing works differently under windows.

Roger, can you experiment with expanding that glob in Ruby please?
Something like Dir["plugins/*/features"].join(" ") inside the rake
task should do it.

thanks
Dan

On Apr 26, 6:07 pm, "Tim Felgentreff" <timfelgentr...@gmail.com>
wrote:

rogerdpack

unread,
Apr 27, 2011, 12:50:06 PM4/27/11
to Redcar
> Yes, file globbing works differently under windows.

Yeah, MRI works around it but jruby not so much yet.

> Roger, can you experiment with expanding that glob in Ruby please?
> Something like Dir["plugins/*/features"].join(" ") inside the rake
> task should do it.

Good idea, worked a champ.

https://github.com/rdp/redcar/commit/ed0d77082c73517dbb50ff0ccf4f382bbbafdd4e

-r
Reply all
Reply to author
Forward
0 new messages