* Add clean database from unittest use.

This commit is contained in:
liyang
2023-05-12 15:57:04 +08:00
parent c1f0855950
commit 9ab4b87790
Vendored
+1 -1
View File
@@ -93,7 +93,7 @@ pipeline {
steps {
container('zentao') {
sh 'apachectl start ; initdb.php ; /apps/zentao/test/ztest batchInit ; /apps/zentao/test/ztest concurrency | tee /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log ; parsehtml.php '
sh 'apachectl start ; initdb.php > /apps/zentao/unittestdb.spl ; /apps/zentao/test/ztest batchInit ; /apps/zentao/test/runtimne/ztf /apps/zentao/module/*/test -C 50 | tee /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log ; parsehtml.php ; initdb /apps/zentao/unittest.sql'
publishHTML (target : [allowMissing: false,alwaysLinkToLastBuild: false,keepAll: true,reportDir: 'coverage',reportFiles: 'index.html',reportName: 'UT Coverage Report',reportTitles: 'UT Coverage Report'])
sh 'pipeline-unittest.sh /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log'
}