본문으로 건너뛰기
Skillpedia
테스트48k · #5972

testdriver-e2e-testing

하는 일

TestDriver는 웹사이트나 애플리케이션이 기대대로 작동하는지 확인하는 자동화 테스트를 만들도록 돕습니다. 실제 사용자가 인터페이스와 상호작용하는 것을 흉내 내고, 버그를 찾아 다시 나타나지 않도록 테스트를 만듭니다.

사용하는 경우

  • ✓웹사이트나 애플리케이션의 자동화 테스트를 작성해야 할 때.
  • ✓기존 방법으로 자동화하기 어려운 사용자 흐름이 있을 때.
  • ✓특정 페이지나 기능이 올바르게 작동하는지 확인하고 싶은 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/testdriver-e2e-testing/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/testdriver-e2e-testing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 웹사이트의 로그인 양식이 작동하는지 확인하는 자동 테스트를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

프로젝트에 TestDriver를 설치하고, 인터페이스가 해야 할 일을 자연어로 설명해 테스트를 작성합니다. TestDriver는 이 테스트를 안전한 환경에서 실행하고 발견된 문제를 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

TestDriver End-to-End Testing

Overview

TestDriver is an AI code reviewer that actually runs your app. It automatically runs every pull request in a real desktop sandbox, finds bugs, and builds regression tests. Tests control browsers and native applications using natural language element descriptions and AI vision, and run as Vitest suites. This skill teaches an agent how to author, run, and debug TestDriver tests.

When to Use This Skill

  • Use when you need to write an end-to-end test for a web or desktop application
  • Use when automating a UI workflow that has no stable selectors (canvas, Electron, native apps)
  • Use when the user asks to verify that a page or flow works ("check if the login page works")
  • Use when debugging a failing TestDriver test

How It Works

Step 1: Set up the project

npx testdriverai init

This scaffolds package.json, example tests, vitest.config.mjs, and a GitHub Actions workflow. The user must set TD_API_KEY in .env (get a key at https://console.testdriver.ai/team).

Step 2: Write a test

Tests are Vitest suites using the TestDriver hooks:

import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";

describe("Login", () => {
  it("signs in successfully", async (context) => {
    const testdriver = TestDriver(context);
    await testdriver.provision.chrome({ url: "https://example.com/login" });

    const email = await testdriver.find("email input field");
    await email.click();
    await testdriver.type("user@example.com");

    const submit = await testdriver.find("Sign In button");
    await submit.click();

    const result = await testdriver.assert("the dashboard is visible");
    expect(result).toBeTruthy();
  });
});

Step 3: Run and iterate

vitest run tests/login.test.mjs

Screenshots are captured automatically before and after every command and saved to .testdriver/screenshots/, named with the source line number for easy debugging.

Examples

Example 1: Testing a desktop (Electron) app

await testdriver.provision.electron({ appPath: "./dist/my-app" });
const menu = await testdriver.find("File menu in the menu bar");
await menu.click();

Example 2: Waiting for slow elements

const done = await testdriver.find("Loading complete indicator", { timeout: 30000 });
await done.click();

Best Practices

  • ✅ Use specific element descriptions ("blue Sign In button in the header", not "button")
  • ✅ Set both testTimeout and hookTimeout to 900000 in vitest.config.mjs
  • ✅ Add assert() calls for verifiable pass/fail conditions
  • ✅ Always await every TestDriver call
  • ❌ Do not use npx vitest; run vitest run directly
  • ❌ Do not rely on CSS selectors; TestDriver locates elements visually

Limitations

  • Requires a TestDriver API key (TD_API_KEY) and network access to provision sandboxes.
  • Only works with Vitest as the test runner.
  • This skill does not replace environment-specific validation, testing, or expert review.

Security & Safety Notes

  • npx testdriverai init writes project files to the current directory; run it only in a project you intend to modify.
  • The TD_API_KEY credential belongs in .env (gitignored by the scaffold). Never commit it.
  • Tests execute inside an isolated remote sandbox, not on the local machine.

Common Pitfalls

  • Problem: Cleanup hooks fail with a 10s timeout. Solution: Set hookTimeout: 900000 in vitest.config.mjs; sandbox teardown and recording uploads take longer than Vitest's default.
  • Problem: Scrolling does nothing. Solution: An input field has focus. Press Escape or click the page background first, then scroll.

Related Skills

  • @webapp-testing - Playwright-based alternative for local web apps with stable DOM selectors
자주 묻는 질문

사용하려면 특별한 키가 필요한가요?

네, TestDriver API 키가 필요합니다. 웹사이트에서 발급받아 프로젝트에 안전하게 설정할 수 있습니다.

테스트는 어디에서 실행되나요?

테스트는 로컬 컴퓨터가 아니라 클라우드의 안전하고 격리된 환경에서 실행되므로 안전합니다.

어떤 종류의 애플리케이션에 쓸 수 있나요?

웹과 데스크톱 애플리케이션을 위해 설계되었으며, 인터페이스 요소에 찾기 쉬운 식별자가 없을 때 특히 유용합니다.

상세 정보

작성자의 원본 설명

Build E2E tests with TestDriver.ai, the AI code reviewer that runs every pull request in a real desktop sandbox, finds bugs, and builds regression tests

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5972
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬