Juggernaut.Advise.Tags (Juggernaut v0.4.0)

Copy Markdown View Source

The tags each test file declares, read from its source without running it, for mix juggernaut.advise (Juggernaut.Advise): @moduletag, @describetag and @tag values (an atom, a list of atoms, or key: value with a truthy value), plus the tags of each case template the file uses that is defined under the test paths (a Juggernaut.IntegrationCase whose using block sets @moduletag :fixture, say).

Read statically, so a tag computed at run time is not seen; a file that does not parse has no tags.

Summary

Functions

The tags of each of test_files (relative to root), with the case templates defined in the other .ex/.exs files under test_paths.

The tags ast sets with @moduletag, @describetag or @tag.

Functions

of_files(root, test_files, test_paths)

@spec of_files(Path.t(), [String.t()], [String.t()]) :: %{
  required(String.t()) => [atom()]
}

The tags of each of test_files (relative to root), with the case templates defined in the other .ex/.exs files under test_paths.

tags(ast)

@spec tags(Macro.t()) :: [atom()]

The tags ast sets with @moduletag, @describetag or @tag.