Ancora.Parser (ancora v1.3.5)

Copy Markdown View Source

Parses .spec/specs/*.spec.md files.

parse_file/2 is a semver-stable public function. Its return shape is a map with string keys "file", "title", "meta", "requirements", "scenarios", "verification", "exceptions", "parse_errors", and "findings". That shape is unchanged within a major version.

The "exceptions" key and spec-exceptions block are deprecated. Ancora 1.x continues to parse and return them. Ancora 2.0 will remove them.

The commitment is also documented in the README.

Summary

Functions

Parses a spec file at path relative to root.

Functions

parse_file(path, root)

@spec parse_file(Path.t(), Path.t()) :: map()

Parses a spec file at path relative to root.

This function is semver-stable public API. Its "exceptions" return key is deprecated and will be removed in Ancora 2.0.