On 1/11/06, Robin S. [email protected] wrote:
I recently had exactly the same question… So, maybe the Gemspec
Reference should be updated.
The install command has the --test or -t option.
Have a look at gem help install.
So, for example:
gem install examplegem --test
Interesting thing about running the tests this way …
If the gem has no tests, it outputs “There are no unit tests to run”.
If any tests fail, it prompts whether to keep the gem.
If no tests fail, there is no output and no indication that tests were
I don’t really like that last part. I wish there was some output
indicating that the tests were actually run.