diff --git a/tests/config/samplesheets/no_underscore.csv b/tests/config/samplesheets/no_underscore.csv new file mode 100644 index 00000000..c23eb02b --- /dev/null +++ b/tests/config/samplesheets/no_underscore.csv @@ -0,0 +1,4 @@ +sample,fastq_1,fastq_2 +DUTTKE,https://raw.githubusercontent.com/nf-core/test-datasets/nascent/testdata/SRX882903_T1.fastq.gz, +EXP,https://raw.githubusercontent.com/nf-core/test-datasets/nascent/testdata/SRX882903_T2.fastq.gz, +DUTTKE,https://raw.githubusercontent.com/nf-core/test-datasets/nascent/testdata/SRX882904_T1.fastq.gz, diff --git a/workflows/tests/bugs/no_underscore.nf.test b/workflows/tests/bugs/no_underscore.nf.test new file mode 100644 index 00000000..3592cd5a --- /dev/null +++ b/workflows/tests/bugs/no_underscore.nf.test @@ -0,0 +1,23 @@ +nextflow_pipeline { + + name "Samplesheet with no underscores" + script "../../../main.nf" + tag "bug" + + // https://github.com/nf-core/nascent/issues/158 + test("Should work with samples that don't have an underscore") { + when { + params { + outdir = "$outputDir" + input = "${projectDir}/tests/config/samplesheets/no_underscore.csv" + } + } + + then { + assert workflow.success + assert snapshot( + workflow.trace.tasks().size(), + ).match() + } + } +} diff --git a/workflows/tests/bugs/no_underscore.nf.test.snap b/workflows/tests/bugs/no_underscore.nf.test.snap new file mode 100644 index 00000000..97561c22 --- /dev/null +++ b/workflows/tests/bugs/no_underscore.nf.test.snap @@ -0,0 +1,12 @@ +{ + "Should work with samples that don't have an underscore": { + "content": [ + 58 + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-08-16T22:12:17.34063593" + } +} \ No newline at end of file