[go: nahoru, domu]

Skip to content

Commit

Permalink
[scan] Add Success rate row to results
Browse files Browse the repository at this point in the history
  • Loading branch information
mullerfrederik authored and Frederik Muller committed Oct 21, 2021
1 parent 27a41b8 commit a9e63c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scan/lib/scan/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def handle_results(tests_exit_status)
title: "Test Results",
rows: [
["Number of tests", result[:tests]],
["Number of failures", failures_str]
["Number of failures", failures_str],
["Success rate", (result[:tests] - result[:failures]).fdiv(result[:tests]).round(2).to_s + " %"]
]
}))
puts("")
Expand Down

0 comments on commit a9e63c9

Please sign in to comment.