Git Product home page Git Product logo

Comments (5)

srowhani avatar srowhani commented on July 23, 2024

I found that /dummy\/(.*)/ or something similar does the trick.

from ember-cli-code-coverage.

RobbieTheWagner avatar RobbieTheWagner commented on July 23, 2024

@alexlafroscia still having this issue?

from ember-cli-code-coverage.

konradjurk avatar konradjurk commented on July 23, 2024

@alexlafroscia I ran into the same issue and were able to resolve it this way:

  1. First change the output directory in your coverage config temporarily, just to make sure it is actually hit (coverage.js has to live under configPath from package.json).

  2. Add a function to the excludes array that prints out the first positional argument which is the file path. This function is called for every file that the addon finds.

    Most paths are unexpectedly different to the ones you see in the IDE (e.g. app file tree is not present, probably because the dummy app is built so dummy/app/router.js becomes dummy/router.js).

    From here you can adjust your excluded files array so it is working as expected :)

from ember-cli-code-coverage.

RobbieTheWagner avatar RobbieTheWagner commented on July 23, 2024

Thanks for the feedback @konradjurk! I think with this workaround, everything should be working as expected. Would you be interested in submitting a PR adding something about setup for addons to the README?

from ember-cli-code-coverage.

RobbieTheWagner avatar RobbieTheWagner commented on July 23, 2024

I believe this should be resolved in the latest version, 1.0.0-beta.2. If it is not, please feel free to reopen!

from ember-cli-code-coverage.

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.