Skip to content

Commit

Permalink
yank spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaumik-Ashraf committed Nov 15, 2024
1 parent 3d8ff0f commit 96fa788
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions lib/inferno/apps/cli/execute/console_outputter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class Execute
class ConsoleOutputter
CHECKMARK = "\u2713".freeze
BAR = ('=' * 80).freeze
SPINNER = TTY::Spinner.new('Running tests [:spinner]', format: :bouncing_ball, clear: true, output: $stdout)

include Serialize

Expand All @@ -24,9 +23,8 @@ def print_start_message(options)
end

def print_around_run(_options)
SPINNER.auto_spin
puts "Running tests. This may take a while..."
yield
SPINNER.stop('done!')
end

def print_results(options, results)
Expand Down
6 changes: 0 additions & 6 deletions lib/inferno/apps/cli/execute/plain_outputter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ module CLI
class Execute
# @private
class PlainOutputter < ConsoleOutputter
# override to disable spinner
def print_around_run(_options)
puts 'Running tests. This may take a while...'
yield
end

def print_error(_options, exception)
puts "Error: #{exception.full_message(highlight: false)}"
end
Expand Down

0 comments on commit 96fa788

Please sign in to comment.