Skip to main content

run_tests

Function run_tests 

Source
pub fn run_tests(
    entry_path: &Path,
    options: &CompileOptions,
) -> Result<String, Vec<Diagnostic>>
Expand description

Run all #[test] functions in a project.

For each test function, we:

  1. Parse and type-check the project
  2. Compile a mini-program that just calls the test function
  3. Report pass/fail with cost summary