Skip to content

semgrep/testo-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A template for an OCaml project using Testo with Dune

Copy these files into your project:

  • The test script will be your main command to run tests and to manage test results. It is customizable. Rename it if needed.
  • tests/test.ml is the entry point of your OCaml test program. Add tests in there.
  • tests/dune is set up to build and run tests with dune.

Commands you should try:

  • dune build: build everything including the test executable. dune build tests/test.exe will build only the test executable.
  • ./test: invoke the test executable and run the test suite. This is the same as ./test run.
  • ./test status: print the status of the test results without running tests. Try --help to see what options are available.
  • dune runtest: build and run the test suite without arguments. Use -f to force a re-run.
  • Edit the tests in tests/test.ml and see what happens.

See also:

About

A template project for getting started with Testo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published