Packages
An ExUnit.Formatter that produces an XML report of the tests run in the project _build dir. It is a good fit with Jenkins test reporting plugin, for example.
Current section
Files
Jump to
Current section
Files
junit_formatter
mix.exs
mix.exs
defmodule Formatter.Mixfile do
use Mix.Project
@version "3.0.1"
def project do
[
app: :junit_formatter,
version: @version,
elixir: "~> 1.5",
deps: deps(),
package: package(),
consolidate_protocols: Mix.env() != :test,
description: description(),
name: "JUnit Formatter",
test_coverage: [tool: ExCoveralls],
docs: [
extras: [
"README.md": [title: "Overview"],
"CHANGELOG.md": [title: "Changelog"]
],
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/victorolinasc/junit-formatter"
]
]
end
def application do
[applications: [:logger]]
end
defp deps do
[
{:earmark, "~> 1.3", only: :dev},
{:ex_doc, "~> 0.20", only: :dev, runtime: false},
{:excoveralls, "~> 0.11", only: :test},
{:exjsx, "~> 4.0", only: :test, override: true},
{:credo, "~> 1.1.0", only: [:dev, :test]},
{:sweet_xml, "~> 0.6", only: :test}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
maintainers: ["Victor Nascimento"],
licenses: ["Apache 2.0"],
links: %{
"Github" => "https://github.com/victorolinasc/junit-formatter",
"docs" => "http://hexdocs.pm/junit_formatter/"
}
]
end
defp description do
"""
An ExUnit.Formatter that produces an XML report of the tests run in the project _build dir.
It is a good fit with Jenkins test reporting plugin, for example.
"""
end
end