You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2019/07/30 18:39:30 UTC

[couchdb] branch junit-reports-and-jenkins-env updated: Save XML reports for EUnit tests as well

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch junit-reports-and-jenkins-env
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/junit-reports-and-jenkins-env by this push:
     new 7194125  Save XML reports for EUnit tests as well
7194125 is described below

commit 7194125053d6215f98d8d5680e316c94b49306a8
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Tue Jul 30 14:38:59 2019 -0400

    Save XML reports for EUnit tests as well
---
 Jenkinsfile         | 1 +
 rebar.config.script | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 83b99c4..1b751d3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -44,6 +44,7 @@ mv ../rpmbuild/RPMS/$(arch)/*rpm ${WORKSPACE}/pkgs/${platform} || true
 mv ../couchdb/*.deb ${WORKSPACE}/pkgs/${platform} || true
 mkdir -p ${WORKSPACE}/test-results/${platform}-${arch}
 mv ../couchdb/_build/*/lib/couchdbtest/*.xml ${WORKSPACE}/test-results/${platform}-${arch}/
+mv ../couchdb/src/*/.eunit/*.xml ${WORKSPACE}/test-results/${platform}-${arch}/
 rm -rf ${builddir} ${COUCHDB_IO_LOG_DIR}
 '''
 
diff --git a/rebar.config.script b/rebar.config.script
index 6445057..c38b6e2 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -156,7 +156,7 @@ AddConfig = [
     {sub_dirs, SubDirs},
     {lib_dirs, ["src"]},
     {erl_opts, [{i, "../"} | ErlOpts]},
-    {eunit_opts, [verbose]},
+    {eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]},
     {plugins, [eunit_plugin]},
     {dialyzer, [
         {plt_location, local},