From e4701b2152b46190a94cb55a69c7bbd29736e1d2 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 23:39:04 +0900 Subject: [PATCH] =?UTF-8?q?docs(testing):=20e2e=20fixture=20build=EB=A5=BC?= =?UTF-8?q?=20=EC=8B=A4=ED=96=89=20=ED=95=98=EB=82=98=EC=97=90=20=ED=95=9C?= =?UTF-8?q?=20=EB=B2=88=20=EB=A7=8C=EB=93=A0=EB=8B=A4=EA=B3=A0=20=EC=A0=81?= =?UTF-8?q?=EB=8A=94=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit c6d7f43a가 바꾼 동작(브라우저 project마다가 아니라 e2e 실행 하나에 한 번 build, 공유 폴더가 없으면 예전처럼 부를 때마다 사본)을 시험 분류 문서에 적는다. spec을 새로 쓰는 사람이 beforeAll의 build가 공유된다는 것을 알아야 build 폴더에 쓰는 시험을 만들지 않는다. --- docs/testing/taxonomy.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/testing/taxonomy.md b/docs/testing/taxonomy.md index 5a61bea3..9ac345b1 100644 --- a/docs/testing/taxonomy.md +++ b/docs/testing/taxonomy.md @@ -60,6 +60,13 @@ runner는 gitignore된 `src/.generated/` 제품 index를 먼저 직접 지정할 때만 모은다(`test:system`이 그렇게 한다). 그래서 맨 `vitest` 실행은 CI runner suite를 시작하지 않는다. +저장소 사본을 build하는 e2e spec(fixture build)은 e2e 실행 하나에 한 번만 build한다. +`playwright.config.ts`의 global setup이 공유 폴더를 만들고, 브라우저 project 셋 가운데 +그 build에 처음 닿은 worker만 build한다. 나머지 worker는 그 결과를 기다려 쓴다 +(`tests/e2e/support/shared-fixture-builds.ts`). 공유 폴더가 없는 실행(Vitest 시험, 다른 +Playwright 설정)은 부를 때마다 자기 사본을 만든다. 다른 project가 같은 폴더를 쓰므로 +시험은 build 폴더에 쓰지 않는다. 사본을 고치는 일은 build 전의 `edit`에서만 한다. + system suite는 추가로 `scripts/check-system-test-prerequisites.ts`를 돌린다. CI runner host가 필요한 Linux 기능을 갖추지 않으면 전제 조건 보고서 하나를 내고 실패한다.