Skip to content
프로젝트

소개

Svelte Society 웹사이트

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • ✅ Database isolation - Each test file gets its own isolated database
  • ✅ Parallel execution - Tests run 4 at a time for speed
  • ✅ Page Object Model - Maintainable and reusable test code
  • ✅ CI/CD integrated - Automatically runs on every PR

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

sveltesociety.dev

This branch contains the upcoming Svelte Society website featuring a new design and data that lives in a database. Currently being deployed to https://beta.sveltesociety.dev

Developing

Steps to get running:

  • Run bun i
  • Run bun run --bun dev

Environment Variables

Add all the relevant .env variables:

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_AUTHORIZATION_CALLBACK_URL=http://localhost:5173/auth/callback
DB_PATH=local.db
EVENT_DB_PATH=local_event.db
NIXPACKS_NODE_VERSION=20

DB_PATH=local.db

Testing

This project uses Playwright for end-to-end testing with comprehensive test coverage.

Running Tests

# Run all E2E tests
bun run test:integration

# Run tests in UI mode (interactive)
bun run test:integration:ui

# Run tests in headed mode (see browser)
bun run test:integration:headed

Test Coverage

  • 65 tests across 14 test files
  • 100% passing with 0% flaky rate
  • ~15-20 seconds execution time
  • Full isolation - each test file uses its own database

Key Features

  • ✅ Database isolation - Each test file gets its own isolated database
  • ✅ Parallel execution - Tests run 4 at a time for speed
  • ✅ Page Object Model - Maintainable and reusable test code
  • ✅ CI/CD integrated - Automatically runs on every PR
  • ✅ Browser caching - CI runs optimized for speed

Documentation

Writing Tests

All tests follow the Page Object Model pattern:

import { test, expect } from '@playwright/test'
import { HomePage, ContentListPage } from '../pages'
import { setupDatabaseIsolation } from '../helpers/database-isolation'

test.describe('Feature', () => {
	test.beforeEach(async ({ page }) => {
		await setupDatabaseIsolation(page)
	})

	test('can do something', async ({ page }) => {
		const homePage = new HomePage(page)
		await homePage.goto()
		// ... test implementation
	})
})

For more details, see the Testing Guide.

관련 프로젝트 살펴보기

불러오는 중…