Fix warnings in running tests #319
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the bugs
Running the tests by
bundle exec shindo tests/requests/sqsand it shows two warnings.First is
The second one is
How to fix
The first warning
I follow the usage mentioned in ruby-test-reporter Upgrading from pre-1.0 Versions
I execute
bundle exec shined tests/again and confirm the warning doesn't show up.The second warning
I add the line
SimpleCov.command_name "Shindo"seeing simplecov giving test-suite-name.I don't follow the way like
'test:units'mentioned in README.md, , referring to#guessinlib/simplecov/command_guesser.rb.This is implemented like
#from_command_line_optionschecks the path of test-suites and judges the test framework and returns nothing when the path doesn't match;#from_defined_constantschecks a name of test frameworks and returns 'Unknown Test Framework' when the name doesn't match.I think it's reasonable to pass 'Shindo' instead of a path.
I also confirm the warning doesn't show up.
Test
I run tests by
bundle exec shindo tests/requests/sqs(I would like to add a feature to sqs).All tests green and the two warnings don't show.