Skip to content

Commit

Permalink
Turn on warnings via VERBOSE env (#2019)
Browse files Browse the repository at this point in the history
* Allow warnings in test if ENV["VERBOSE"]

(no good way to set $VERBOSE from the outside)

* Add VERBOSE option to development doc

---------

Co-authored-by: Ryan Davis <[email protected]>
  • Loading branch information
tancnle and zenspider authored Jan 7, 2024
1 parent 7b8df6c commit 61bdda1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/LexerDevelopment.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ The spec and the demo can be run using the `rake` command. You can run this by
typing `bundle exec rake` at the command line. If everything works, you should
see a series of dots. If you have an error, this will appear here, too.

You can also run `bundle exec rake VERBOSE=1` to see all warnings.

To see your visual sample, launch Rouge's visual test app by running
`bundle exec rackup`. You can choose your sample from the complete list by going
to <http://localhost:9292>.
Expand Down
2 changes: 1 addition & 1 deletion tasks/check/specs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace :check do
Rake::TestTask.new(:specs) do |t|
t.libs << "lib"
t.ruby_opts << "-r./spec/spec_helper"
t.warning = !!$VERBOSE
t.warning = $VERBOSE || ENV["VERBOSE"]
t.pattern = FileList['spec/**/*_spec.rb']
end
end

0 comments on commit 61bdda1

Please sign in to comment.