Running Package Tests Independently of Other Code: Ensuring No Hidden Dependencies in Packwerk Packages

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Message originally sent by slack user U717FXJ8HWK

Has anyone explored the possibility of running package tests independently of the other code? By that I mean running RSpec while loading the package and its dependencies only, to make sure there are no hidden code dependencies that aren’t caught by Packwerk?

To be clear, I’m speaking about regular Packwerk packages that aren’t gems or engines.

We have talked about it, but found the main fully-connected component of packages too large for this to make a practical difference for us at this time. It is definitely something which I believe is interesting to work towards