diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2019-08-06 21:12:18 -0400 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2019-08-08 16:21:51 -0400 |
commit | 6b410aabc0e0cb740fd24e9a4478882aefea7220 (patch) | |
tree | 914d0f84d8fdaa161214306a70df216768a0785c | |
parent | c4125a8635d0c15db67019e5fa5d84486eadc4d7 (diff) | |
download | couchdb-6b410aabc0e0cb740fd24e9a4478882aefea7220.tar.gz |
Capture EUnit and ExUnit test results for Jenkins
-rw-r--r-- | Jenkinsfile | 38 | ||||
-rw-r--r-- | mix.exs | 1 | ||||
-rw-r--r-- | rebar.config.script | 2 |
3 files changed, 40 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index b2deb8ef8..f37e9bf14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -144,6 +144,9 @@ pipeline { } // withEnv } // steps post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } cleanup { sh 'rm -rf $COUCHDB_IO_LOG_DIR' } @@ -173,6 +176,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -215,6 +223,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -258,6 +271,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -300,6 +318,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -342,6 +365,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -384,6 +412,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -426,6 +459,11 @@ pipeline { unstash 'tarball' sh( script: build_and_test ) } + post { + always { + junit '**/.eunit/*.xml, **/_build/*/lib/couchdbtest/*.xml' + } + } } stage('Build CouchDB packages') { steps { @@ -35,6 +35,7 @@ defmodule CouchDBTest.Mixfile do # Run "mix help deps" to learn about dependencies. defp deps() do [ + {:junit_formatter, "~> 3.0", only: [:dev, :test, :integration]}, {:httpotion, "~> 3.0", only: [:dev, :test, :integration], runtime: false}, {:jiffy, path: Path.expand("src/jiffy", __DIR__)}, {:ibrowse, diff --git a/rebar.config.script b/rebar.config.script index 6445057e7..c38b6e235 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}, |