Skip to content

Commit

Permalink
Merge pull request #1280 from adamrtalbot/dev
Browse files Browse the repository at this point in the history
Reorganise pipeline tests into flat structure
  • Loading branch information
adamrtalbot authored Apr 10, 2024
2 parents f3aec8b + c259f30 commit 5833810
Show file tree
Hide file tree
Showing 17 changed files with 60 additions and 103 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements
- [PR #1266](https://github.com/nf-core/rnaseq/pull/1266) - Delete unecessary tags from nf.test files for modules and subworkflows
- [PR #1253](https://github.com/nf-core/rnaseq/pull/1253) - Use nf-test files as matrix to test over in CI/CD for efficiency
- [PR #1278](https://github.com/nf-core/rnaseq/pull/1278) - Delocalise pseudo quant workflow
- [PR ####](https://github.com/nf-core/rnaseq/pull/####) - Reorganise pipeline level tests into flat directory structure

### Parameters

Expand Down
2 changes: 1 addition & 1 deletion nf-test.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ config {
workDir System.getenv("NFT_WORKDIR") ?: ".nf-test"

// Location of an optional nextflow.config file specific for executing pipeline tests
configFile "tests/config/nextflow.config"
configFile "tests/nextflow.config"

profile "test"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ nextflow_workflow {

when {
params {
// parameters copied from test profile.
// We should be able to automatically import these somehow.
input = "https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv"

// Genome references
fasta = "https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/reference/genome.fasta"
gtf = "https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/reference/genes_with_empty_tid.gtf.gz"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nextflow_pipeline {

name "Test pipeline"
script "../../../main.nf"
name "Test pipeline with default settings"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

Expand All @@ -10,7 +10,6 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
}
}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nextflow_pipeline {

name "Test pipeline"
script "../../../main.nf"
name "Test pipeline with featureCounts with group type false"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

Expand All @@ -10,7 +10,6 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
featurecounts_group_type = false
}
}
Expand Down
23 changes: 23 additions & 0 deletions tests/kallisto.main.nf.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
nextflow_pipeline {

name "Test pipeline using Kallisto"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

test("Default profile test") {

when {
params {
outdir = "$outputDir"
pseudo_aligner = 'kallisto'
skip_qc = true
skip_alignment = true
}
}

then {
assert workflow.success
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nextflow_pipeline {

name "Test pipeline"
script "../../../main.nf"
name "Test pipeline with min_mapped_reads = 90"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

Expand All @@ -10,7 +10,6 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
min_mapped_reads = 90
}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nextflow_pipeline {

name "Test pipeline"
script "../../../main.nf"
name "Test pipeline with ribosomal RNA removal"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

Expand All @@ -10,7 +10,6 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
remove_ribo_rna = true
}
}
Expand Down
23 changes: 23 additions & 0 deletions tests/salmon.main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
nextflow_pipeline {

name "Test pipeline using Salmon"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

test("Default profile test") {

when {
params {
outdir = "$outputDir"
pseudo_aligner = 'salmon'
skip_qc = true
skip_alignment = true
}
}

then {
assert workflow.success
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nextflow_pipeline {

name "Test pipeline"
script "../../../main.nf"
name "Test pipeline with QC disabled"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

Expand All @@ -10,7 +10,6 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
skip_qc = true
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nextflow_pipeline {

name "Test pipeline"
script "../../../main.nf"
name "Test pipeline with trimming disabled"
script "../main.nf"
tag "rnaseq"
tag "PIPELINE"

Expand All @@ -10,7 +10,6 @@ nextflow_pipeline {
when {
params {
outdir = "$outputDir"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/7f1614baeb0ddf66e60be78c3d9fa55440465ac8/samplesheet/v3.10/samplesheet_test.csv'
skip_qc = true
}
}
Expand Down
28 changes: 0 additions & 28 deletions tests/tests/kallisto/main.nf.test

This file was deleted.

12 changes: 0 additions & 12 deletions tests/tests/kallisto/main.nf.test.snap

This file was deleted.

28 changes: 0 additions & 28 deletions tests/tests/salmon/main.nf.test

This file was deleted.

12 changes: 0 additions & 12 deletions tests/tests/salmon/main.nf.test.snap

This file was deleted.

0 comments on commit 5833810

Please sign in to comment.