Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to set and combine multiple profiles #128

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

lukfor
Copy link
Collaborator

@lukfor lukfor commented Oct 6, 2023

This PR fixes #94.

Basic Profile Usage

By default, nf-test reads the profile configuration from nf-test.config. If you've defined a profile called A in nf-test.config, running nf-test --profile B will start Nextflow with only the B profile. It replaces any existing profiles.

Combining Profiles with "+"

To combine profiles, you can use the + prefix. For example, running nf-test --profile +B will start Nextflow with both A and B 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:

  1. Profile in nf-test.config: The first profile considered is the one defined in nf-test.config.

  2. Profile Defined in Testcase: If you specify a profile within a testcase, it takes precedence over the one in nf-test.config.

  3. 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.

@lukfor lukfor merged commit ca775b3 into main Oct 7, 2023
@lukfor lukfor deleted the features/profiles branch October 7, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement soft config & profile override settings in nf-test
1 participant