Reference
Classes
Core classes
- JustfileFixture
-
Helper for inspecting recipes and asserting justfile contract behaviour.
JustfileFixture Methods
Methods for the JustfileFixture class
- JustfileFixture.recipe_names()
-
List recipe names, optionally including private recipes.
- JustfileFixture.dependencies()
-
Return direct dependency recipe names for
recipe. - JustfileFixture.parameters()
-
Return raw parameter payloads for
recipe. - JustfileFixture.parameter_names()
-
Return parameter names for
recipe. - JustfileFixture.is_shebang()
-
Report whether
recipeis marked as a shebang recipe. - JustfileFixture.is_private()
-
Report whether
recipeis marked private. - JustfileFixture.doc()
-
Return recipe documentation text if present.
- JustfileFixture.body()
-
Return raw body fragments for
recipe. - JustfileFixture.show()
-
Return rendered recipe text from
just --showwith caching. - JustfileFixture.assignments()
-
Return assignment values keyed by assignment name.
- JustfileFixture.aliases()
-
Return alias-to-target recipe mappings.
- JustfileFixture.assert_exists()
-
Assert that
recipeexists. - JustfileFixture.assert_depends_on()
-
Assert dependency expectations for a recipe.
- JustfileFixture.assert_parameter()
-
Assert that
recipedeclaresparameter, optionally checking attributes. - JustfileFixture.assert_body_contains()
-
Assert that rendered recipe text contains
text. - JustfileFixture.assert_not_shebang()
-
Assert that
recipecan be dry-run safely. - JustfileFixture.assert_variable_referenced()
-
Assert that
variableis structurally referenced in recipe body fragments. - JustfileFixture.dry_run()
-
Run
just --dry-runfor any recipe, including shebang and script recipes. - JustfileFixture.assert_dry_run_contains()
-
Assert successful dry-run output contains
text.
Exceptions
Exception classes
- JustCommandError
-
Raised when invoking
justfails. - JustJsonFormatError
-
Raised when
just --dumpJSON is malformed or incompatible. - UnknownRecipeError
-
Raised when a requested recipe does not exist.