Comments (10)
@campezzi told me to do this on Slack:
mix test --include remote --cover
That works, and would work around the issue in #47 if test_coverage: [tool: ExCoveralls]
can be configured to generate an HTML report.
from excoveralls.
I believe changing "local" to "html" in this line will do what you want. I'll try to take some time over the weekend to make that configurable via the coveralls.json
file!
from excoveralls.
Maybe running this will work:
MIX_ENV=test mix coveralls.html --include remote
I took a quick look at the code for the excoveralls.html
mix task and it seems to forward its arguments to the test task, so this might be enough.
from excoveralls.
@campezzi Nope.
201 tests, 0 failures, 17 skipped
It would be much more intuitive if excoveralls supported the --include, --exclude, and --only flags.
from excoveralls.
I'm sorry being late to respond. Does it relate to #50?
from excoveralls.
It sounds like #50 may fix this, yah.
from excoveralls.
I just tested it and didn't get this to work (on 0.5.4):
MIX_ENV=test mix coveralls.html --only slow
executes all the tests I have and completely ignores my options.
from excoveralls.
Yah, it's still not working for me either. To run all the coverage I need to comment out this line from my test_helper because I can't specify --include remote
on the command line.
ExUnit.configure(exclude: [:remote])
from excoveralls.
The patch in #50 doesn't quite work. Args goes from ["--include", "remote"]
to [{"--include", nil}]
. See invalid here: http://elixir-lang.org/docs/stable/elixir/OptionParser.html#parse/2
I'm working on a fix.
from excoveralls.
To be honest, it seems like #50 is the reason this doesn't work -- as compared to the previous code in the diff. Fix one thing, break the other, hah.
We could just pass all the args to --cover, but maybe we should be removing the ones that only excoveralls uses.
from excoveralls.
Related Issues (20)
- How to find out by which test selected line is covered by?
- 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
- 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?
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.