Skip to content

Commit

Permalink
only snapshot versions and assert success
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed Mar 4, 2024
1 parent fa7d4f4 commit 941b1e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
21 changes: 5 additions & 16 deletions tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,16 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
}
}

then {
assert workflow.success

assertAll(
{ assert workflow.success },
{ assert new File("$outputDir/bbsplit/").exists() },
{ assert new File("$outputDir/fastqc/RAP1_IAA_30M_REP1_1_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/RAP1_IAA_30M_REP1_2_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/RAP1_UNINDUCED_REP1_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/RAP1_UNINDUCED_REP2_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/WT_REP1_1_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/WT_REP1_2_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/WT_REP2_1_fastqc.html").exists() },
{ assert new File("$outputDir/fastqc/WT_REP2_2_fastqc.html").exists() },
{ assert new File("$outputDir/multiqc/star_salmon/multiqc_report.html").exists() }
{ assert new File("$outputDir/salmon/").exists() },
{ assert new File("$outputDir/star_salmon/").exists() },
{ assert new File("$outputDir/trimgalore/").exists() },
{ assert snapshot(UTILS.removeNextflowVersion("$outputDir/pipeline_info/nf_core_rnaseq_software_mqc_versions.yml")).match("software_versions") } )
{ assert snapshot(UTILS.removeNextflowVersion("$outputDir/pipeline_info/nf_core_rnaseq_software_mqc_versions.yml")).match("software_versions") }
)
}
}
}
2 changes: 1 addition & 1 deletion tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
},
"timestamp": "2024-03-04T12:40:26.161319"
}
}
}

0 comments on commit 941b1e5

Please sign in to comment.