This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-archetypes.git
commit 9ce8d7744389077ff0e52b1fb4d07f2fb21ed87b Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Sat Oct 31 11:17:50 2026 +0000 Check the rendered pages in the site-simple archetype IT --- .../src/test/resources/projects/it-basic/verify.groovy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maven-archetype-site-simple/src/test/resources/projects/it-basic/verify.groovy b/maven-archetype-site-simple/src/test/resources/projects/it-basic/verify.groovy new file mode 100644 index 0000000..6341590 --- /dev/null +++ b/maven-archetype-site-simple/src/test/resources/projects/it-basic/verify.groovy @@ -0,0 +1,7 @@ +File site = new File(basedir, 'project/basic-site-simple/target/site') +for (String page in ['index.html', 'markdown.html', 'markdown-velocity.html', 'project-info.html']) { + assert new File(site, page).isFile() : page + ' was not rendered' +} +// Velocity reads a Markdown "##" heading as a comment, so the page only keeps its heading when the template escapes it +String velocity = new File(site, 'markdown-velocity.html').text +assert velocity.contains('<h2>Markdown Format with Velocity works</h2>') : 'the Velocity page lost its heading'
