GithubHelp home page GithubHelp logo

--include tags about excoveralls HOT 10 CLOSED

parroty avatar parroty commented on July 20, 2024
--include tags

from excoveralls.

Comments (10)

nathany avatar nathany commented on July 20, 2024

@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.

campezzi avatar campezzi commented on July 20, 2024

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.

campezzi avatar campezzi commented on July 20, 2024

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.

nathany avatar nathany commented on July 20, 2024

@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.

parroty avatar parroty commented on July 20, 2024

I'm sorry being late to respond. Does it relate to #50?

from excoveralls.

nathany avatar nathany commented on July 20, 2024

It sounds like #50 may fix this, yah.

from excoveralls.

leifg avatar leifg commented on July 20, 2024

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.

nathany avatar nathany commented on July 20, 2024

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.

nathany avatar nathany commented on July 20, 2024

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.

nathany avatar nathany commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.