Skip to content

Commit

Permalink
Update tests and snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
nschcolnicov committed Nov 22, 2024
1 parent e803009 commit c0ce48d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 34 deletions.
8 changes: 1 addition & 7 deletions tests/test.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ nextflow_pipeline {
then {
// stable_name: All files + folders in ${params.outdir}/ with a stable name
// Ignore files with timestamps in their names
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: [
'pipeline_info/*.{html,json,txt}',
'annotated_tables/*.tsv',
'annotated_tables/*.tsv',
'normalized_counts/*.tsv',
'normalized_counts/*.tsv'
])
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')
assertAll(
Expand Down
24 changes: 15 additions & 9 deletions tests/test.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,31 @@
"QC/NACHO/png/Posctrl_linearity_mqc.png",
"QC/NACHO/png/plot_normf_mqc.png",
"annotated_tables",
"annotated_tables/counts_Norm_GEX_ENDO.tsv",
"annotated_tables/counts_Norm_GEX_HK.tsv",
"gene_heatmaps",
"gene_heatmaps/gene_heatmap_mqc.png",
"multiqc",
"multiqc/multiqc_data",
"multiqc/multiqc_data/multiqc.log",
"multiqc/multiqc_data/multiqc_Norm_GEX_ENDO.txt",
"multiqc/multiqc_data/multiqc_Norm_GEX_ENDO_1.txt",
"multiqc/multiqc_data/multiqc_citations.txt",
"multiqc/multiqc_data/multiqc_data.json",
"multiqc/multiqc_data/multiqc_normalized_qc.txt",
"multiqc/multiqc_data/multiqc_normalized_qc_1.txt",
"multiqc/multiqc_data/multiqc_normalized_qc_2.txt",
"multiqc/multiqc_data/multiqc_software_versions.txt",
"multiqc/multiqc_data/multiqc_sources.txt",
"multiqc/multiqc_plots",
"multiqc/multiqc_plots/pdf",
"multiqc/multiqc_plots/pdf/Norm_GEX_ENDO.pdf",
"multiqc/multiqc_plots/pdf/normalized_qc.pdf",
"multiqc/multiqc_plots/png",
"multiqc/multiqc_plots/png/Norm_GEX_ENDO.png",
"multiqc/multiqc_plots/png/normalized_qc.png",
"multiqc/multiqc_plots/svg",
"multiqc/multiqc_plots/svg/Norm_GEX_ENDO.svg",
"multiqc/multiqc_plots/svg/normalized_qc.svg",
"multiqc/multiqc_report.html",
"normalized_counts",
"normalized_counts/normalized_counts.tsv",
"normalized_counts/normalized_counts_wo_HKnorm.tsv",
"pipeline_info",
"pipeline_info/nf_core_pipeline_software_mqc_versions.yml"
],
Expand All @@ -100,16 +105,17 @@
"PCAi_mqc.png:md5,2338d5fe0e447fc74d4969725546c136",
"POSF_vs_NEGF_mqc.png:md5,0e1b5105e68a6e0c51471afce218abdb",
"plot_normf_mqc.png:md5,6ffd3c11f8f5ddfbd3715e1780b10b01",
"multiqc_Norm_GEX_ENDO.txt:md5,215491482edeafbe25c4ef5f3e3b0a70",
"multiqc_Norm_GEX_ENDO_1.txt:md5,37174443be89fecb3d2de05bfa06169a",
"multiqc_citations.txt:md5,4c806e63a283ec1b7e78cdae3a923d4f",
"multiqc_normalized_qc.txt:md5,215491482edeafbe25c4ef5f3e3b0a70",
"multiqc_normalized_qc_1.txt:md5,37174443be89fecb3d2de05bfa06169a",
"multiqc_normalized_qc_2.txt:md5,f3a2391a8d58570568edde41becc96bd",
"multiqc_sources.txt:md5,d2a044df39ce3c6abe5cdc2d67473490"
]
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.10.1"
},
"timestamp": "2024-11-22T14:03:55.044702369"
"timestamp": "2024-11-22T19:30:48.273722019"
}
}
}
8 changes: 1 addition & 7 deletions tests/test_samples.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ nextflow_pipeline {
then {
// stable_name: All files + folders in ${params.outdir}/ with a stable name
// Ignore files with timestamps in their names or with unstable prefix No_HK_
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: [
'pipeline_info/*.{html,json,txt}',
'annotated_tables/*.tsv',
'annotated_tables/*.tsv',
'normalized_counts/*.tsv',
'normalized_counts/*.tsv'
])
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')
assertAll(
Expand Down
8 changes: 6 additions & 2 deletions tests/test_samples.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"QC/NACHO/png/Posctrl_linearity_mqc.png",
"QC/NACHO/png/plot_normf_mqc.png",
"annotated_tables",
"annotated_tables/counts_Norm_GEX_ENDO.tsv",
"annotated_tables/counts_Norm_GEX_HK.tsv",
"gene_heatmaps",
"gene_heatmaps/gene_heatmap_mqc.png",
"multiqc",
Expand All @@ -87,6 +89,8 @@
"multiqc/multiqc_plots/svg/normalized_qc.svg",
"multiqc/multiqc_report.html",
"normalized_counts",
"normalized_counts/normalized_counts.tsv",
"normalized_counts/normalized_counts_wo_HKnorm.tsv",
"pipeline_info",
"pipeline_info/nf_core_pipeline_software_mqc_versions.yml"
],
Expand All @@ -112,6 +116,6 @@
"nf-test": "0.9.0",
"nextflow": "24.10.1"
},
"timestamp": "2024-11-22T14:04:43.919125465"
"timestamp": "2024-11-22T19:31:37.760656977"
}
}
}
8 changes: 1 addition & 7 deletions tests/test_scores.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ nextflow_pipeline {
then {
// stable_name: All files + folders in ${params.outdir}/ with a stable name
// Ignore files with timestamps in their names
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: [
'pipeline_info/*.{html,json,txt}',
'annotated_tables/*.tsv',
'annotated_tables/*.tsv',
'normalized_counts/*.tsv',
'normalized_counts/*.tsv'
])
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')
assertAll(
Expand Down
8 changes: 6 additions & 2 deletions tests/test_scores.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
"QC/NACHO/png/Posctrl_linearity_mqc.png",
"QC/NACHO/png/plot_normf_mqc.png",
"annotated_tables",
"annotated_tables/counts_Norm_GEX_ENDO.tsv",
"annotated_tables/counts_Norm_GEX_HK.tsv",
"gene_heatmaps",
"gene_heatmaps/gene_heatmap_mqc.png",
"gene_scores",
Expand Down Expand Up @@ -109,6 +111,8 @@
"multiqc/multiqc_plots/svg/normalized_qc.svg",
"multiqc/multiqc_report.html",
"normalized_counts",
"normalized_counts/normalized_counts.tsv",
"normalized_counts/normalized_counts_wo_HKnorm.tsv",
"pipeline_info",
"pipeline_info/nf_core_pipeline_software_mqc_versions.yml"
],
Expand Down Expand Up @@ -138,6 +142,6 @@
"nf-test": "0.9.0",
"nextflow": "24.10.1"
},
"timestamp": "2024-11-22T14:06:23.244531229"
"timestamp": "2024-11-22T19:32:36.416585488"
}
}
}

0 comments on commit c0ce48d

Please sign in to comment.