gem install --test and Rspec

sthompson's Avatar

sthompson

19 Jul, 2010 09:30 PM

When I create a gem, in the gem spec I can provide a list of test files. What unit test framework should those tests be written to?

Is there a way to run rspec tests when a gem is installed (and fail gracefully if rspec is not in the environment into which the gem is being installed).

  1. Support Staff 2 Posted by Eric Hodel on 20 Jul, 2010 08:24 PM

    Eric Hodel's Avatar

    RubyGems is dropping the --test option in the next major release as there are now too many test frameworks for RubyGems to support.

    We're hoping the community will be able to come up with a better solution.

    test/unit has been the only supported option.

  2. Eric Hodel closed this discussion on 20 Jul, 2010 08:24 PM.

Comments are currently closed for this discussion. You can start a new one.