CenFun
CenFun
I'm not sure what the problem is, but if you're using Playwright, you might try this custom reporter, which supports generating coverage reports. https://github.com/cenfun/monocart-reporter?#global-coverage-report
@snake-py Yes, the Istanbul ecosystem depends not only on `istanbul-lib-instrument` but also on `istanbul-lib-source-maps` and `istanbul-lib-coverage`. It is difficult to determine which one is causing the issue. In fact, I...
 Unfortunately, I can't create my account in my region.
@agoldis thanks, yes, but I currently don't have a bank account for that, and I don't know anyone else in other regions.
试了一下,ctrl+c 杀进程,好像不行,官方的html报告也没有,你确定不是之前的html缓存? 如果是点停止按钮,我不知道你说的是在哪的停止,我得看下能不能重现 如果从一般情况来说,进程都终止了,是不可能继续运行任何代码的,难道是实时生成的报告?
我也是测试之前删除html的文件夹,ctrl+c后并没有产生任何html的文件 - 一次ctrl+c后输入y终止试过 - 连续多次ctrl+c终止也试过 不知道你用的什么playwright版本和操作系统,还有nodejs版本,还有用的什么终端,比如cmd(是否开启管理员模式)?不知道和这些有没有关系 要不,你把你这个简单例子提交到一个仓库吧,我clone下来按照你的步骤试试 如果能重现,应该追踪html的实现方式,谢谢
看起来好像真的可以,你这个仓库,我按ctrl+c就立即显示`To open last HTML report run`说明已经触发了生成报告 我研究一下,谢谢这个例子
然后,我增加了'monocart-reporter'好像也可以触发,只是稍微慢一点,要不你也试试? ```sh Running 3 tests using 1 worker ✘ 1 [debug] › test-1.spec.ts:3:5 › test0 (727ms) 终止批处理操作吗(Y/N)? 1 interrupted [debug] › test-1.spec.ts:3:5 › test0 ─────────────────────────────────────────────────────────── 2 did not run [MR]...
嗯,谢谢,我也会继续研究一下,感觉还是执行时间限制的问题,如果工作量大,就来不及执行所有的任务
Seems it is same with this issue: https://github.com/cenfun/monocart-reporter/issues/49 Basically because the path is too long on Windows, see [maximum-file-path-limitation](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry) What is your OS? 1, First, I can NOT reproduce it...