testament

Values

pub fn main() -> Nil
pub fn test_main(run_tests: fn() -> Nil) -> Nil

Add testament to your test’s main function and you’re good to go! You can use gleeunit or any other testing framework

import gleeunit
import testament

pub fn main() -> Nil {
  testament.test_main(gleeunit.main)
}
pub fn test_main_with_opts(
  run_tests: fn() -> Nil,
  opts: List(conf.Conf),
) -> Nil

Add testament to your test’s main function and you’re good to go! You can use gleeunit or any other testing framework.

  • Config options here
import gleeunit
import testament
import testament/conf

pub fn main() -> Nil {
  testament.test_main_with_opts(gleeunit.main, [conf.IgnoreFiles(["src/example.gleam"])])
}
Search Document