File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,20 @@ let dispatch_test_case label test_case =
3434
3535let rec dispatch_labeled_test label test =
3636 match test with
37- | TestLabel (nested_label , nested_test ) -> dispatch_labeled_test nested_label nested_test
37+ | TestLabel (nested_label , nested_test ) -> begin
38+ cw_print_describe label;
39+ let start = Unix. gettimeofday () in
40+ dispatch_labeled_test nested_label nested_test;
41+ cw_print_completed (Unix. gettimeofday () -. start)
42+ end
3843 | TestCase _ -> dispatch_test_case label test
3944 | TestList tests -> begin
4045 cw_print_describe label;
4146 let start = Unix. gettimeofday () in
4247 run_tests tests;
4348 cw_print_completed (Unix. gettimeofday () -. start)
4449 end
45-
50+
4651and run_test = function
4752 | TestList tests -> " " > ::: tests |> run_test
4853 | TestCase func -> " " > :: func |> run_test
You can’t perform that action at this time.
0 commit comments