From 30a72fb696d3e6440323ee70358f8803bf95aa41 Mon Sep 17 00:00:00 2001 From: "Dr. Ernie Prabhakar" <19791+drernie@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:55:14 -0800 Subject: [PATCH] actually writeReadme when testing --- .../nextflow/quilt/QuiltProductTest.groovy | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy b/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy index f31c52f3..b48065a4 100644 --- a/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy +++ b/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy @@ -188,10 +188,19 @@ class QuiltProductTest extends QuiltSpecification { !product.match('temp.txt') } + void 'writeSummarize empty if no files are present'() { + given: + QuiltProduct product = makeProduct('readme=SKIP') + product.pkg.reset() + expect: + !product.match('*.md') + product.writeSummarize() == [] + } + void 'overrides default README with config'() { when: QuiltProduct defaultREADME = makeProduct() - String text = defaultREADME.compileReadme('msg') + String text = defaultREADME.writeReadme('msg') def files = defaultREADME.match('*') then: @@ -202,7 +211,7 @@ class QuiltProductTest extends QuiltSpecification { when: String readme_text = 'hasREADME' QuiltProduct hasREADME = makeProduct("readme=${readme_text}") - text = hasREADME.compileReadme('msg') + text = hasREADME.writeReadme('msg') files = hasREADME.match('*') then: text == readme_text @@ -210,19 +219,11 @@ class QuiltProductTest extends QuiltSpecification { files.size() > 0 } - void 'writeSummarize empty if no files are present'() { - given: - QuiltProduct product = makeProduct('readme=SKIP') - product.pkg.reset() - expect: - !product.match('*.md') - product.writeSummarize() == [] - } void 'should create summarize if files are present'() { String readme_text = 'hasREADME' QuiltProduct product = makeProduct("readme=${readme_text}") - product.compileReadme('msg') + product.writeReadme('msg') product.match('*.md') List quilt_summarize = product.writeSummarize() expect: