require self made gem in jruby fails after update to jruby-1.7.13

回眸只為那壹抹淺笑 提交于 2019-12-02 07:57:41

I found a surprising solution to the problem. I had compiled the *.rb classes with my jruby version 1.7.0's jrubyc. This caused the tests to fail with the load error. I had to compile all ruby classes with the jrubyc version 1.7.13 where I also build the gems.

update:

'rake test' still does not work comming up with errors like Mocha::ExpectationError: unexpected invocation: ...

what works is to use test options specifiying test file and test name (also with reg.exp.) like

rake test TEST=test/test_bla_bla.rb TESTOPTS="--name=/test_should_read/ -v"

I have the feeling the randomization with the seed parameter causes the problem. How can I influence the seed parameter?

update:

It looks like if there are too many tests in the test suite, MiniTest cannot handle this. In some cases I could run about 10 tests in some up to 35, using the TESTOPTS switch. I always fail if I run all tests in my test library with 'rake test'. This looks like a bug to me. Is there anybody who can help?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!