LemonCore. Testing
(lemon_core v0.1.0)
View Source
Test harness for constructing test environments with sensible defaults.
Inspired by Ironclaw's testing.rs, this module provides utilities for setting up test environments without external dependencies.
Usage
defmodule MyTest do
use LemonCore.Testing.Case, async: true
test "something", %{harness: harness} do
# Use harness.tmp_dir, harness.store, etc.
end
endOr use the builder directly:
harness = LemonCore.Testing.Harness.new()
|> LemonCore.Testing.Harness.with_env("KEY", "value")
|> LemonCore.Testing.Harness.build()