Pure OCaml Yaml 1.2 reader and writer using Bytesrw

fail tests with non-zero if any failures

-10
README.md
···
opam exec -- dune runtest
```
-
### CI Integration
-
-
The CI pipeline automatically:
-
- Runs all unit tests
-
- Clones the YAML test suite
-
- Executes the full test suite
-
- Generates HTML reports
-
-
All tests must pass before merging changes.
-
## API Documentation
Build the documentation with:
+6 -2
tests/run_all_tests.ml
···
) results
end;
-
match !html_output with
+
(match !html_output with
| Some file ->
generate_html results file;
Printf.printf "\nHTML report generated: %s\n" file
-
| None -> ()
+
| None -> ());
+
+
(* Exit with non-zero code if any tests failed *)
+
if fail_count > 0 || json_fail_count > 0 then
+
exit 1
+6 -2
tests/run_all_tests_eio.ml
···
let total_time = Unix.gettimeofday () in
Printf.printf "\nTotal time: %.3fs\n%!" (total_time -. start_time);
-
match !html_output with
+
(match !html_output with
| Some file ->
generate_html ~fs results file;
Printf.printf "HTML report generated: %s\n" file
-
| None -> ()
+
| None -> ());
+
+
(* Exit with non-zero code if any tests failed *)
+
if fail_count > 0 || json_fail_count > 0 then
+
exit 1