ClientUtils.SpecCriteria (client_utils v0.6.15)

View Source

Holds a project's specs (test/specs/**/*_test.exs) to its story files, from one test module in the project:

defmodule MyApp.SpecCriteriaTest do
  use ClientUtils.SpecCriteria, givens: SpecCase
end
  • Every @tag criterion: "<id>" is the id of a scenario in .code_my_spec/stories/*.yml, on a test that runs (not skipped, not excluded), and on one test only.
  • Every public arity-1 function of the givens module (a setup step) has a spec tagged @tag given: :<name>: the spec that shows the given lands where a person would have.

It reads the tags ExUnit holds, so no spelling hides one.

Summary

Functions

The criteria more than one test carries.

The tagged tests whose criterion no story has, or that will not run.

Functions

repeated(tagged)

The criteria more than one test carries.

unproven(tagged, stories \\ ".code_my_spec/stories/*.yml")

The tagged tests whose criterion no story has, or that will not run.