Skip to content

Testing a composite declarative recipe with rewriteTest #4340

Answered by timtebeek
sihutch asked this question in Q&A
Discussion options

You must be logged in to vote

That second example is fine, but recipeFromResources is preferred; there's a subtle difference between recipeFromResource and recipeFromResources. The first only works if the recipe itself and all the recipes in the recipe list are in that same file. The second works across files, and is similar to what you arrived at in your second example, but more convenient. You can use that Environment.builder() if you want to limit which paths are scanned for a performance improvement..

And sorry it took a while to respond; my phone had marked this notification as viewed somehow, so I only came across it now.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sihutch
Comment options

@timtebeek
Comment options

Answer selected by timtebeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants