-
Notifications
You must be signed in to change notification settings - Fork 22
/
mix.exs
59 lines (52 loc) · 1.35 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
defmodule FakeServer.Mixfile do
use Mix.Project
def project do
[
app: :fake_server,
version: "2.1.0",
elixir: "~> 1.4",
description: description(),
package: package(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(Mix.env()),
docs: [
groups_for_functions: [
Macros: &(&1[:section] == :macro)
]
],
deps: deps()
]
end
def application do
[applications: [:logger, :cowboy], mod: {FakeServer.Application, []}]
end
defp deps do
[
{:cowboy, "~> 2.5"},
{:poison, ">= 1.0.0"},
{:faker, "~> 0.9", only: :test},
{:ex_doc, "~> 0.19", only: :dev},
{:httpoison, "~> 0.13", only: :test},
{:excoveralls, "~> 0.7", only: :test}
]
end
defp description do
"""
With FakeServer you can create individual HTTP servers for each test case, allowing external requests to be tested without the need for mocks.
"""
end
defp package do
[
name: :fake_server,
maintainers: ["Bernardo Lins"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/bernardolins/fake_server"}
]
end
defp aliases do
[test: "test --no-start"]
end
defp elixirc_paths(:test), do: ["lib", "test/integration/support"]
defp elixirc_paths(_), do: ["lib"]
end