Skip to content

feat: add testing infrastructure (Vitest + Playwright)#12

Merged
UfukCetinkaya57 merged 2 commits into
developfrom
feat/testing-setup
Mar 4, 2026
Merged

feat: add testing infrastructure (Vitest + Playwright)#12
UfukCetinkaya57 merged 2 commits into
developfrom
feat/testing-setup

Conversation

@UfukCetinkaya57
Copy link
Copy Markdown
Member

Summary

  • Vitest + React Testing Library unit & component test altyapisi eklendi
  • Playwright E2E test altyapisi eklendi (Chromium, Firefox, WebKit)
  • Ornek testler: Home page (3 test), Button component (5 test), E2E navigation (4 test)
  • CI workflow guncellendi: unit test + e2e job, artifact upload
  • CLAUDE.md test kurallari ve dosya yapisiyla guncellendi

Eklenen Dosyalar

Dosya Aciklama
vitest.config.ts Vitest konfigurasyonu (jsdom, path alias, coverage)
vitest.setup.ts jest-dom matcher'lari
playwright.config.ts Playwright konfigurasyonu (3 browser, webServer)
__tests__/page.test.tsx Home page unit testleri
__tests__/components/Button.test.tsx Button component testleri
components/Button.tsx Ornek Button component (test icin)
e2e/home.spec.ts Home page E2E testleri

Script'ler

npm test              # Unit & component testleri calistir
npm run test:watch    # Izleme modunda calistir
npm run test:coverage # Coverage raporuyla calistir
npm run test:e2e      # E2E testleri calistir
npm run test:e2e:ui   # Playwright UI modunda calistir

Test plan

  • Vitest 8/8 test gecti (lokal)
  • CI uzerinde unit testlerin gectigini dogrula
  • CI uzerinde E2E testlerin gectigini dogrula

🤖 Generated with Claude Code

- Vitest + React Testing Library for unit & component tests
- Playwright for E2E tests across Chromium, Firefox, WebKit
- Example tests: Home page, Button component, E2E navigation
- CI workflow updated with test + e2e jobs and artifact uploads
- CLAUDE.md updated with test conventions and file structure
@UfukCetinkaya57 UfukCetinkaya57 merged commit ad46739 into develop Mar 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant