CenFun

Results 91 comments of CenFun

Seems that `isolated-vm` project is currently in maintenance mode. It might not support Node 20 anymore, are there any alternatives?

> > Check it out: install-mouse-helper.js > > @nathalizator You want to put the mouse helper into an npm package? Otherwise I can do it. here is https://www.npmjs.com/package/mouse-helper

try using [playwright](https://playwright.dev/) instead of puppeteer. puppeteer can not provide raw v8 coverage data, or using puppeteer-to-istanbul - playwright -> v8-to-istanbul - puppeteer -> [puppeteer-to-istanbul](https://github.com/istanbuljs/puppeteer-to-istanbul)

Yes, puppeteer can provide raw v8 coverage data with option `includeRawScriptCoverage` Is it still not working?

There should be a bug somewhere, it could possibly be a problem with the sourcemap, see this [issue](https://github.com/istanbuljs/v8-to-istanbul/issues/216), but it seems to be hard to fix. Therefore, we have implemented...

@bcoe Thanks for your suggestion. My implementation simply provides a custom coverage report for Playwright, and we don't want to use Istanbul to instrument the source code because it's very...

@AriPerkkio Just sharing my experience how to exclude blank lines and comment lines. - [line-parser.js](https://github.com/cenfun/monocart-formatter/blob/main/packages/formatter/lib/line-parser.js) Detecting blank lines - [comment-parser.js](https://github.com/cenfun/monocart-formatter/blob/main/packages/formatter/lib/comment-parser.js) Detecting comments for line parser BTW, the problem can't be...

this is great, since "canvas" module was so big (65.74 MB) and it's not runtime dependency

Just implemented the code coverage report to [monocart-reporter](https://github.com/cenfun/monocart-reporter) Here is an example repository showing component testing for vue: https://github.com/cenfun/playwright-ct-vue Preview coverage report: https://cenfun.github.io/playwright-ct-vue/coverage/ Using [class-coverage](https://playwright.dev/docs/api/class-coverage) API to collect V8 coerage...

Simply we can submit playwright test results to testrail using [node-testrail-api](https://github.com/rundef/node-testrail-api) example here: https://github.com/cenfun/monocart-reporter-test/tree/main/integrations/testrail ![image](https://user-images.githubusercontent.com/334577/225589326-73aab031-c6f2-4926-ae9d-d1e80c2b440c.png)