@@ -10,14 +10,13 @@ nextflow_process {
1010
1111 test("pyclonevi") {
1212
13-
1413 config "./nextflow.config"
1514
1615 when {
1716 process {
1817 """
1918 input[0] = [
20- meta = [ id : "test", patient : "HCC1395", tumour_sample : "HCC1395_HCC1395T" ],
19+ [ id : "test", patient : "HCC1395", tumour_sample : "HCC1395_HCC1395T" ],
2120 file(params.modules_testdata_base_path + 'delete_me/pyclonevi/HCC1395_WXS_HCC1395_joint_table.tsv', checkIfExists: true),
2221 [ 'HCC1395_HCC1395T' ]
2322 ]
@@ -26,14 +25,13 @@ nextflow_process {
2625 }
2726
2827 then {
28+ assert process.success
2929 assertAll(
30- { assert process. success },
31- { assert snapshot(process. out. versions_pyclonevi). match() },
32- { assert file(process. out. ctree_input[0 ][1 ]). exists() },
33- { assert file(process. out. pyclone_input[0 ][1 ][0 ]). exists() },
34- { assert file(process. out. pyclone_input[0 ][1 ][1 ]). exists() },
35- { assert file(process. out. pyclone_all_fits[0 ][1 ]). exists() },
36- { assert file(process. out. pyclone_best_fit[0 ][1 ]). exists() }
30+ { assert snapshot(
31+ sanitizeOutput(
32+ process.out,
33+ unstableKeys: ["ctree_input", "pyclone_input", "pyclone_all_fits", "pyclone_best_fit"]
34+ )).match() }
3735 )
3836 }
3937
@@ -47,7 +45,7 @@ nextflow_process {
4745 process {
4846 """
4947 input[0] = [
50- meta = [ id : "test", patient : "HCC1395", tumour_sample : "HCC1395_HCC1395T" ],
48+ [ id : "test", patient : "HCC1395", tumour_sample : "HCC1395_HCC1395T" ],
5149 file(params.modules_testdata_base_path + 'delete_me/pyclonevi/HCC1395_WXS_HCC1395_joint_table.tsv', checkIfExists: true),
5250 [ 'HCC1395_HCC1395T']
5351 ]
@@ -58,7 +56,10 @@ nextflow_process {
5856 then {
5957 assertAll(
6058 { assert process.success },
61- { assert snapshot(process. out). match() }
59+ { assert snapshot(
60+ sanitizeOutput(process.out),
61+ path(process.out.versions_pyclonevi[0]).yaml
62+ ).match() }
6263 )
6364 }
6465
0 commit comments