Add a real Chrome trace with snapshot tests

オープン
#28 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
53/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, node.js, typescript
領域
devtools, testing

調査の方向性

Start by reading the existing synthetic test fixtures and tests for overview, insights, tasks, network, shifts, interactions and report; the issue does not name their files. Record a small Chrome trace with a page load and interaction, save it as .json.gz, and add node:test snapshots for each output. Done means the fixture contains no private data and snapshot changes are visible when the trace engine output changes.

索引モデルが issue の本文から書いたものです。

説明

Child of #9.

All test fixtures are synthetic. Dependabot updates @paulirish/trace_engine every day, so CI can pass when the engine output changes in a way the synthetic fixtures do not cover.

Proposal
  • Add a small real trace recorded in Chrome, with a page load and an interaction, as .json.gz. It must not contain private URLs or data.
  • Add snapshot tests with the node:test snapshot support (t.assert.snapshot) for overview, insights, tasks, network, shifts, interactions and report.
  • When a Dependabot update changes the output, the snapshot diff shows the change, and the PR updates the snapshots on purpose.
Open questions
  • What is the size limit for a fixture in the repo? A load of a small test page should be under 1 MB compressed.
  • Which page do we record? A static page in the repo would let anyone record the trace again.
主要言語
TypeScript
スター
15
フォーク
4
平均マージ
1日 17時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ChromeDevTools/trace-engine-cli のほかの issue

ChromeDevTools/trace-engine-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。