
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@jjades/e2e-autogen
Advanced tools
Google 스프레드시트 기반 시나리오를 Playwright 테스트 스텁 코드로 자동 생성하고, 테스트 실행 결과를 다시 시트에 업데이트하는 CLI 도구
Google Spreadsheet를 단일 소스로 삼아, E2E 테스트의 작성–실행–리포팅까지 자동화하여 QA·개발 리소스를 줄이는 도구입니다.
현장의 E2E 테스트는 다음 이유로 우선순위에서 밀리는 경우가 많습니다.
E2E Autogen은 스프레드시트를 단일 소스로 삼아 아래를 자동화합니다:
Playwright용 유틸/픽스처 제공Mock Socket Server 제공api-recorder 연동: 실제 API/소켓 트래픽을 JSON으로 캡처해 즉시 목 주입npm install -D @dhlab/e2e-autogen
# 또는
yarn add -D @dhlab/e2e-autogen
설치가 정상적으로 완료되었는지 확인해보세요:
# 버전 정보 확인
e2e-autogen --version
# 사용법 확인
e2e-autogen --help
대화형 설정으로 e2e-autogen.config.ts 파일을 자동 생성할 수 있습니다:
yarn e2e-autogen init
이 명령어를 실행하면 다음과 같은 질문들이 나타납니다:
또는 수동으로 e2e-autogen.config.ts 파일을 생성할 수도 있습니다:
import { defineConfig } from '@dhlab/e2e-autogen';
export default defineConfig({
// Google Sheets URL (required)
sheetsUrl: "https://docs.google.com/spreadsheets/d/...",
// 테스트 프레임워크 (optional, default: "playwright")
framework: "playwright",
// 스텁 코드 생성 디렉토리 (optional)
stubOutputFolder: "./playwright/__generated-stub__",
// 테스트 결과 JSON 파일 경로 (optional)
jsonReporterFile: "./playwright/e2e-autogen-reporter.json",
// Google API 인증 파일 경로 (optional)
credentialsFile: "./playwright/.auth/credentials.json",
// Google Sheets 컬럼 매핑 (optional)
googleSheetColumns: {
scenarioId: "A",
scenarioDescription: "B",
uiPath: "C",
action: "D",
expected: "E",
testId: "F",
tag: "G",
comment: "H",
},
});
yarn e2e-autogen generate
./playwright/__generated-stub__ 아래에 스텁 파일들이 생성됩니다.
import { test } from "@playwright/test";
test("[TC-1.1] 질문 입력", async ({ page }) => {
await test.step("[TC-1.1.1] 메인화면 로드 -> 질문 입력창이 정상적으로 표시", async () => {
// ...
});
await test.step("[TC-1.1.2] 질문 입력창에 문자 입력 -> 정상적으로 입력됨", async () => {
// ...
});
});
🛠 작성 팁
⚠️ 주의사항
manual_only 결과를 주입할 수 있습니다.
→ PM이 해당 케이스를 보고 수동 테스트를 진행합니다.🚀 고급 활용
@dhlab/e2e-autogen/playwright에서 제공하는 다양한 fixture를 활용해 반복 코드를 줄이세요.api-recorder로 실제 통신을 녹화한 후, e2e-autogen의 Mock Socket Server에 주입하여 빠르게 모킹할 수 있습니다.E2E Autogen은 테스트 결과를 최적화하기 위해 커스텀 리포트를 제공합니다.
playwright.config.ts에 전용 리포터를 추가하세요.
// playwright.config.ts
import { defineConfig } from "@playwright/test";
export default defineConfig({
reporter: [
["html"],
[
require.resolve("@dhlab/e2e-autogen/playwright/reporter"),
{ outputFile: "./playwright/e2e-autogen-report.json" },
],
],
});
실행 & 시트 업데이트:
# 테스트 실행 + JSON 리포트 생성
yarn playwright test
# 시트 업데이트
yarn e2e-autogen update
# → 결과/코멘트/커버리지가 스프레드시트에 반영
MIT © dhlab-fe
FAQs
Google 스프레드시트 기반 시나리오를 Playwright 테스트 스텁 코드로 자동 생성하고, 테스트 실행 결과를 다시 시트에 업데이트하는 CLI 도구
We found that @jjades/e2e-autogen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.