Enable the execution of dependent modules for generating test data #127
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull PR enables the execution of dependent modules for generating test data (Fixes #70).
With these changes, it is now possible to specify processes in the setup method that need to be executed before the
when
block. The outputs of these processes can then be utilized to define parameters or map processes/workflows. Therun
method takes the processs or workflow name, the (relativ) path to the script file and the input mapping as arguments.For example, the following testcase for the
ABRICATE_SUMMARY
module executes theABRICATE_RUN
module to generate the input data:The full example can be found here: https://github.com/askimed/nf-test/tree/features/dependencies/test-data/process/abricate
It is also possible to define the
setup
method globally for all tests as follows:Open tasks: