Skip to content

Commit

Permalink
Change more features to template language
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkka committed Oct 13, 2023
1 parent 791a3e0 commit 7f4f0e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions features/check-file-origin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,47 @@ Feature: Check origin of a file in project directory using "why" command
Scenario: File generated by a recipe
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "README.md"
And a recipe "foo" that has a template "README.md.tmpl"
And I execute recipe "foo"
When I check why the file "README.md" is created
Then CLI produced an output "File 'README.md' is created by the recipe 'foo'"

Scenario: Nested file generated by a recipe
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "foo/bar.yml"
And a recipe "foo" that has a template "foo/bar.yml.tmpl"
And I execute recipe "foo"
When I check why the file "foo/bar.yml" is created
Then CLI produced an output "File 'foo/bar.yml' is created by the recipe 'foo'"

Scenario: Directory generated by a recipe
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "foo/bar.yml"
And a recipe "foo" that has a template "foo/bar.yml.tmpl"
And I execute recipe "foo"
When I check why the file "foo" is created
Then CLI produced an output "Directory 'foo' is created by the recipe 'foo'"

Scenario: Directory generated by Jalapeno
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "README.md"
And a recipe "foo" that has a template "README.md.tmpl"
And I execute recipe "foo"
When I check why the file ".jalapeno" is created
Then CLI produced an output "Directory '.jalapeno' is created by Jalapeno"

Scenario: File generated by Jalapeno
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "README.md"
And a recipe "foo" that has a template "README.md.tmpl"
And I execute recipe "foo"
When I check why the file ".jalapeno/sauces.yml" is created
Then CLI produced an output "File '.jalapeno/sauces.yml' is created by Jalapeno"

Scenario: File not found
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "README.md"
And a recipe "foo" that has a template "README.md.tmpl"
And I execute recipe "foo"
When I check why the file "not-found" is created
Then CLI produced an error "File '.*/not-found' does not exist"
2 changes: 1 addition & 1 deletion features/execute-recipes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: Execute recipes
Scenario: Execute single recipe from remote registry
Given a project directory
And a recipes directory
And a recipe "foo" that generates file "README.md"
And a recipe "foo" that has a template "README.md.tmpl"
And a local OCI registry
And the recipe "foo" is pushed to the local OCI repository "foo:v0.0.1"
When I execute the recipe from the local OCI repository "foo:v0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion features/recipe-tests.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Running tests for a recipe
Scenario: Using CLI to create a new recipe test
Given a recipes directory
And a recipe "foo" that generates file "README.md"
And a recipe "foo" that has a template "README.md.tmpl"
When I create a placeholder test for recipe "foo" using the CLI
Then CLI produced an output "Test created"
And no errors were printed
Expand Down

0 comments on commit 7f4f0e1

Please sign in to comment.