Skip to content

Commit c1d4a4e

Browse files
FFQAHwangclaude
andcommitted
refactor: CI에서 suite_runner.py로 테스트 실행
- pytest 직접 호출 → suite_runner.py 호출로 변경 - suite_runner.py에 CI 전용 옵션(--html, --junit-xml) 추가 - 로컬/CI 동일 실행 방식, 옵션 중앙 관리 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3be1219 commit c1d4a4e

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/web-e2e-test.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,8 @@ jobs:
4848
run: |
4949
mkdir -p artifacts
5050
set +e
51-
python -m pytest tests/ \
52-
-v \
53-
--tb=short \
54-
--screenshot=on \
55-
--video=on \
56-
--tracing=retain-on-failure \
57-
--output=artifacts \
58-
--html=artifacts/report.html --self-contained-html \
59-
--junit-xml=artifacts/results.xml \
60-
2>&1 | tee artifacts/test-output.log
61-
# PIPESTATUS[0]으로 pytest 실제 exit code 캡처 (tee가 아닌)
51+
python suite_runner.py 2>&1 | tee artifacts/test-output.log
52+
# PIPESTATUS[0]으로 suite_runner 실제 exit code 캡처 (tee가 아닌)
6253
TEST_EXIT_CODE=${PIPESTATUS[0]}
6354
echo $TEST_EXIT_CODE > artifacts/exit-code.txt
6455
echo "pytest exit code: $TEST_EXIT_CODE"

fastfive-web-e2e/suite_runner.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ def run():
4747
f"--video={'on' if is_ci else 'off'}",
4848
"--tracing=retain-on-failure",
4949
"--output=artifacts",
50-
*extra_args,
5150
]
51+
# CI에서는 HTML/JUnit 리포트 추가 생성
52+
if is_ci:
53+
cmd += [
54+
"--html=artifacts/report.html",
55+
"--self-contained-html",
56+
"--junit-xml=artifacts/results.xml",
57+
]
58+
cmd += extra_args
5259

5360
print(f"대상: {', '.join(test_targets)}")
5461
print(f"실행: {' '.join(cmd)}")

0 commit comments

Comments
 (0)