-
Notifications
You must be signed in to change notification settings - Fork 12
/
mix.exs
140 lines (133 loc) · 3.73 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
defmodule Patch.MixProject do
use Mix.Project
def project do
[
app: :patch,
version: "0.14.0",
elixir: "~> 1.7",
erlc_paths: erlc_paths(Mix.env()),
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
# Specifies which erlang paths to compile per environment
defp erlc_paths(:test), do: ["test/support"]
defp erlc_paths(_), do: []
# Specifies which elixir paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
name: "Patch",
extras: [
"README.md",
"pages/cheatsheet.cheatmd",
"pages/super-powers.md",
"pages/guide-book/01-introduction.md",
"pages/guide-book/02-patching.md",
"pages/guide-book/03-mock-values.md",
"pages/guide-book/04-spies-and-fakes.md",
"pages/guide-book/05-processes.md",
"CHANGELOG.md"
],
groups_for_extras: [
"Guide Book": [
"pages/guide-book/01-introduction.md",
"pages/guide-book/02-patching.md",
"pages/guide-book/03-mock-values.md",
"pages/guide-book/04-spies-and-fakes.md",
"pages/guide-book/05-processes.md"
]
],
groups_for_modules: [
"Developer Interface": [
Patch
],
Listener: [
Patch.Listener,
Patch.Listener.Supervisor
],
Mock: [
Patch.Mock,
Patch.Mock.History,
Patch.Mock.History.Tagged,
Patch.Mock.Naming,
Patch.Mock.Server,
Patch.Mock.Supervisor
],
"Mock Code": [
Patch.Mock.Code,
Patch.Mock.Code.Freezer,
Patch.Mock.Code.Generate,
Patch.Mock.Code.Query,
Patch.Mock.Code.Transform,
Patch.Mock.Code.Unit
],
"Mock Code Generators": [
Patch.Mock.Code.Generators.Delegate,
Patch.Mock.Code.Generators.Facade,
Patch.Mock.Code.Generators.Frozen,
Patch.Mock.Code.Generators.Original
],
"Mock Code Queries": [
Patch.Mock.Code.Queries.Exports,
Patch.Mock.Code.Queries.Functions
],
"Mock Code Transforms": [
Patch.Mock.Code.Transforms.Clean,
Patch.Mock.Code.Transforms.Export,
Patch.Mock.Code.Transforms.Filter,
Patch.Mock.Code.Transforms.Remote,
Patch.Mock.Code.Transforms.Rename,
Patch.Mock.Code.Transforms.Reroute
],
"Mock Values": [
Patch.Mock.Value,
Patch.Mock.Values.Callable,
Patch.Mock.Values.CallableStack,
Patch.Mock.Values.Cycle,
Patch.Mock.Values.Raises,
Patch.Mock.Values.Scalar,
Patch.Mock.Values.Sequence,
Patch.Mock.Values.Throws
],
Utilities: [
Patch.Access,
Patch.Apply,
Patch.Assertions,
Patch.Macro,
Patch.Reflection,
Patch.Supervisor
]
],
main: "readme",
source_ref: "master",
source_url: "https://github.com/ihumanable/patch"
]
end
defp package() do
[
description: "Ergonomic Mocking for Elixir Unit Testing",
licenses: ["MIT"],
maintainers: ["Matt Nowack"],
links: %{
"GitHub" => "https://github.com/ihumanable/patch"
}
]
end
end