Comments (3)
Is it possible for you to post some more details? (error message you're facing, elixir version, etc.)
I could confirm the following error with elixir v1.2.6 and tried to fix with the commit (c42dc27), but I'm not sure if it's related or not (sounds like different though).
excoveralls[master*]% mix test
Compiled lib/excoveralls/cover.ex
Compiled lib/excoveralls/local.ex
Compiled lib/excoveralls/stats.ex
Compiled lib/mix/tasks.ex
................................................................................
1) test generate coverage (ExCoveralls.StatsTest)
test/stats_test.exs:78
** (UndefinedFunctionError) undefined function List.Chars.BitString.to_charlist/1
stacktrace:
(elixir) List.Chars.BitString.to_charlist("defmodule Test do\n def test do\n end\nend")
(excoveralls) lib/excoveralls/stats.ex:106: ExCoveralls.Stats.count_lines/1
(excoveralls) lib/excoveralls/stats.ex:64: anonymous fn/2 in ExCoveralls.Stats.generate_coverage/1
(elixir) lib/enum.ex:1088: Enum."-map/2-lists^map/1-0-"/2
test/stats_test.exs:79
.............
2) test get source line count (ExCoveralls.StatsTest)
test/stats_test.exs:66
** (UndefinedFunctionError) undefined function List.Chars.BitString.to_charlist/1
stacktrace:
(elixir) List.Chars.BitString.to_charlist("defmodule Test do\n def test do\n end\nend")
(excoveralls) lib/excoveralls/stats.ex:106: ExCoveralls.Stats.count_lines/1
test/stats_test.exs:67
....
from excoveralls.
@koos42 any updates?
from excoveralls.
We see this as well (I think), it looks like this:
** (File.Error) could not read file "/some/file.ex": no such file or directory
(elixir) lib/file.ex:310: File.read!/1
(excoveralls) lib/excoveralls/stats.ex:120: ExCoveralls.Stats.read_source/1
(excoveralls) lib/excoveralls/stats.ex:102: ExCoveralls.Stats.get_source_line_count/1
(excoveralls) lib/excoveralls/stats.ex:64: anonymous fn/2 in ExCoveralls.Stats.generate_coverage/1
(elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2
(excoveralls) lib/excoveralls/stats.ex:29: ExCoveralls.Stats.report/1
(excoveralls) lib/excoveralls.ex:37: ExCoveralls.execute/2
(mix) lib/mix/tasks/test.ex:273: Mix.Tasks.Test.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/task.ex:348: Mix.Task.run_alias/3
(mix) lib/mix/task.ex:277: Mix.Task.run/2
(excoveralls) lib/mix/tasks.ex:51: Mix.Tasks.Coveralls.do_run/2
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:80: Mix.CLI.run_task/2
(elixir) lib/code.ex:677: Code.require_file/2
Elixir 1.6.4, Excoveralls 0.8.1.
from excoveralls.
Related Issues (20)
- Coveralls is not picking all my files HOT 1
- Coveralls errors out HOT 3
- Github actions fail on scheduled workflows
- Cannot specify subdir with circle
- Is it possible to include HEEX files in the coverage?
- Support --warnings-as-errors option HOT 3
- Reports different results at an umbrella level vs in-app level
- Is there a way to post coverage from Github Actions in parallel mode? HOT 3
- don't ignore `min_coverage` in `mix coveralls.json` HOT 4
- Coveralls reporting does not understand slots
- Story: Please add totals at the bottom of the report for LINES, RELEVANT and MISSED
- Cobertura error when protocols and implementations in codebase HOT 1
- Incompatibility between excoveralls and meck? HOT 4
- Umbrella run ignores config json in root HOT 5
- Protocols fail to consolidate using ExCoveralls HOT 1
- Excoveralls minimum_coverage conflicts with new Elixir changes. Result: Error: Process completed with exit code 3.
- "function ExCoveralls.start/2 is undefined" HOT 3
- Warning in build, CAStore
- Is it possible to export in multiple formats by running the tests once?
- Percentage changed without a reason HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excoveralls.