-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: skip already executed recipes when executing a manifest
- Loading branch information
Showing
7 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,6 @@ bin/ | |
.task | ||
|
||
temp | ||
.env | ||
.env | ||
|
||
.docusaurus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,13 @@ Feature: Execute manifests | |
And CLI produced an output "Recipe name: bar" | ||
And the project directory should contain file "foo.md" | ||
And the project directory should contain file "bar.md" | ||
|
||
Scenario: Execute a manifest with no recipes | ||
Given a project directory | ||
And a recipes directory | ||
And a manifest file | ||
When I execute the manifest file | ||
Then CLI produced an error "^Error: can not load the manifest: manifest must contain at least one recipe" | ||
|
||
Scenario: Conflicting recipes in manifest results in an error | ||
Given a project directory | ||
|
@@ -52,3 +59,25 @@ Feature: Execute manifests | |
| conflicts-with-foo | | ||
When I execute the manifest file | ||
Then CLI produced an error "^Error: conflict in recipe 'conflicts-with-foo': file 'foo\.md' was already created by recipe 'foo'\." | ||
|
||
Scenario: Already executed recipes are skipped when executing a manifest | ||
Given a project directory | ||
And a recipes directory | ||
And a recipe "foo" | ||
And recipe "foo" generates file "foo.md" with content "initial" | ||
And a recipe "bar" | ||
And recipe "bar" generates file "bar.md" with content "initial" | ||
And a manifest file that includes recipes | ||
| foo | | ||
When I execute the manifest file | ||
Then no errors were printed | ||
|
||
Given I clear the output | ||
And a manifest file that includes recipes | ||
| foo | | ||
| bar | | ||
When I execute the manifest file | ||
Then no errors were printed | ||
And CLI produced an output "Recipe '[email protected]' has already been executed, skipping" | ||
And the project directory should contain file "foo.md" | ||
And the project directory should contain file "bar.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters