| .. | ||
| README.md | ||
| snapshot_exception_types_i.cc | ||
| snapshot_service_handle_ex.cc | ||
| snapshot_typedefs.cc | ||
| t_ocaml_generator_tests.cc | ||
Testing approach
- Programmatically construct parsed instances of Thrift IDLs using internal types
- Generate the OCaml output using the OCaml generator
- Capture the generated output in
ostringstream - Query and compare the outputs in the strings to stored snapshots in the
snapshot_*.ccfiles
Run tests in ../tests directory:
# Only on changing build definition:
cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/bison -DCMAKE_CXX_STANDARD=11 .
# On each iteration:
rm -rf gen-ocaml; cmake --build . && ctest --output-on-failure