Vibe.TestRunner (vibe v0.1.0)

View Source

Runs tests with AI-friendly output formatting.

Summary

Functions

Parse coverage output.

Run tests with the given options.

Run tests with coverage reporting.

Functions

parse_coverage_output(output)

Parse coverage output.

Parameters

  • output: Output from running mix coveralls

Returns

  • Map with parsed coverage results

parse_test_output(output, exit_code)

Parse test output.

Parameters

  • output: Output from running mix test
  • exit_code: The exit code from the test run

Returns

  • Map with parsed test results

run_tests(paths \\ [], options \\ [])

Run tests with the given options.

Parameters

  • paths: List of test file paths to run (optional)
  • options: Test options
    • only: Run only tests with the given tag
    • exclude: Exclude tests with the given tag
    • seed: Set the random seed
    • trace: Run tests with detailed trace output

Returns

  • {:ok, results} - Test results
  • {:error, message} - Error during test run

run_tests_with_coverage(paths \\ [], options \\ [])

Run tests with coverage reporting.

Parameters

  • paths: List of test file paths to run (optional)
  • options: Test options (same as run_tests/2)

Returns

  • {:ok, results} - Test results including coverage
  • {:error, message} - Error during test run