Skip to content
On this page

Playwright

Title
Playwright
Category
Tool Chain
Tags
Aliases
Playwright
Related
Created
last year
Updated
last year

Playwright 란?

장점

  • Any browser / Any platform / One API
    • Cross-browser
    • Cross-platform
    • Cross-language
    • Test Mobile Web
      • Cypress는 모바일 환경을 제공하려는 움직임이 없다.
  • Full isolation
    • 개별 테스트마다 브라우저 컨텍스트를 생성한다.
  • Powerful Tooling
    • Codegen : 브라우저에서의 작업을 기록하고 테스트를 자동 생성

설치

sh
npm init playwright@latest
# 또는
yarn create playwright
npm init playwright@latest
# 또는
yarn create playwright

실행

sh
npx playwright test
# 또는
yarn playwright test
npx playwright test
# 또는
yarn playwright test

테스트 리포트

sh
npx playwright show-report
# 또는
yarn playwright show-report
npx playwright show-report
# 또는
yarn playwright show-report

References

Who uses?

Released under the MIT License.