diff options
author | Garren Smith <garren.smith@gmail.com> | 2019-01-30 15:52:04 +0200 |
---|---|---|
committer | garren smith <garren.smith@gmail.com> | 2019-01-31 18:43:29 +0200 |
commit | 09886162bfb2e7ac81671d91bd08b6cbfdcf0683 (patch) | |
tree | c42a6a58619104416b226684dbe3d00dba32e1c0 | |
parent | c6cd924bdee931ff5acb05d83426c06383d30e44 (diff) | |
download | couchdb-09886162bfb2e7ac81671d91bd08b6cbfdcf0683.tar.gz |
Add junit formatter
Add the junit formatter so that Jenkins can read the elixir tests
-rw-r--r-- | test/elixir/mix.exs | 3 | ||||
-rw-r--r-- | test/elixir/mix.lock | 1 | ||||
-rw-r--r-- | test/elixir/test/test_helper.exs | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/test/elixir/mix.exs b/test/elixir/mix.exs index 37ea47910..f04038ef3 100644 --- a/test/elixir/mix.exs +++ b/test/elixir/mix.exs @@ -29,7 +29,8 @@ defmodule Foo.Mixfile do # {:dep_from_hexpm, "~> 0.3.0"}, {:httpotion, "~> 3.0"}, {:jiffy, "~> 0.15.2"}, - {:credo, "~> 1.0.0", only: [:dev, :test], runtime: false} + {:credo, "~> 1.0.0", only: [:dev, :test], runtime: false}, + {:junit_formatter, "~> 3.0", only: [:test]} # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}, ] end diff --git a/test/elixir/mix.lock b/test/elixir/mix.lock index 0585a17be..0fc391a92 100644 --- a/test/elixir/mix.lock +++ b/test/elixir/mix.lock @@ -5,4 +5,5 @@ "ibrowse": {:hex, :ibrowse, "4.4.1", "2b7d0637b0f8b9b4182de4bd0f2e826a4da2c9b04898b6e15659ba921a8d6ec2", [:rebar3], [], "hexpm"}, "jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"}, "jiffy": {:hex, :jiffy, "0.15.2", "de266c390111fd4ea28b9302f0bc3d7472468f3b8e0aceabfbefa26d08cd73b7", [:rebar3], [], "hexpm"}, + "junit_formatter": {:hex, :junit_formatter, "3.0.0", "13950d944dbd295da7d8cc4798b8faee808a8bb9b637c88069954eac078ac9da", [:mix], [], "hexpm"}, } diff --git a/test/elixir/test/test_helper.exs b/test/elixir/test/test_helper.exs index d6843eb21..b654f2548 100644 --- a/test/elixir/test/test_helper.exs +++ b/test/elixir/test/test_helper.exs @@ -1,3 +1,3 @@ -ExUnit.configure(exclude: [pending: true]) +ExUnit.configure(exclude: [pending: true], formatters: [JUnitFormatter, ExUnit.CLIFormatter]) ExUnit.start() Code.require_file("partition_helpers.exs", __DIR__) |