visual-unit-tests
πExample how to implement visual unit tests for React application with jest and puppeteer plus allure report
νμΌ νμκΈ°
μ΅μ’ λ²μ λ€μ΄λ‘λ (.zip)- config.yml
- process.yml
- app-test-tsx-app-screenshot-of-the-whole-app-burger-1-snap.png
- app-test-tsx-app-screenshot-of-the-whole-app-hot-dog-1-snap.png
- app-test-tsx-app-screenshot-of-the-whole-app-taco-1-snap.png
- bottom-bar-test-tsx-bottom-bar-should-look-good-burger-1-snap.png
- bottom-bar-test-tsx-bottom-bar-should-look-good-hotdog-1-snap.png
- bottom-bar-test-tsx-bottom-bar-should-look-good-taco-1-snap.png
- top-bar-test-tsx-top-bar-should-look-good-1-snap.png
- setupTests.globalSetup.js
- setupTests.globalTeardown.js
- favicon.ico
- index.html
- manifest.json
- BottomBar.test.tsx
- BottomBar.tsx
- Burger.tsx
- HotDog.tsx
- Taco.tsx
- TopBar.test.tsx
- TopBar.tsx
- App.test.tsx
- App.tsx
- GlobalStyle.tsx
- testUtils.ts
- index.tsx
- react-app-env.d.ts
- setupTests.ts
- .gitignore
- craco.config.js
- LICENSE
- package.json
- README.md
- tsconfig.json
- yarn.lock
# μ€μΉ κ°μ΄λ
1. μ½λ λ΄λ €λ°κΈ°
git clone https://github.com/zaqqaz/visual-unit-tests
κΉνλΈμμ νλ‘μ νΈ μ½λ μ 체λ₯Ό λ΄ μ»΄ν¨ν°λ‘ λ΄λ €λ°μ΅λλ€.
cd visual-unit-tests
λ°©κΈ λ΄λ €λ°μ νλ‘μ νΈ ν΄λ μμΌλ‘ μ΄λν©λλ€.
2. Node.js
μ¬μ μΆμ²μ¬μ μ€λΉλ¬Ό
npm install
package.jsonμ λͺ μλ λΌμ΄λΈλ¬λ¦¬λ€μ λ΄λ €λ°μ μ€μΉν©λλ€.
npm start
κ°λ°/μ€ν μλ²λ₯Ό μΌλλ€.
λͺ
λ Ήμ΄ μ€ν ν ν°λ―Έλμ λνλλ μ£Όμ(λ³΄ν΅ http://localhost:3000 νν)λ₯Ό λΈλΌμ°μ μμ μ΄μ΄λ³΄μΈμ.
// repository documentation
Was this content helpful?
(0 ratings)
