Skip to content

Commit

Permalink
Test --timing
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Oct 20, 2023
1 parent 76748e9 commit 8d1daa8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/tests/brakeman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,20 @@ def test_quiet_inconfig_with_command_line
end
end

def test_timing_output
options = {
:app_path => "#{TEST_PATH}/apps/rails4",
:show_timing => true,
:quiet => false,
:run_checks => []
}

assert_output nil, /Duration/ do
Brakeman.run options
end

end

def output_format_tester options, expected_options
output_formats = Brakeman.get_output_formats(options)

Expand Down

0 comments on commit 8d1daa8

Please sign in to comment.