-
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: allow same recipe to be executed twice
- Loading branch information
Showing
4 changed files
with
6 additions
and
56 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
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 |
---|---|---|
|
@@ -50,24 +50,4 @@ Feature: Execute manifests | |
| foo | | ||
| 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 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" | ||
Then CLI produced an error "^Error: conflict in recipe 'conflicts-with-foo': file 'foo\.md' was already created by other recipe 'foo'" |
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