-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mergeContext to methyldackel extract comprehensive + comprehensiv…
…e tests
- Loading branch information
1 parent
68b9d40
commit 40a4cf1
Showing
6 changed files
with
734 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test Workflow main.nf" | ||
script "../main.nf" | ||
config "./nextflow.config" | ||
tag "cpu" | ||
|
||
test("Params: bismark | comprehensive") { | ||
when { | ||
params { | ||
aligner = "bismark" | ||
comprehensive = true | ||
outdir = "$outputDir" | ||
} | ||
} | ||
|
||
then { | ||
// stable_name: All files + folders in ${params.outdir}/ with a stable name | ||
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}']) | ||
// stable_path: All files in ${params.outdir}/ with stable content | ||
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore') | ||
// bam_files: All bam files | ||
def bam_files = getAllFilesFromDir(params.outdir, include: ['**/*.bam']) | ||
assertAll( | ||
{ assert workflow.success}, | ||
{ assert snapshot( | ||
// Number of tasks | ||
workflow.trace.succeeded().size(), | ||
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we tests pipelines on multiple Nextflow versions | ||
removeNextflowVersion("$outputDir/pipeline_info/nf_core_methylseq_software_mqc_versions.yml"), | ||
// All stable path name | ||
stable_name, | ||
// All files with stable contents | ||
stable_path, | ||
// All bam files | ||
bam_files.collect{ file -> [ file.getName(), bam(file.toString()).getReadsMD5() ] } | ||
).match() } | ||
) | ||
} | ||
} | ||
} |
Oops, something went wrong.