-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathbowtie2.nf.test
More file actions
57 lines (49 loc) · 1.79 KB
/
bowtie2.nf.test
File metadata and controls
57 lines (49 loc) · 1.79 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
nextflow_pipeline {
name "Test pipeline with bowtie2 aligner"
script "../main.nf"
tag "bowtie2"
test("bowtie2") {
when {
params {
outdir = "$outputDir"
aligner = "bowtie2"
}
}
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 test pipelines on multiple Nextflow versions
removeNextflowVersion("$outputDir/pipeline_info/nf_core_chipseq_software_mqc_versions.yml"),
// All stable path name, with a relative path
stable_name,
// All files with stable contents
stable_path
).match() }
)
}
}
test("bowtie2 with stub") {
options "-stub"
when {
params {
outdir = "$outputDir"
aligner = "bowtie2"
}
}
then {
assertAll(
{ assert workflow.success },
{ assert snapshot(
workflow.trace.succeeded().size()
).match() }
)
}
}
}