-
Notifications
You must be signed in to change notification settings - Fork 448
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
Register tests directory for rails stats #2129
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.
@javierav thanks for writing up a PR here, but I'm confused: are you saying that previously rails stats
would include tests for components? I don't remember that ever being the case.
No, sorry for the confusion. What I meant was that the previous PR adds the "app/components" folder to rails stats but it forgot to add the "test/components" folder if it exists, which is what this PR does. |
@javierav got it. I'm hesitant to add |
@joelhawksley sure! For example already exists in Rails 6.0 or RSpec This is the output for a Rails 7.2 empty app:
|
@javierav no kidding! Well, then let's figure out how to land this one ❤️ Have you tested it with rspec? It looks like we're hardcoding |
@joelhawksley Yes, initially the In this case, we just need to check if the project is using Rails default tests (minitest) to add the Unfortunately, Rails only adds a series of initial directories to the stats, and |
What are you trying to accomplish?
After the introduction of PR #2081, the tests directory was missing in rails stats.