TDD 작성

This commit is contained in:
2025-08-12 03:28:08 +09:00
parent 6033d59590
commit 107abc963f
156 changed files with 70906 additions and 642 deletions
+58
View File
@@ -0,0 +1,58 @@
name: Flutter 테스트
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch: # 수동 실행 옵션
jobs:
test:
name: 테스트 실행
runs-on: ubuntu-latest
timeout-minutes: 15 # CI 전체 타임아웃 설정
steps:
- name: 코드 체크아웃
uses: actions/checkout@v3
- name: Flutter 설정
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
channel: 'stable'
cache: true
- name: 의존성 설치
run: flutter pub get
- name: 테스트 디렉토리 생성
run: mkdir -p test_diagnostics
- name: 테스트 실행 권한 설정
run: |
chmod +x ./scripts/run_tests.sh
chmod +x ./scripts/reproduce_test.sh
- name: Flutter 테스트 실행
run: ./scripts/run_tests.sh ci --verbose
env:
FLUTTER_TEST_IS_CI: true
- name: 테스트 진단 정보 수집
if: failure()
run: |
echo "테스트 실패 - 진단 정보 수집 중..."
ls -la test_diagnostics/
cat test_diagnostics/*.log || echo "로그 파일 없음"
cat test_diagnostics/*.txt || echo "분석 파일 없음"
- name: 테스트 진단 정보 업로드
if: always()
uses: actions/upload-artifact@v3
with:
name: test-diagnostics
path: test_diagnostics/
retention-days: 7
if-no-files-found: ignore
+16
View File
@@ -0,0 +1,16 @@
# CI 환경 테스트 설정
test_settings:
# 비동기 작업 타임아웃 설정 (밀리초)
async_timeout: 1500
# 테스트 간 지연 시간 (밀리초)
test_delay: 200
# 테스트 재시도 횟수
retry_count: 3
# 테스트 병렬 실행 여부
parallel: false
# 메모리 제한 (MB)
memory_limit: 2048
# 로깅 레벨 (1: 최소, 5: 최대)
log_level: 4
# 테스트 격리 모드 (strict, normal, relaxed)
isolation_mode: strict