Skip to content

Commit

Permalink
Added asserts for profile contents
Browse files Browse the repository at this point in the history
  • Loading branch information
apetkau committed Mar 26, 2024
1 parent 6b7ddae commit a03c22b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/data/profiles/expected-profile1.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sample_id l1 l2 l3
sample1 1 1 1
sample2 1 1 1
sample3 1 1 2
6 changes: 5 additions & 1 deletion tests/pipelines/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ nextflow_pipeline {
then {
assert workflow.success
assert path("$launchDir/results").exists()
assert path("$launchDir/results/locidex/merged/profile.tsv").exists()

// Check MLST files
def actual_profile_tsv = path("$launchDir/results/locidex/merged/profile.tsv")
def expected_profile_tsv = path("$baseDir/tests/data/profiles/expected-profile1.tsv")
assert actual_profile_tsv.text == expected_profile_tsv.text

// compare IRIDA Next JSON output
def iridanext_json = path("$launchDir/results/iridanext.output.json").json
Expand Down

0 comments on commit a03c22b

Please sign in to comment.