Skip to content

Commit

Permalink
Try for stable snapshotting strategy in fastq_subsample_fq_salmon, fa…
Browse files Browse the repository at this point in the history
…stq_download_prefetch_fasterqdump_sratools (nf-core#4714)

* Dummy change to see what nf-test does for this subworkflow

* Amend fastq.gz testing strategy

* Revert "Dummy change to see what nf-test does for this subworkflow"

This reverts commit 6f96c42.

* Also fix snapshots from fastq_download_prefetch_fasterqdump_sratools

* Remove old assertions

* Fix snapshots for version

---------

Co-authored-by: Maxime U Garcia <[email protected]>
  • Loading branch information
pinin4fjords and maxulysse authored Jan 11, 2024
1 parent 84b334a commit bdfd7bc
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ nextflow_workflow {
}

then {
def pelines1 = path(workflow.out.reads[0][1][0]).linesGzip
def pelines2 = path(workflow.out.reads[0][1][1]).linesGzip
def selines = path(workflow.out.reads[1][1]).linesGzip
assertAll(
{ assert workflow.success },
{ assert snapshot(workflow.out).match() }
{ assert snapshot(pelines1[0..5]).match("test_pe_reads_1_lines") },
{ assert snapshot(pelines1.size()).match("test_pe_reads_1_size") },
{ assert snapshot(pelines2[0..5]).match("test_pe_reads_2_lines") },
{ assert snapshot(pelines2.size()).match("test_pe_reads_2_size") },
{ assert snapshot(selines[0..5]).match("test_se_reads_lines") },
{ assert snapshot(selines.size()).match("test_se_reads_size") },
{ assert snapshot(workflow.out.versions).match("versions") }
)
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ nextflow_workflow {
}

then {
def readlines1 = path(workflow.out.reads[0][1][0]).linesGzip
def readlines2 = path(workflow.out.reads[0][1][1]).linesGzip
assertAll(
{ assert workflow.success },
{ assert snapshot(workflow.out.reads).match("reads") },
{ assert snapshot(readlines1[0..5]).match("test_reads_1_lines") },
{ assert snapshot(readlines1.size()).match("test_reads_1_size") },
{ assert snapshot(readlines2[0..5]).match("test_reads_2_lines") },
{ assert snapshot(readlines2.size()).match("test_reads_2_size") },
{ assert snapshot(workflow.out.versions).match("versions") },

{ assert workflow.out.index },
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bdfd7bc

Please sign in to comment.