diff --git a/src/stats/printer.go b/src/stats/printer.go index a29e292b..e94c287e 100644 --- a/src/stats/printer.go +++ b/src/stats/printer.go @@ -43,6 +43,7 @@ func Print(branch string, tcrEvents events.TcrEvents) { printStatMinMaxAvg("Time between commits", tcrEvents.TimeBetweenCommits()) printStatMinMaxAvg("Changes per commit (src)", tcrEvents.SrcLineChangesPerCommit()) printStatMinMaxAvg("Changes per commit (test)", tcrEvents.TestLineChangesPerCommit()) + printStatMinMaxAvg("Changes per green commit", tcrEvents.AllLineChangesPerGreenCommit()) printStatEvolution("Passing tests count", tcrEvents.PassingTestsEvolution()) printStatEvolution("Failing tests count", tcrEvents.FailingTestsEvolution()) printStatEvolution("Skipped tests count", tcrEvents.SkippedTestsEvolution()) diff --git a/src/stats/printer_test.go b/src/stats/printer_test.go index 479e8f2e..6cc9b8e6 100644 --- a/src/stats/printer_test.go +++ b/src/stats/printer_test.go @@ -201,6 +201,7 @@ func Test_print_all_stats(t *testing.T) { "- Time between commits: 26m37s (min) / 38m59s (avg) / 51m21s (max)", "- Changes per commit (src): 1 (min) / 5 (avg) / 10 (max)", "- Changes per commit (test): 0 (min) / 1.3 (avg) / 3 (max)", + "- Changes per green commit: 13 (min) / 13 (avg) / 13 (max)", "- Passing tests count: 2 --> 8", "- Failing tests count: 1 --> 2", "- Skipped tests count: 5 --> 1",