Pure OCaml Yaml 1.2 reader and writer using Bytesrw

fail tests with non-zero if any failures

+12 -14
-10
README.md
··· 115 115 opam exec -- dune runtest 116 116 ``` 117 117 118 - ### CI Integration 119 - 120 - The CI pipeline automatically: 121 - - Runs all unit tests 122 - - Clones the YAML test suite 123 - - Executes the full test suite 124 - - Generates HTML reports 125 - 126 - All tests must pass before merging changes. 127 - 128 118 ## API Documentation 129 119 130 120 Build the documentation with:
+6 -2
tests/run_all_tests.ml
··· 484 484 ) results 485 485 end; 486 486 487 - match !html_output with 487 + (match !html_output with 488 488 | Some file -> 489 489 generate_html results file; 490 490 Printf.printf "\nHTML report generated: %s\n" file 491 - | None -> () 491 + | None -> ()); 492 + 493 + (* Exit with non-zero code if any tests failed *) 494 + if fail_count > 0 || json_fail_count > 0 then 495 + exit 1
+6 -2
tests/run_all_tests_eio.ml
··· 527 527 let total_time = Unix.gettimeofday () in 528 528 Printf.printf "\nTotal time: %.3fs\n%!" (total_time -. start_time); 529 529 530 - match !html_output with 530 + (match !html_output with 531 531 | Some file -> 532 532 generate_html ~fs results file; 533 533 Printf.printf "HTML report generated: %s\n" file 534 - | None -> () 534 + | None -> ()); 535 + 536 + (* Exit with non-zero code if any tests failed *) 537 + if fail_count > 0 || json_fail_count > 0 then 538 + exit 1