Skip to content

Instantly share code, notes, and snippets.

@copy
Created October 30, 2017 19:32
Show Gist options
  • Select an option

  • Save copy/320c5129fcfa85eea8fda98214454aca to your computer and use it in GitHub Desktop.

Select an option

Save copy/320c5129fcfa85eea8fda98214454aca to your computer and use it in GitHub Desktop.
Expect tests
(library
((name foo)
(modules foo)
(library_flags (-linkall))
(libraries (ppx_inline_test.runtime-lib ppx_expect.collector))
(preprocess (pps (ppx_jane ppx_driver.runner)))))
(executable
((name test_runner)
(modules (test_runner))
(libraries (foo ppx_expect.evaluator ppx_inline_test.runner.lib))))
(alias
((name runtest)
(deps (test_runner.exe))
(action (run ${<} inline-test-runner foo))))
let () = Ppx_inline_test_lib.Runtime.exit ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment