-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../main.nf" | ||
tag "pipeline" | ||
tag "pipeline_sarek" | ||
|
||
test("Run with profile test | --tools bcfann") { | ||
|
||
when { | ||
params { | ||
modules_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/' | ||
outdir = "$outputDir" | ||
input = "${projectDir}/tests/csv/3.0/vcf_single.csv" | ||
step = 'annotate' | ||
tools = 'bcfann' | ||
} | ||
} | ||
|
||
then { | ||
// stable_name: All files + folders in ${params.outdir}/ with a stable name | ||
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}']) | ||
// stable_path: All files in ${params.outdir}/ with stable content | ||
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore') | ||
assertAll( | ||
{ assert workflow.success}, | ||
{ assert snapshot( | ||
// Number of successful tasks | ||
workflow.trace.succeeded().size(), | ||
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions | ||
removeNextflowVersion("$outputDir/pipeline_info/nf_core_sarek_software_mqc_versions.yml"), | ||
// All stable path name, with a relative path | ||
stable_name, | ||
// All files with stable contents | ||
stable_path | ||
).match() } | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"Run with profile test | --tools bcfann": { | ||
"content": [ | ||
2, | ||
{ | ||
"BCFTOOLS_ANNOTATE": { | ||
"bcftools": 1.2 | ||
}, | ||
"Workflow": { | ||
"nf-core/sarek": "v3.5.0dev" | ||
} | ||
}, | ||
[ | ||
"annotation", | ||
"annotation/test", | ||
"annotation/test/test_BCF.ann.vcf.gz", | ||
"annotation/test/test_BCF.ann.vcf.gz.tbi", | ||
"csv", | ||
"multiqc", | ||
"multiqc/multiqc_data", | ||
"multiqc/multiqc_data/multiqc.log", | ||
"multiqc/multiqc_data/multiqc_citations.txt", | ||
"multiqc/multiqc_data/multiqc_data.json", | ||
"multiqc/multiqc_data/multiqc_software_versions.txt", | ||
"multiqc/multiqc_data/multiqc_sources.txt", | ||
"multiqc/multiqc_report.html", | ||
"pipeline_info", | ||
"pipeline_info/nf_core_sarek_software_mqc_versions.yml" | ||
], | ||
[ | ||
"multiqc_citations.txt:md5,4c806e63a283ec1b7e78cdae3a923d4f" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.9.1", | ||
"nextflow": "24.10.0" | ||
}, | ||
"timestamp": "2024-10-29T09:38:54.991004" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.