Tagged articles
5 articles
Page 1 of 1
大转转FE
大转转FE
Feb 10, 2025 · Fundamentals

Why Frontend Coverage Reports Were Wrong and How NYC Fixed Them

This article analyzes the shortcomings of a custom Istanbul-based code coverage pipeline for a Vue frontend, explains why instrumented line numbers were inaccurate, and presents a revised solution using NYC to generate reliable incremental coverage reports with detailed implementation steps and configuration examples.

InstrumentationIstanbulcode coverage
0 likes · 19 min read
Why Frontend Coverage Reports Were Wrong and How NYC Fixed Them
转转QA
转转QA
Mar 14, 2024 · Frontend Development

Implementing Incremental Code Coverage for Frontend Projects Using Istanbul

This article describes how the ZhaiZhai team designed and built an incremental code‑coverage solution for frontend projects, covering tool selection, instrumentation, data collection, reporting, handling challenges, and future improvements to improve test efficiency and software quality.

Istanbulcode coverageincremental testing
0 likes · 15 min read
Implementing Incremental Code Coverage for Frontend Projects Using Istanbul
Youzan Coder
Youzan Coder
Sep 25, 2019 · Frontend Development

Design and Implementation of a Front-End Integration Test Coverage Tool

The project implements a front‑end integration test coverage tool that instruments client code with a Babel plugin and server code with istanbul‑middleware, collects real‑time line/branch data via a Chrome extension and timed uploads, stores versioned results on a coverage server, and visualizes incremental coverage dashboards, providing an objective quality gate and achieving over 80 % incremental line coverage in production.

InstrumentationIstanbulNode.js
0 likes · 10 min read
Design and Implementation of a Front-End Integration Test Coverage Tool
Node Underground
Node Underground
Dec 15, 2015 · Backend Development

Mastering Multi‑Process Code Coverage in Node.js with Istanbul

Learn how to achieve comprehensive code coverage for multi‑process Node.js applications by using Istanbul, instrumenting child processes, writing Mocha tests, and merging coverage reports, with detailed examples of master‑worker RPC, custom fork hacks, and package.json scripts for automated testing.

IstanbulNode.jscode coverage
0 likes · 12 min read
Mastering Multi‑Process Code Coverage in Node.js with Istanbul