@@ -29,12 +29,7 @@ nextflow_process {
2929 then {
3030 assertAll(
3131 { assert process.success },
32- { assert snapshot(
33- process.out.reads,
34- file(process.out.log[0][1]).name,
35- process.out.findAll { key, val -> key.startsWith('versions') }
36- ).match()
37- }
32+ { assert snapshot(sanitizeOutput(process.out, unstableKeys: ["log"])).match() }
3833 )
3934 }
4035 }
@@ -59,12 +54,60 @@ nextflow_process {
5954 then {
6055 assertAll(
6156 { assert process.success },
62- { assert snapshot(
63- process.out.reads,
64- file(process.out.log[0][1]).name,
65- process.out.findAll { key, val -> key.startsWith('versions') }
66- ).match()
67- }
57+ { assert snapshot(sanitizeOutput(process.out, unstableKeys: ["log"])).match() }
58+ )
59+ }
60+ }
61+
62+ test("test-bbmap-clumpify-single-end - stub") {
63+
64+ options "-stub"
65+
66+ when {
67+ process {
68+ """
69+ input[0] = [
70+ [ id:'test', single_end:true ], // meta map
71+ [
72+ file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true)
73+ ]
74+ ]
75+
76+ """
77+ }
78+ }
79+
80+ then {
81+ assertAll(
82+ { assert process.success },
83+ { assert snapshot(sanitizeOutput(process.out)).match() }
84+ )
85+ }
86+ }
87+
88+ test("test-bbmap-clumpify-paired-end - stub") {
89+
90+ options "-stub"
91+
92+ when {
93+ process {
94+ """
95+ input[0] = [
96+ [ id:'test', single_end:false ], // meta map
97+ [
98+ file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true),
99+ file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
100+ ]
101+ ]
102+
103+ """
104+ }
105+ }
106+
107+ then {
108+ assertAll(
109+ { assert process.success },
110+ { assert snapshot(sanitizeOutput(process.out)).match() }
68111 )
69112 }
70113 }
0 commit comments