add summary message for case that minitest is used from rake task #564
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.
Right now,
SummaryReporter #summary
returns a message of"You have skipped tests. Run with --verbose for details."
when you have skipped tests and you do not have option--verbose
.However, if you use rake and access
minitest
through the rake task, you cannot add option--verbose
to rake command. Instead, you need addTESTOPTS="-v"
as an option to run in verbose mode. (http://docs.seattlerb.org/rake/Rake/TestTask.html)Specifically, when I used minitest by
rake test
forrails/activesupport
(as you can see below), I got the message"You have skipped tests. Run with --verbose for details."
but it did not work when I added--verbose
to the rake command. (The same thing was reported here rails/rails#13641) I thought the message might be a bit confusing when you userake
.I know it is definitely not a problem of
minitest
, but I guess it would be more helpful if you add an explanation ofrun with TESTOPTS='-v' if you are using rake
just in case that user is usingminitest
throughrake
(which is maybe kind of common) :)