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

Rewire doesn't work with cover #28

Open
grant-zukowski-xumo opened this issue Jul 3, 2024 · 0 comments
Open

Rewire doesn't work with cover #28

grant-zukowski-xumo opened this issue Jul 3, 2024 · 0 comments

Comments

@grant-zukowski-xumo
Copy link

grant-zukowski-xumo commented Jul 3, 2024

I've tried using rewire and test coverage but I always get an error on the output of what happened. The cover files get created, and the coverage gets reported, but the full execution fails.

Analysis includes data from imported files
[".../Elixir.CloudWatch.R8837-20673.coverdata"]
** (MatchError) no match of right hand side value: {:error, {:file, <<70, 79, 82, 49, 0, 0, 12, 196, 66, 69, 65, 77, 65, 116, 85, 56, 0, 0, 1, 218, 0, 0, 0, 42, 16, 69, 108, 105, 120, 105, 114, 46, 83, 84, 83, 46, 82, 54, 48, 48, 48, 8, 95, 95, 105, 110, ...>>, :badarg}}
    (mix 1.15.0) lib/mix/tasks/test.coverage.ex:292: anonymous fn/3 in Mix.Tasks.Test.Coverage.html/2
    (elixir 1.15.0) lib/enum.ex:2510: Enum."-reduce/3-lists^foldl/2-0-"/3
    (mix 1.15.0) lib/mix/tasks/test.coverage.ex:291: Mix.Tasks.Test.Coverage.html/2
    (mix 1.15.0) lib/mix/tasks/test.ex:578: Mix.Tasks.Test.do_run/3
    (mix 1.15.0) lib/mix/task.ex:447: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.15.0) lib/mix/task.ex:502: Mix.Task.run_alias/6
    (mix 1.15.0) lib/mix/project.ex:458: Mix.Project.in_project/4
    (elixir 1.15.0) lib/file.ex:1624: File.cd!/2
    (mix 1.15.0) lib/mix/task.ex:604: anonymous fn/4 in Mix.Task.run_in_children_projects/2
    (elixir 1.15.0) lib/enum.ex:2510: Enum."-reduce/3-lists^foldl/2-0-"/3
    (mix 1.15.0) lib/mix/task.ex:603: Mix.Task.run_in_children_projects/2
    (mix 1.15.0) lib/mix/project_stack.ex:237: Mix.ProjectStack.recur/1
    (mix 1.15.0) lib/mix/cli.ex:92: Mix.CLI.run_task/2
    (elixir 1.15.0) lib/code.ex:1432: Code.require_file/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant