-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-organize tests and use tags in ci job matrix
- Loading branch information
1 parent
4b093cd
commit 49579a9
Showing
25 changed files
with
279 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.config linguist-language=nextflow | ||
*.nf.test linguist-language=nextflow | ||
tests/**/*nf.test.snap linguist-generated | ||
modules/nf-core/** linguist-generated | ||
subworkflows/nf-core/** linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test Workflow main.nf" | ||
script "main.nf" | ||
tag "test_pplace" | ||
tag "pipeline" | ||
|
||
test("Pplace") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot(UTILS.removeNextflowVersion("$outputDir")).match("software_versions") }, | ||
{ assert snapshot(path("$outputDir/overall_summary.tsv")).match("overall_summary_tsv") }, | ||
{ assert snapshot(path("$outputDir/barrnap/rrna.arc.gff"), | ||
path("$outputDir/barrnap/rrna.bac.gff"), | ||
path("$outputDir/barrnap/rrna.euk.gff"), | ||
path("$outputDir/barrnap/rrna.mito.gff")).match("barrnap") }, | ||
{ assert new File("$outputDir/barrnap/summary.tsv").exists() }, | ||
{ assert snapshot(path("$outputDir/cutadapt/cutadapt_summary.tsv")).match("cutadapt") }, | ||
{ assert snapshot(path("$outputDir/dada2/ASV_seqs.fasta"), | ||
path("$outputDir/dada2/ASV_table.tsv"), | ||
path("$outputDir/dada2/DADA2_stats.tsv"), | ||
path("$outputDir/dada2/DADA2_table.rds"), | ||
path("$outputDir/dada2/DADA2_table.tsv")).match("dada2") }, | ||
{ assert snapshot(path("$outputDir/input/Samplesheet.tsv"), | ||
path("$outputDir/input/Metadata.tsv")).match("input") }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/abs-abund-table-1.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/abs-abund-table-2.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/abs-abund-table-3.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/count_table_filter_stats.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/filtered-table.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/feature-table.biom").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/feature-table.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/input/rep-seqs.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/input/table.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/input/taxonomy.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-1.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-2.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-3.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-ASV.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-ASV_with-PPLACE-tax.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-ASV_with-QIIME2-tax.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/representative_sequences/filtered-sequences.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/representative_sequences/rep-seq.fasta").exists() }, | ||
{ assert snapshot(path("$outputDir/qiime2/representative_sequences/descriptive_stats.tsv"), | ||
path("$outputDir/qiime2/representative_sequences/seven_number_summary.tsv")).match("qiime2") }, | ||
{ assert new File("$outputDir/pplace/test_pplace.taxonomy.per_query_unique.tsv").exists() }, | ||
{ assert new File("$outputDir/pplace/test_pplace.taxonomy.per_query.tsv").exists() }, | ||
{ assert new File("$outputDir/pplace/test_pplace.graft.test_pplace.epa_result.newick").exists() }, | ||
{ assert snapshot(path("$outputDir/multiqc/multiqc_data/multiqc_general_stats.txt"), | ||
path("$outputDir/multiqc/multiqc_data/multiqc_cutadapt.txt")).match("multiqc") } | ||
) | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test Workflow main.nf" | ||
script "main.nf" | ||
tag "test_sintax" | ||
tag "pipeline" | ||
|
||
test("Sintax") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot(UTILS.removeNextflowVersion("$outputDir")).match("software_versions") }, | ||
{ assert snapshot(path("$outputDir/overall_summary.tsv")).match("overall_summary_tsv") }, | ||
{ assert snapshot(path("$outputDir/barrnap/rrna.arc.gff"), | ||
path("$outputDir/barrnap/rrna.bac.gff"), | ||
path("$outputDir/barrnap/rrna.euk.gff"), | ||
path("$outputDir/barrnap/rrna.mito.gff")).match("barrnap") }, | ||
{ assert new File("$outputDir/barrnap/summary.tsv").exists() }, | ||
{ assert snapshot(path("$outputDir/cutadapt/cutadapt_summary.tsv")).match("cutadapt") }, | ||
{ assert snapshot(path("$outputDir/dada2/ASV_seqs.fasta"), | ||
path("$outputDir/dada2/ASV_table.tsv"), | ||
path("$outputDir/dada2/DADA2_stats.tsv"), | ||
path("$outputDir/dada2/DADA2_table.rds"), | ||
path("$outputDir/dada2/DADA2_table.tsv")).match("dada2") }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/abs-abund-table-2.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/abs-abund-table-3.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/abs-abund-table-4.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/count_table_filter_stats.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/filtered-table.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/feature-table.biom").exists() }, | ||
{ assert new File("$outputDir/qiime2/abundance_tables/feature-table.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/input/rep-seqs.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/input/table.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/input/taxonomy.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-2.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-3.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-4.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-ASV.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/rel_abundance_tables/rel-table-ASV_with-SINTAX-tax.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/representative_sequences/filtered-sequences.qza").exists() }, | ||
{ assert new File("$outputDir/qiime2/representative_sequences/rep-seq.fasta").exists() }, | ||
{ assert new File("$outputDir/qiime2/ancom/Category-var2-ASV/percent-abundances.tsv").exists() }, | ||
{ assert new File("$outputDir/qiime2/ancom/Category-var3-ASV/percent-abundances.tsv").exists() }, | ||
{ assert snapshot(path("$outputDir/qiime2/representative_sequences/descriptive_stats.tsv"), | ||
path("$outputDir/qiime2/representative_sequences/seven_number_summary.tsv")).match("qiime2") }, | ||
{ assert snapshot(path("$outputDir/input/Samplesheet_pacbio_ITS.tsv"), | ||
path("$outputDir/input/Metadata_pacbio_ITS.tsv")).match("input") }, | ||
{ assert new File("$outputDir/itsx/ASV_ITS_seqs.full.fasta").exists() }, | ||
{ assert new File("$outputDir/itsx/ASV_ITS_seqs.ITS2.fasta").exists() }, | ||
{ assert new File("$outputDir/itsx/ASV_ITS_seqs.summary.txt").exists() }, | ||
{ assert new File("$outputDir/itsx/ITSx.args.txt").exists() }, | ||
{ assert snapshot(path("$outputDir/SBDI/dna.tsv"), | ||
path("$outputDir/SBDI/emof.tsv"), | ||
path("$outputDir/SBDI/event.tsv")).match("SBDI") }, | ||
{ assert new File("$outputDir/SBDI/annotation.tsv").exists() }, | ||
{ assert new File("$outputDir/SBDI/asv-table.tsv").exists() }, | ||
{ assert new File("$outputDir/sintax/ASV_ITS_tax_sintax.unite-fungi.raw.tsv").exists() }, | ||
{ assert new File("$outputDir/sintax/ASV_tax_sintax.unite-fungi.tsv").exists() }, | ||
{ assert new File("$outputDir/sintax/ref_taxonomy_sintax.txt").exists() }, | ||
{ assert snapshot(path("$outputDir/multiqc/multiqc_data/multiqc_general_stats.txt"), | ||
path("$outputDir/multiqc/multiqc_data/multiqc_cutadapt.txt")).match("multiqc") } | ||
) | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.