Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo and capture extra output from tests #287

Merged
merged 2 commits into from Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,7 +1,7 @@
0.14.6
------
#### Changes
- Survive coveralls maintenance and outagle (#283).
- Survive coveralls maintenance and outage (#283).
- Better handling of coveralls.io errors (ex. 405, 500 status codes).

0.14.5
Expand Down
6 changes: 4 additions & 2 deletions test/mix/tasks_test.exs
Expand Up @@ -63,8 +63,10 @@ defmodule Mix.Tasks.CoverallsTest do
end

test_with_mock "doesn't pass through coveralls args", Runner, [run: fn(_, _) -> nil end] do
Mix.Tasks.Coveralls.run(["--include", "remote", "-x", "--unknown", "value", "--verbose", "-u", "--filter", "x"])
assert(called Runner.run("test", ["--cover", "--include", "remote", "-x", "--unknown", "value"]))
capture_io(fn ->
Mix.Tasks.Coveralls.run(["--include", "remote", "-x", "--unknown", "value", "--verbose", "-u", "--filter", "x"])
assert(called Runner.run("test", ["--cover", "--include", "remote", "-x", "--unknown", "value"]))
end)
end

test_with_mock "detail", Runner, [run: fn(_, _) -> nil end] do
Expand Down