GithubHelp home page GithubHelp logo

onejaehyun / visual-regression-test-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bluestragglr/visual-regression-test-demo

0.0 0.0 0.0 477 KB

2022년 1월 우아한 테크세미나 시각적 회귀 테스트 데모자료

HTML 22.58% CSS 9.13% TypeScript 52.63% JavaScript 15.66%

visual-regression-test-demo's Introduction

2022년 1월 우아한 테크세미나 데모자료

이 프로젝트는 react-create-app template --typescript 로 생성된 앱에 jest와 puppeteer를 이용해 시각적 회귀 테스트를 작성 해 둔 데모 프로젝트입니다.

클론 후 아래 명령어들을 실행해서 시각적 회귀 테스트를 수행할 수 있습니다.

본 테스트 과정 수행에는 4321번 포트가 사용됩니다.

테스트

$ yarn test-update

위 스크립트를 실행하면 src/test/e2e/tests/__ image_snapshots __ 폴더 안에 저장된 기존 스크린샷과 현재 렌더링된 페이지를 비교합니다.

스냅샷 업데이트

$ yarn test-update

위 스크립트를 실행하면 src/test/e2e/tests/__ image_snapshots __ 폴더 안의 스크린샷을 무시하고 새 스크린샷을 저장합니다.

visual-regression-test-demo's People

Contributors

sunghwan-blue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.