From ca68e9b83fc535d4d45a1f9e34272579f23999f3 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Thu, 25 Apr 2024 17:27:30 -0500 Subject: [PATCH] test: Write basic STAR test --- workflows/tests/star.nf.test | 24 ++++++++++++++++++++++++ workflows/tests/star.nf.test.snap | 12 ++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 workflows/tests/star.nf.test create mode 100644 workflows/tests/star.nf.test.snap diff --git a/workflows/tests/star.nf.test b/workflows/tests/star.nf.test new file mode 100644 index 00000000..ab60135d --- /dev/null +++ b/workflows/tests/star.nf.test @@ -0,0 +1,24 @@ +nextflow_pipeline { + + name "Test Workflow main.nf with STAR" + script "../../main.nf" + tag "aligner" + tag "star" + + test("Should run with STAR (default)") { + + when { + params { + outdir = "$outputDir" + aligner = "star" + } + } + + then { + assert workflow.success + assert snapshot( + workflow.trace.tasks().size(), + ).match() + } + } +} diff --git a/workflows/tests/star.nf.test.snap b/workflows/tests/star.nf.test.snap new file mode 100644 index 00000000..2ce34c99 --- /dev/null +++ b/workflows/tests/star.nf.test.snap @@ -0,0 +1,12 @@ +{ + "Should run with STAR (default)": { + "content": [ + 139 + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "24.03.0" + }, + "timestamp": "2024-04-25T17:27:56.772645664" + } +} \ No newline at end of file