-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add basic coverage to RailsStats::CodeStatistics#to_s #10
Conversation
That's certainly a bunch of files, but guess they are all in the test directory. |
@bleonard Cool, thanks! Do you think this is ready to be merged? I just solved the conflict. 😄 |
@bleonard One more thing, could you enable Travis CI for this project? Or do you prefer checks with GitHub Actions? |
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.
It would be nice to have a section in the README explaining how to run the tests of the gem.
@@ -1 +1,12 @@ | |||
require "rails_stats" |
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.
Removing this lines makes the rake command unable to find the stats
task.
test/test_helper.rb
Outdated
require "minitest/pride" | ||
require "minitest/around/spec" | ||
|
||
require "rails_stats/all" |
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.
Just nit picking here, but it's warning about a missing trailing new line
… tests by default Considering there were no tests, I decided to use minitest and set it up to run by default (`bundle exec rake`) I added a simple test to make sure that `to_s` is working as expected
@arielj Thanks for reviewing this PR! Just addressed your comments 👍 |
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.
Looks good!
Hey @bleonard,
This PR adds minitest to the project and it adds a simple scenario for
RailsStats::CodeStatistics#to_s
I added a Rails 6.0 application in test/dummy to make it easier to test
rails_stats
. I didn't want to add a lot of tests before getting your feedback. Do you think this is a step in the right direction?This is what it should look like in your test environment:
Please let me know.
Thanks!