Skip to content
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

TAP support #27

Open
gildor478 opened this issue Oct 24, 2020 · 0 comments
Open

TAP support #27

gildor478 opened this issue Oct 24, 2020 · 0 comments

Comments

@gildor478
Copy link
Owner

This feature request has been migrated from artifact #1098 on forge.ocamlcore.org. It was assigned to user102.

user102 posted on 2012-02-22 21:43:38:

It should be great to support TAP:
http://testanything.org

user142 replied on 2012-06-05 14:28:49:

quick hack:

let run test =
let test_number = ref 0 in
let handle_event = function
| EStart _ | EEnd _ -> incr test_number
| EResult (RSuccess p) ->
pf "ok %d - %s\n" !test_number (string_of_path p)
| EResult (RFailure (p,m)) ->
pf "not ok %d - %s # %s\n" !test_number (string_of_path p) m
| EResult (RError (p,m)) ->
pf "not ok %d - %s # ERROR:%s\n" !test_number (string_of_path p) m
| EResult (RSkip (p,m)) ->
pf "not ok %d - %s # skip %s\n" !test_number (string_of_path p) m
| EResult (RTodo (p,m)) ->
pf "not ok %d - %s # todo %s\n" !test_number (string_of_path p) m
in
let total_tests = test_case_count test in
pf "1..%d\n" total_tests;
perform_test handle_event test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant