tree: 79babad6f18348c145a09cf7bc1635ce3b205cf4 [path history] [tgz]
  1. README.md
  2. snapshot_exception_types_i.cc
  3. snapshot_service_handle_ex.cc
  4. snapshot_typedefs.cc
  5. t_ocaml_generator_tests.cc
compiler/cpp/tests/ocaml/README.md

Testing approach

  1. Programmatically construct parsed instances of Thrift IDLs using internal types
  2. Generate the OCaml output using the OCaml generator
  3. Capture the generated output in ostringstream
  4. Query and compare the outputs in the strings to stored snapshots in the snapshot_*.cc files

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