We are working on an application that has a lot of dependencies/gems that are not tested.
What would be the best way improve the testing suite for the dependent gems, since we can’t get any metrics, such as code coverage (on the external gem), when the tests reside in the main application.
The problem is that part of the application has been packaged as a gem, without any tests, but this gem is still dependent on the main application (weird, I know). Therefore testing the gem itself is not really an option, and it seems like it would be best if the whole test suite stays inside the main application.
Is there a way to include code coverage for gems, when tests are performed from a Rails app, or we should really be testing the gem inside itself?
I hope the question is understandable.