In order to get my Gem published, do I absolutely need to write tests?

StackOverflow https://stackoverflow.com/questions/21773744

  •  11-10-2022
  •  | 
  •  

Вопрос

I would like to publish a Gem I wrote so it can be installed by users via gem install my-gem. The RubyGems guide on how to Make Your Own Gem has a section on using Test::Unit and rake to test my code.

Writing tests is going to add significant development time to a Gem that (in this case) is somewhat trivial in nature. I'd like to avoid it if possible.

Is it necessary to write tests in order to publish a Gem or just a suggestion?

Это было полезно?

Решение

It is a (good) suggestion, and is in no way required to publish a gem.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top