Comments (7)
Would be really awesome, also to integrate with node-coveralls
Is mocha-phantomjs
up for the task?
from component-test.
@Swatinem idk if mocha-phantomjs will support it. setting that up on one my apps is on my todo list. if it's not, i plan on making it -- haha.
from component-test.
It’s been ages since I worked with mocha-phantomjs
myself.
https://github.com/metaskills/mocha-phantomjs#jsoncov-reporter
Well there is this. No idea if that can easily be integrated with https://github.com/StevenLooman/mocha-lcov-reporter, to be used by https://github.com/cainus/node-coveralls though.
from component-test.
Code coverage would be awesome.
from component-test.
+1
My current test harness uses CoverJS, but I would like to switch over to component-test because of how nicely it packages all these things together. :)
from component-test.
So I have played with this a bit and come up with: https://github.com/Swatinem/component-istanbul
This is just a small module that pipes files through istanbul for instrumentation.
Then you can use the extremely ugly command line to get a report:
$ mkdir -p coverage && component test phantom -R node_modules/component-istanbul/reporter.js > coverage/coverage.json && istanbul report
Comments welcome :-)
(oh, and you need the latest PR to have an uptodate mocha-phantomjs)
from component-test.
With my latest PR, you can just pass '--coverage coverage/coverage.json' and it will write to that file. I’m quite happy with that now.
from component-test.
Related Issues (20)
- use suite.title for page title HOT 4
- Bring your own mocha.html HOT 2
- anyway to change the default mocha.html ? HOT 1
- server returns wrong stuff when build.js or build.css is missing
- return script errors from sauce labs and close connection
- Add --tunnel option to component test <browser>
- build before testing HOT 6
- fix window.onerror for IE9
- investigate saucelabs test inconsistencies HOT 2
- add yields/wd-browser
- FYI: I set free component-test name HOT 1
- Feature Request: Support Folders for Test Scripts HOT 4
- integrate yields/gravy HOT 2
- travis.ci testing is confusing/doesn't work for projects that don't have build.js committed
- allow custom build dirs
- options for mocha
- `component-test phantom` doesn't work on Windows
- Variables with the same name clash between test files
- Clearly document you are using localtunnel.me and not saucelabs connect HOT 1
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 component-test.