config {
    // location for all nf-test tests
    testsDir = "."

    // nf-test directory including temporary files for each test
    workDir = System.getenv("NFT_WORKDIR") ?: ".nf-test"

    // location of an optional nextflow.config file specific for executing tests
    configFile = "tests/nextflow.config"

    // ignore tests coming from the nf-core/modules repo
    ignore = [
        'modules/nf-core/**/tests/*',
        'subworkflows/nf-core/**/tests/*',
    ]

    // run all test with defined profile(s) from the main nextflow.config
    profile = "test"

    // list of filenames or patterns that should be trigger a full test run
    triggers = [
        '.github/actions/nf-test/action.yml',
        '.github/workflows/nf-test.yml',
        'assets/schema_input.json',
        'bin/*',
        'conf/test.config',
        'nextflow.config',
        'nextflow_schema.json',
        'nf-test.config',
        'tests/.nftignore',
        'tests/nextflow.config',
        'tests/analysis_plan.csv',
        'tests/analysis_plan_sub.csv',
    ]

    // load the necessary plugins
    plugins {
        load "nft-utils@0.0.3"
        load "nft-anndata@0.4.1"
        load "nft-csv@0.1.0"
    }
}
