forked from nf-core/rnavar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nf.test
35 lines (31 loc) · 1.39 KB
/
default.nf.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
nextflow_pipeline {
name "Test pipeline"
script "../main.nf"
tag "pipeline"
tag "pipeline_rnavar"
test("Run with profile test") {
when {
params {
modules_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/'
outdir = "$outputDir"
}
}
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_rnavar_software_mqc_versions.yml"),
// All stable path name, with a relative path
stable_name
).match() }
)
}
}
}