Search code examples
rubynewgem

specifying test framework with newgem


> jruby -S newgem testgem --simple -T test_unit
invalid option: -T

Newgem v1.5.1

Also tried

> jruby -S newgem testgem --simple --test-with=test_unit
invalid option: --test-with=test_unit

Also tried MRI.

Any ideas?

Thanks


Solution

  • I did it manually:

    • mkdir test
    • Add test/test_helper.rb and test/my_class_test.rb
    • Add the following to the Rakefile:
    
        task :default => :test
        desc "Run all Unit tests"
        task :test do
            require 'rake/runtest'
            Rake.run_tests 'test/*.rb'
        end