Add possibility to set and combine multiple profiles #128
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 PR fixes #94.
Basic Profile Usage
By default,
nf-test
reads the profile configuration fromnf-test.config
. If you've defined a profile calledA
innf-test.config
, runningnf-test --profile B
will start Nextflow with only theB
profile. It replaces any existing profiles.Combining Profiles with "+"
To combine profiles, you can use the
+
prefix. For example, runningnf-test --profile +B
will start Nextflow with bothA
andB
profiles, resulting in-profile A,B
. This allows you to extend the existing configuration with additional profiles.Profile Priority Order
Profiles are evaluated in a specific order, ensuring predictable behavior:
Profile in nf-test.config: The first profile considered is the one defined in
nf-test.config
.Profile Defined in Testcase: If you specify a profile within a testcase, it takes precedence over the one in
nf-test.config
.Profile Defined on the Command Line (CLI): Finally, any profiles provided directly through the CLI have the highest priority and override/extends previously defined profiles.
By understanding this profile evaluation order, you can effectively configure Nextflow executions for your test cases in a flexible and organized manner.