Skip to content

Commit

Permalink
Spec: enable verbose mode with SPEC_VERBOSE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 27, 2016
1 parent 3a81780 commit d09481a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spec.cr
Expand Up @@ -109,6 +109,10 @@ unless ARGV.empty?
exit 1
end

if ENV["SPEC_VERBOSE"]? == "1"
Spec.override_default_formatter(Spec::VerboseFormatter.new)
end

Signal::INT.trap { Spec.abort! }

Spec.run

0 comments on commit d09481a

Please sign in to comment.