REPO STORY / 레포 이야기
antiwork/shortest
자연어로 E2E 테스트를 작성하고 AI가 실행하는 테스팅 프레임워크
01 / 뭐 하는 레포인가요?
어떤 일을
도와주나요?
복잡한 UI 테스트 코드를 쓰지 말고, 테스트하고 싶은 행동을 자연어로 설명하면 Claude AI가 Playwright 브라우저를 조종해서 실행해줍니다. 마치 QA엔지니어에게 "로그인 후 설정을 변경해줄래?"라고 말하는 것처럼, 프레임워크가 그 지시를 이해하고 자동으로 클릭·입력을 수행합니다.
- 자연어 기반 E2E 테스트 작성
- AI 기반 동적 브라우저 제어
- GitHub 2FA 및 이메일 검증 통합
코드 기반 테스트(Playwright, Cypress)와 달리 자연어로 테스트 의도를 표현하고 Claude AI가 자동으로 UI 상호작용을 생성·적응시켜 유지보수와 스케일링이 용이합니다.
02 / 내 상황에 맞을까?
이럴 때 써요,
선택 전에 확인해요.
이럴 때 써요
- 복잡한 사용자 흐름(로그인→결제→확인)을 자연어로 테스트하고 유지보수 비용 절감
- GitHub 2FA, 메일 검증 등 다단계 인증 테스트 자동화
- API 응답 검증을 자연언어로 작성해 테스트 코드 가독성 향상
이럴 땐 다시 확인해요
아래 준비 조건이 맞지 않으면 먼저 환경을 준비해 주세요.
- Node.js 및 npm/pnpm
- Anthropic API 키
- 테스트할 애플리케이션
깃밥 한국어 요약의 활용 예와 준비 조건을 옮겼어요.
03 / 시작하려면
첫 걸음,
차근차근.
준비할 것
- Node.js 및 npm/pnpm
- Anthropic API 키
- 테스트할 애플리케이션
- 프로젝트에 Shortest 초기화
npx @antiwork/shortest init
shortest.config.ts설정 파일에서 baseUrl 및 API 키 확인
import type { ShortestConfig } from "@antiwork/shortest";
export default {
headless: false,
baseUrl: "http://localhost:3000",
testPattern: "**/*.test.ts",
ai: {
provider: "anthropic",
},
} satisfies ShortestConfig;
.env.local에 Anthropic API 키 설정
ANTHROPIC_API_KEY=your_api_key
- 테스트 파일 작성 (예:
app/login.test.ts)
import { shortest } from "@antiwork/shortest";
shortest("Login to the app using email and password", {
username: process.env.GITHUB_USERNAME,
password: process.env.GITHUB_PASSWORD,
});
- 테스트 실행
pnpm shortest
- 특정 파일 또는 헤드리스 모드로 실행
pnpm shortest login.test.ts --headless
명령은 기존 요약에 적힌 그대로예요. 실행하거나 설치 성공을 검증하지 않았어요. 공식 소요시간 미제시.
04 / 이웃 레포
어떤 레포와 연결될까요?
비교 연결망의 정적 스냅샷 · 관계 종류와 기록된 근거예요. 현재 공개된 레포만 표시해요.
microsoft/playwright ↗
shortest 요약에 playwright 대안·비교 명시: "**대안**: Playwright(저수준 제어력), Cypress(직관적 문법), Selenium(느림) 대비 AI 기반 유연성과 유지보수 편의성 우수."
깃밥 한국어 요약 (antiwork/shortest)
관계 출처 원문 ↗e2e-inc/e2e ↗
구체 GitHub 토픽 공유: e2e-testing,end-to-end-testing,playwright,test-automation,testing
repos.topics 교집합 (e2e-testing,end-to-end-testing,playwright,test-automation,testing)
연결망 스냅샷 원자료 ↗willlzl/Perpetual ↗
구체 GitHub 토픽 공유: e2e-testing,end-to-end-testing,playwright,testing
repos.topics 교집합 (e2e-testing,end-to-end-testing,playwright,testing)
연결망 스냅샷 원자료 ↗TestSprite/testsprite-cli ↗
구체 GitHub 토픽 공유: e2e-testing,playwright,test-automation,testing
repos.topics 교집합 (e2e-testing,playwright,test-automation,testing)
연결망 스냅샷 원자료 ↗wix/Detox ↗
구체 GitHub 토픽 공유: e2e-tests,test-automation,testing
repos.topics 교집합 (e2e-tests,test-automation,testing)
연결망 스냅샷 원자료 ↗mubaidr/gem-team ↗
구체 GitHub 토픽 공유: e2e-testing,playwright,testing
repos.topics 교집합 (e2e-testing,playwright,testing)
연결망 스냅샷 원자료 ↗