this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Reporter counts passed tests, not total

authored by

Raimo Radczewski and committed by
Louis Pilfold
800b2d2a ad8006c6

+5 -4
+5 -4
src/gleeunit/internal/reporting.gleam
··· 23 23 1 24 24 } 25 25 State(failed: 0, skipped: 0, ..) -> { 26 - let message = "\n" <> int.to_string(state.passed) <> " tests, no failures" 26 + let message = 27 + "\n" <> int.to_string(state.passed) <> " passed, no failures" 27 28 io.println(green(message)) 28 29 0 29 30 } ··· 31 32 let message = 32 33 "\n" 33 34 <> int.to_string(state.passed) 34 - <> " tests, " 35 + <> " passed, " 35 36 <> int.to_string(state.failed) 36 37 <> " failures" 37 38 io.println(red(message)) ··· 41 42 let message = 42 43 "\n" 43 44 <> int.to_string(state.passed) 44 - <> " tests, 0 failures, " 45 + <> " passed, 0 failures, " 45 46 <> int.to_string(state.skipped) 46 47 <> " skipped" 47 48 io.println(yellow(message)) ··· 51 52 let message = 52 53 "\n" 53 54 <> int.to_string(state.passed) 54 - <> " tests, " 55 + <> " passed, " 55 56 <> int.to_string(state.failed) 56 57 <> " failures, " 57 58 <> int.to_string(state.skipped)