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 3070e921bfdc348fd1586b92805b8d71342016ad Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Sat Oct 31 11:17:50 2026 +0000 Assert that the simple archetype IT runs its test and renders the site --- .../src/test/resources/projects/it-basic/verify.groovy | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/maven-archetype-simple/src/test/resources/projects/it-basic/verify.groovy b/maven-archetype-simple/src/test/resources/projects/it-basic/verify.groovy new file mode 100644 index 0000000..1af72df --- /dev/null +++ b/maven-archetype-simple/src/test/resources/projects/it-basic/verify.groovy @@ -0,0 +1,12 @@ +import groovy.xml.XmlSlurper + +File project = new File(basedir, 'project/basic-simple') +File report = new File(project, 'target/surefire-reports/TEST-it.pkg.AppTest.xml') +assert report.isFile() : 'surefire did not run it.pkg.AppTest' +def suite = new XmlSlurper().parse(report) +assert [email protected]() == '1' : 'expected one test in it.pkg.AppTest' +assert [email protected]() == '0' +assert [email protected]() == '0' + +assert new File(project, 'target/basic-simple-0.1-SNAPSHOT.jar').isFile() +assert new File(project, 'target/site/index.html').isFile()
