unable to run all cukes?

瀏覽次數:7 次
跳到第一則未讀訊息

rogerdpack

未讀,
2011年4月26日 下午6:24:152011/4/26
收件者: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

未讀,
2011年4月26日 下午6:38:582011/4/26
收件者: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

未讀,
2011年4月26日 下午6:53:512011/4/26
收件者: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

未讀,
2011年4月26日 晚上7:07:552011/4/26
收件者: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

未讀,
2011年4月26日 晚上7:11:422011/4/26
收件者: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

未讀,
2011年4月27日 清晨6:22:042011/4/27
收件者: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

未讀,
2011年4月27日 中午12:50:062011/4/27
收件者: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
回覆所有人
回覆作者
轉寄
0 則新訊息