Skip to content

Make run_tests output progressive #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/runner/QCheck_base_runner.ml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ let run_tests
in
Res (cell, r)
in
let res = List.map aux_map l in
let aux_fold (total, fail, error, warns) (Res (cell, r)) =
let warns = warns + List.length (R.get_warnings r) in
let acc = match R.get_state r, QCheck2.Test.get_positive cell with
Expand All @@ -457,7 +456,7 @@ let run_tests
in
acc
in
let total, fail, error, warns = List.fold_left aux_fold (0, 0, 0,0) res in
let total, fail, error, warns = List.fold_left (fun counts input -> aux_fold counts (aux_map input)) (0, 0, 0,0) l in
Printf.fprintf out "%s\n" (String.make 80 '=');
if warns > 0 then Printf.fprintf out "%d warning(s)\n" warns;
if fail = 0 && error = 0 then (
Expand Down
Loading