-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next release #30
Next release #30
Conversation
Warn user when the .coverage.json file is malformated
…fault_client_side_exclusions
Current coverage is 75.96% (diff: 76.01%)@@ master #30 diff @@
==========================================
Files 20 22 +2
Lines 658 774 +116
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 494 588 +94
- Misses 164 186 +22
Partials 0 0
|
"**/.npm/package/node_modules/**", | ||
"**/web.browser/packages/**", | ||
"**/.?*/**", | ||
"**/packages/!(local-test_?*.js)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The glob pattern **/.npm/package/node_modules/**
is already catched by **/.?*/**
, which excludes any hidden folder, but does not cover node_modules
folder in a meteor app (in a meteor app, the used NPM modules are installed at node_modules
, not .npm/package/node_modules
), and that's why I set it up as **/node_modules/**
. I'm developing a meteor app with angular2-meteor
, and all the NPM packages are saved to node_modules/**
, so the current glob pattern presumably will not catch it (not tested yet, I'm focused on meteor package testing right now).
**/web.browser/packages/**
is already catched by **/packages/!(local-test_?*.js)
, except the last one will exclude the compiled & run test file, which it's needed to traverse the tested file(s) through its source map.
Finally, the node_modules
exclusion should be done in both, client and server.
I released yesterday to have something to discuss, so sorry for regressions. Looks like |
"test:packages-coverage": "spacejam test-packages --driver-package practicalmeteor:mocha-console-runner --coverage out_lcovonly" | ||
|
||
[PCKGS] | ||
"test": "spacejam test-packages ./ --coverage out_lcovonly --driver-package practicalmeteor:mocha-console-runner", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{Install spacejam
as a globally available NPM package and execute spacejam test...
} OR {install it as a local NPM dev-dependency and execute node_modules/.bin/spacejam test...
or node_modules/spacejam/bin/spacejam test...
or better, $(meteor npm bin)/spacejam test...
}, but not mix both 😉
Otherwise, users will have to add the binaries path to their $PATH
environment variable in some way, like export PATH="$PATH:./node_modules/.bin"
or export PATH="$PATH:./node_modules/spacejam/bin"
to get the package.json
script commands working.
Some findings:
Any idea about what could be happening here? More on this: I've redirected the output of the server console to text files and made a diff which shows:
|
You're right. I noticed that before reading your answer, and did it that way. Let me know what you think about the algorithm. It applies a lot of changes, but better IMO.
I apologize if I explained bad. I was wondering how the coverage gets re-calc after rerunning the tests (the coverage-watch feature you mention in the |
I don't follow you: there is no algorithm that creates reports on watch test ! meteor-coverage doesn't know that tests are done and can't produce reports by itself. |
Ok, I'll see what's happening here then. Thank you very much 😉 |
…s where not reliable + lint + still a bug with client coverage that is not correcty exported in reports
Don't know when you plan to release v1.0.0, but I've found some more SourceMap issues that already fixed but not commited yet in a new PR, and still investigating the issues you comment on merged PR #33 because I'm facing them right now. IMO would be desirable to have them all fixed before releasing v1.0.0 😊. Just letting you know about my intentions to fix these 🪲🪲🪲 and their existence. I'm currently working on them. |
I pushed meteor-coverage-app-exemple with the current branch and it failed a little bit, so I dont plan to release before both meteor-coverage and meteor-coverage-app-exemple are green. Anyway with your pull request all files are a lot better mapped to real files, so again thanks you very much for your awesome work. We can release the next week maybe ? |
I'm giving my best effort to fix this issue definitely ASAP 😉 , but it's a fact that I can't fix what I don't understand yet 😇 .
Thanks to you. You've made this awesome package. I'm only helping to improve it a bit.
I tested serut/meteor-coverage-app-exemple for first time. The commands I've run are the same as in
I saw some Let's go with another issue: if I exec the following commands inside the
This is very weird. The difference that surely makes those files missing in the reports is that (1) shows Is this what you commented on PR #33? Any idea of what could be happening here? |
…on and pkg quantity)
[PCKGS] | ||
"test": "spacejam-mocha test-packages ./ --coverage out_lcovonly ", | ||
"test:watch": "meteor npm run lint:fix & meteor npm run test:packages-coverage-watch", | ||
"test:packages-coverage-watch": "meteor test-packages --driver-package practicalmeteor:mocha --settings settings.coverage.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just discovered that there exist a shorten form for meteor test-packages --driver-package practicalmeteor:mocha ...
too: meteor-mocha ...
. 🤘
spacejam-mocha test-packages --coverage out_lcovonly
is wrong, it should be spacejam-mocha --coverage out_lcovonly
.
According to the spacejam
code:
spacejam-mocha
=spacejam test-packages --driver-package=practicalmeteor:mocha-console-runner "$@"
meteor-mocha
=meteor test-packages --driver-package=practicalmeteor:mocha "$@"
The two short forms can only be used when testing packages.
Sorry, moved this comment to its own issue #35 . |
…remap. Allow typescript users to remap their coverage.
@serut You merged the code of the branch EDIT: I'll start fixing that checklist tomorrow. I faced the timeout before, but it's due to an error, remap is fast. |
…at we had before. more aggressive way than #36
Got some ETA for this? |
Very soon ! |
* some es5 to es6, coverage improvement and fix script commands * remove legacy code and fix readme info * revert handlers export * don't run ghost test * set spacejam as devdep * fix script commands with new spacejam syntax
My bad, something is wrong with the default
coverage.json
file now.Otherwise, it looks stable so far.