My observations about autotest, unit tests, and standalone Ruby.
Basically, autotest for unit tests with standalong Ruby does not work
with JRuby. But I might be doing something wrong. As they work with MRI
Ruby, I am not sure what.
I googled a bit and didn't see anyone else complaining about JRuby
1.1.4 and autotest.
These tests were with RSpec 1.1.4 and ZenTest 3.10
MRI Ruby
=======
Works
>ruby -S autotest
c:\ruby\bin\ruby -I.;lib;test -rtest/unit -e "%w[test/test_item.rb].each
{ |f| r
equire f }" | unit_diff -u
Loaded suite -e
Started
F
Finished in 0.0790000000000001 seconds.
1) Failure:
test_foo(TestItem) [./test/test_item.rb:11]:
Assertion was false.
<false> is not true.
1 tests, 1 assertions, 1 failures, 0 errors
Bundled JRuby & Standalone JRuby
=========================
Runs but doesn't emit output for tests
>jruby -S autotest
C:\Program Files\NetBeans Dev
200810091401\ruby2\jruby-1.1.4\bin\jruby.bat -I.;l
ib;test -rtest/unit -e "%w[test/test_item.rb].each { |f| require f }" |
unit_diff -u
>jruby -S autotest
C:\jruby\jruby-1.1.4\bin\jruby.bat -I.;lib;test -rtest/unit -e
"%w[test/test_ite
m.rb].each { |f| require f }" | unit_diff -u
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...