Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pipeline level tests #216

Merged
merged 6 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ params {
max_time = '6.h'

// Input data
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/fetchngs/sra_ids_test.csv'
input = '${projectDir}/tests/sra_ids_test.csv'

validationSchemaIgnoreParams = 'test_data_base,merge_samplesheet_ids,fastq_ftp_ids,test_data'
}
28 changes: 28 additions & 0 deletions tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
nextflow_pipeline {

name "Test pipeline"
script "../main.nf"
tag "pipeline"
tag "pipeline_fetchngs"

test("Run with profile test") {

when {
params {
outdir = "results"
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'
input = "$projectDir/tests/sra_ids_test.csv"
validationSchemaIgnoreParams = 'test_data_base,merge_samplesheet_ids,fastq_ftp_ids,test_data'
}
}

then {
assertAll(
{ assert workflow.success }
)
}
}

}
7 changes: 7 additions & 0 deletions tests/sra_ids_test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SRR9984183
SRR13191702
ERR1160846
SRR12848126
SRR14593545
SRR14709033
GSE214215
5 changes: 5 additions & 0 deletions tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pipeline_fetchngs:
- "**.nf"
- "**.config"
- "**.nf.test"
- "**.json"
Loading