Reputation: 17246
The RubyGems Specification Reference says:
A collection of unit test files. They will be loaded as unit tests when the user requests a gem to be unit tested.
However there is no gem test
command, and unlike the files
config which is used in the packaging, I don't see any obvious place this is used. Google also seems not to turn up anything.
Is there any point for specifying test_files
in a gem?
Upvotes: 24
Views: 1938
Reputation: 411
I've been trying to find an answer to this as well, and while I haven't turned up a definitive "don't use test_files" it seems that support has been somewhat deprecated.
From what I can tell, the answer to your question is "it depends". There are some points to specifying test_files, but they might not be what you expect/want:
Some references:
Upvotes: 22