尝试运行任务组合工作服时出现此错误。
** (exit) an exception was raised:
** (MatchError) no match of right hand side value: :error
cover.erl:1580: :cover.do_compile_beam2/5
cover.erl:1480: :cover.do_compile_beam/3
(stdlib) lists.erl:1239: :lists.map/2
cover.erl:2795: anonymous fn/2 in :cover.pmap_spawn/4
cover.erl:585: :cover.call/1
lib/excoveralls/cover.ex:12: ExCoveralls.Cover.compile/1
lib/excoveralls.ex:32: ExCoveralls.start/2
(mix) lib/mix/tasks/test.ex:351: Mix.Tasks.Test.run/1
(mix) lib/mix/task.ex:331: Mix.Task.run_task/3
(mix) lib/mix/task.ex:365: Mix.Task.run_alias/3
(mix) lib/mix/task.ex:292: Mix.Task.run/2
lib/mix/tasks.ex:54: Mix.Tasks.Coveralls.do_run/2
10:03:50.512 [error] Process #PID<0.4329.0> raised an exception
** (MatchError) no match of right hand side value: :error
cover.erl:1580: :cover.do_compile_beam2/5
cover.erl:1480: :cover.do_compile_beam/3
(stdlib) lists.erl:1239: :lists.map/2
cover.erl:2795: anonymous fn/2 in :cover.pmap_spawn/4
我有 3 个以上的应用程序使用相同的工作服设置,并且在所有这些应用程序中都有效。唯一的区别是我没有 HTML,因为它只是 rest api,但即使我尝试删除工作服 html 任务,它也不起作用。在 erlang :cover 中编译似乎有些问题,但我尝试调试它指向正确的目录。
这是我的混合文件:
defmodule Tow.MixProject do
use Mix.Project
def project do
[
app: :tow,
version: "0.1.0",
elixir: "~> 1.8",
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :plug_cowboy],
mod: {Tow.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:phoenix, "~> 1.4"},
{:flow, "~> 0.14"},
{:timex, "~> 3.1"},
{:math, "~> 0.3.0"},
{:plug_cowboy, "~> 2.0"},
{:poison, "~> 3.1"},
{:ecto_sql, "~> 3.0"},
{:mariaex, "~> 0.8"},
{:statistics, "~> 0.5.0"},
{:elixir_uuid, "~> 1.2"},
{:ex_aws, "~> 2.1"},
{:ex_aws_s3, "~> 2.0"},
{:config_tuples, "~> 0.2.0"},
# dev / test
{:benchee, "~> 1.0", only: :dev},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:ex_machina, "~> 2.2.2", only: :test},
{:faker, "~> 0.10", only: :test},
{:excoveralls, "~> 0.10", only: :test}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.load", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end