New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark methods called by MiniTest.setup as alive #468
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Yes I think this is good. We use ActiveSupport::TestCase
which is a subclass of Minitest::Test
.
Interesting, is that part of the public API? I don't see it in the docs. |
|
||
sig { override.params(indexer: Indexer, send: Send).void } | ||
def on_send(indexer, send) | ||
return unless send.recv.nil? && send.name == "setup" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also consider teardown
?
799cfc5
to
1f4d3db
Compare
Indeed, it's a ActiveSupport::TestCase and not a Minitest one 🤦 I moved the rule to the right file and also handled |
Accidentally hit this branch. Please make sure to rebase this branch to the newest version before merging |
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
1f4d3db
to
a04f375
Compare
cc. @kmcphillips