Comments (12)
This is my top priority for this addon, I have a WIP but was waiting for that PR that landed earlier today. That said, I will likely not get to it until July 4 weekend at the earliest.
from ember-cli-code-coverage.
@kategengler do you have a branch we could look at? If I have some free time, I may be able to help out.
from ember-cli-code-coverage.
Just let me know if you want me to take a stab at any of this. So pumped for this addon 😄
from ember-cli-code-coverage.
@rwwagner90 - I did some spike work the other day, but ran out of time to finish the other night (honestly I fell asleep 💤 ). Maybe you could decipher and try to bring it home? https://github.com/kategengler/ember-cli-code-coverage/compare/addon-spike
from ember-cli-code-coverage.
I tested it on one of my addon and it seemed working perfectly 👍
I made some simple changes on my fork regarding tests.
Merging to home should be simple but I am not sure to see all cases and impacts. It seems pretty good to me but I am not mastering addons & hooks and I am sure I miss something ...
@rwjblue I am curious, what is the state of this for you ?
from ember-cli-code-coverage.
@kategengler does the addon spike play nicely with ember-try?
from ember-cli-code-coverage.
@elwayman02 @kategengler I tested it running a ember try:each
and I did not experiment any specific issue
from ember-cli-code-coverage.
I found some incompatibilities between addon-spike implementation and usage of eslint in the covered addon.
When running tests with coverage enabled, ember-cli-eslint fails as described in ember-cli/ember-cli-eslint#56.
I suspect the call to preprocessTree
in included
here. This seams to lead to multiple mergeTrees because of the call to BroccoliMergeTree
here
You can find an example of this on this dedicated branch of my addon
Sadly, I have no idea how to fix that or even where to start. I suppose that we have to find another way to include addon files in preprocessTree
or something similar. But I am afraid that that my knowledge of broccoli and ember-cli is still too light for now 😕
from ember-cli-code-coverage.
👍 Love this addon. Can someone give me a lay of the land for what needs to be done to make this work with addons? (@rwjblue?)
If I can get a high level overview of what needs needs changing or how an addon's structure is different from an app's, I'm happy to take a stab at addon compatibility.
from ember-cli-code-coverage.
I believe that @bmeurant has been working in cleaning up the spike I linked above.
from ember-cli-code-coverage.
@rwjblue yes I did some (very light) cleanup on your initial work (here). The spike basically works (congrats!). But, as said before, I was stuck because of some incompatibilities with ember-cli-eslint (included
call to preprocessTree
is leading to multiple merge trees and this is not supported by ember-cli-eslint.
I have still no good knowledge of broccoli & ember-cli internals and I did not have enough time to go deeper to find an alternative. I take any advice. Or @arjansingh, if you want to investigate further, feel free!
BTW, I see now that I generated a lot of noise here with some rebase/squash on local branches, sorry for that 😕
from ember-cli-code-coverage.
I just submitted #31 (thanks to @EWhite613's work on updating my spike).
Can y'all test that PR out and confirm that all is working well?
from ember-cli-code-coverage.
Related Issues (20)
- TS files are not included in the coverage with `--path` option HOT 2
- Dramatic build slowdown when enabled HOT 3
- Question - Is there a way to fail the test run if the coverage is below a certain threshold?
- Request aborted - BadRequestError seen from v2.0.0-beta.2 HOT 6
- write-coverage errors out with 403
- Seems to break when using the ember-concurrency new api HOT 5
- Unexpected token { error
- [QUERY] Is it possible to generate the coverage for a specific file/spec module (integration) HOT 2
- Issue with migration to v2.0.0
- No coverage report generated when used with @embroider/compat@^2.1.0 HOT 10
- Exclude app files from ember engine? tried with many glob patterns nothing is working..
- Socket timeouts POSTing to /write-coverage when running tests in CI mode HOT 3
- Not respecting "inputSourceMap" field from reported coverage data (fails for .gjs - ember-template-imports) HOT 2
- New release? HOT 10
- Coverage not collected in Embroider >3.1 HOT 6
- Is it possible to get coverage of hbs files with qunits and this coverage tool? HOT 1
- Issues with first-class component templates? HOT 12
- Embroider Tests are verifying that we have no coverage data HOT 1
- Version 2.0.1 not published HOT 1
- Coverage fails in dev mode (ember serve) on 2.0.3 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 ember-cli-code-coverage.