BAM.Tutorials.Check (BAM v0.1.0)

Copy Markdown View Source

Runs the fenced Elixir examples in tutorials/ that are marked # check.

A block is checked when its first code line is # check. The block is evaluated with ExUnit.Assertions imported. Other fences are prose and are left alone.

Summary

Functions

Checks every numbered tutorial. Returns {:ok, count} or {:error, failures}.

Functions

run(root \\ "tutorials")

@spec run(Path.t()) :: {:ok, non_neg_integer()} | {:error, [{Path.t(), term()}]}

Checks every numbered tutorial. Returns {:ok, count} or {:error, failures}.