Skip to content

Commit 30e5c6a

Browse files
committed
Fix tests
1 parent 35ae2ba commit 30e5c6a

File tree

8 files changed

+880
-32
lines changed

8 files changed

+880
-32
lines changed

.nf-test.log

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
Mar-23 21:09:20.741 [main] INFO com.askimed.nf.test.App - nf-test 0.9.4
2-
Mar-23 21:09:20.752 [main] INFO com.askimed.nf.test.App - Arguments: [test, tests/default.nf.test]
3-
Mar-23 21:09:21.729 [main] INFO com.askimed.nf.test.App - Nextflow Version: 25.10.4
4-
Mar-23 21:09:21.731 [main] INFO com.askimed.nf.test.commands.RunTestsCommand - Load config from file /home/nmahfel/nf-training/longraredisease/nf-test.config...
5-
Mar-23 21:09:22.567 [main] INFO com.askimed.nf.test.lang.dependencies.DependencyResolver - Loaded 108 files from directory /home/nmahfel/nf-training/longraredisease in 0.252 sec
6-
Mar-23 21:09:22.568 [main] INFO com.askimed.nf.test.lang.dependencies.DependencyResolver - Found 1 files containing tests.
7-
Mar-23 21:09:22.568 [main] DEBUG com.askimed.nf.test.lang.dependencies.DependencyResolver - Found files: [/home/nmahfel/nf-training/longraredisease/tests/default.nf.test]
8-
Mar-23 21:09:22.695 [main] INFO com.askimed.nf.test.commands.RunTestsCommand - Found 1 tests to execute.
9-
Mar-23 21:09:22.696 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Started test plan
10-
Mar-23 21:09:22.696 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Running testsuite 'Test Workflow main.nf' from file '/home/nmahfel/nf-training/longraredisease/tests/default.nf.test'.
11-
Mar-23 21:09:22.696 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Run test '87a975d0: Longraredisease full test'. type: com.askimed.nf.test.lang.pipeline.PipelineTest
12-
Mar-23 21:16:52.049 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Test '87a975d0: Longraredisease full test' finished. status: PASSED
13-
Mar-23 21:16:52.052 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Testsuite 'Test Workflow main.nf' finished. snapshot file: false, skipped tests: false, failed tests: false
14-
Mar-23 21:16:52.052 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Executed 1 tests. 0 tests failed. Done!
1+
Mar-24 08:55:06.510 [main] INFO com.askimed.nf.test.App - nf-test 0.9.4
2+
Mar-24 08:55:06.521 [main] INFO com.askimed.nf.test.App - Arguments: [test, tests/default.nf.test]
3+
Mar-24 08:55:07.287 [main] INFO com.askimed.nf.test.App - Nextflow Version: 25.10.4
4+
Mar-24 08:55:07.288 [main] INFO com.askimed.nf.test.commands.RunTestsCommand - Load config from file /home/nmahfel/nf-training/longraredisease/nf-test.config...
5+
Mar-24 08:55:08.996 [main] INFO com.askimed.nf.test.lang.dependencies.DependencyResolver - Loaded 109 files from directory /home/nmahfel/nf-training/longraredisease in 0.122 sec
6+
Mar-24 08:55:08.997 [main] INFO com.askimed.nf.test.lang.dependencies.DependencyResolver - Found 1 files containing tests.
7+
Mar-24 08:55:08.997 [main] DEBUG com.askimed.nf.test.lang.dependencies.DependencyResolver - Found files: [/home/nmahfel/nf-training/longraredisease/tests/default.nf.test]
8+
Mar-24 08:55:09.193 [main] INFO com.askimed.nf.test.commands.RunTestsCommand - Found 1 tests to execute.
9+
Mar-24 08:55:09.194 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Started test plan
10+
Mar-24 08:55:09.194 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Running testsuite 'Test pipeline' from file '/home/nmahfel/nf-training/longraredisease/tests/default.nf.test'.
11+
Mar-24 08:55:09.194 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Run test '461a1912: -profile test'. type: com.askimed.nf.test.lang.pipeline.PipelineTest
12+
Mar-24 09:02:14.597 [main] DEBUG com.askimed.nf.test.lang.extensions.SnapshotFile - Init new snapshot file '/home/nmahfel/nf-training/longraredisease/tests/default.nf.test.snap'
13+
Mar-24 09:02:14.600 [main] DEBUG com.askimed.nf.test.lang.extensions.Snapshot - Snapshot '-profile test' not found.
14+
Mar-24 09:02:14.600 [main] DEBUG com.askimed.nf.test.lang.extensions.SnapshotFile - Created snapshot '-profile test'
15+
Mar-24 09:02:23.879 [main] DEBUG com.askimed.nf.test.lang.extensions.SnapshotFile - Wrote snapshots to file '/home/nmahfel/nf-training/longraredisease/tests/default.nf.test.snap'
16+
Mar-24 09:02:23.880 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Test '461a1912: -profile test' finished. status: PASSED
17+
Mar-24 09:02:23.882 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Testsuite 'Test pipeline' finished. snapshot file: true, skipped tests: false, failed tests: false
18+
Mar-24 09:02:23.883 [main] INFO com.askimed.nf.test.core.TestExecutionEngine - Executed 1 tests. 0 tests failed. Done!

conf/test.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ params {
6767
sv = true // Enable structural variant calling
6868
merge_sv = true
6969
snv = true // Enable SNV calling
70-
cnv = false // Enable CNV calling with HiFiCNV if cnv_spectre is false
70+
cnv = false // Enable CNV calling - spectre for ont and hificnv for pacbio
7171
str = true // Enable STR analysis
7272
qc = true // Enable quality control
7373
methyl = true // Enable methylation calling

nextflow.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ params {
1212
use_winnowmap = false
1313
winnowmap_model = null
1414
haplotag_bam = true
15-
trio_analysis = true
15+
trio_analysis = false
1616
filter_targets = false
1717
targets_bed = null
1818
generate_bam_stats = true
1919
generate_coverage_report = true
2020
sv = true
2121
snv = true
22-
cnv = true
22+
cnv = false
2323
str = true
2424
qc = true
2525
methyl = true

nextflow_schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"trio_analysis": {
8989
"type": "boolean",
90-
"default": true,
90+
"default": false,
9191
"description": "Enable trio analysis for SNV calling and phasing.",
9292
"fa_icon": "fas fa-users"
9393
},
@@ -129,7 +129,7 @@
129129
},
130130
"cnv": {
131131
"type": "boolean",
132-
"default": true,
132+
"default": false,
133133
"description": "Enable CNV calling with HiFiCNV if cnv_spectre is false.",
134134
"fa_icon": "fas fa-chart-area"
135135
},

tests/default.nf.test

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ nextflow_pipeline {
1414
}
1515

1616
then {
17-
// Basic success check
18-
assert workflow.success
19-
20-
// Check output directory exists
21-
assert path("$outputDir").exists()
22-
23-
// Check pipeline info directory exists
24-
assert path("$outputDir/pipeline_info").exists()
25-
}
17+
// stable_name: All files + folders in ${params.outdir}/ with a stable name
18+
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
19+
// stable_path: All files in ${params.outdir}/ with stable content
20+
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore')
21+
assertAll(
22+
{ assert workflow.success},
23+
{ assert snapshot(
24+
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we test pipelines on multiple Nextflow versions
25+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_longraredisease_software_mqc_versions.yml"),
26+
// All stable path name, with a relative path
27+
stable_name,
28+
// All files with stable contents
29+
stable_path
30+
).match() })
31+
}
2632
}
2733
}

0 commit comments

Comments
 (0)