feat: 在gitignore中添加各种测试文件忽略规则
- 添加Python测试文件规则 (test_*.py, *_test.py) - 添加JavaScript/TypeScript测试文件规则 (.test.*, .spec.*) - 添加测试框架相关文件 (Jest, Cypress, Playwright) - 添加测试报告和覆盖率文件忽略 - 添加测试数据库和日志文件忽略 - 添加Mock和生成的测试数据忽略 Completed with Kiro AI assistant
This commit is contained in:
parent
91f701139f
commit
1b7bf70a67
96
.gitignore
vendored
96
.gitignore
vendored
@ -311,4 +311,98 @@ backup/
|
|||||||
|
|
||||||
# 测试数据
|
# 测试数据
|
||||||
test_data/
|
test_data/
|
||||||
mock_data/
|
mock_data/
|
||||||
|
|
||||||
|
# ===== 测试文件 =====
|
||||||
|
# Python 测试文件
|
||||||
|
test_*.py
|
||||||
|
*_test.py
|
||||||
|
tests/test_*.py
|
||||||
|
tests/*_test.py
|
||||||
|
test/
|
||||||
|
tests/output/
|
||||||
|
tests/reports/
|
||||||
|
tests/coverage/
|
||||||
|
tests/screenshots/
|
||||||
|
tests/artifacts/
|
||||||
|
|
||||||
|
# JavaScript/TypeScript 测试文件
|
||||||
|
*.test.js
|
||||||
|
*.test.ts
|
||||||
|
*.test.jsx
|
||||||
|
*.test.tsx
|
||||||
|
*.spec.js
|
||||||
|
*.spec.ts
|
||||||
|
*.spec.jsx
|
||||||
|
*.spec.tsx
|
||||||
|
__tests__/
|
||||||
|
test/
|
||||||
|
tests/
|
||||||
|
*.test.snap
|
||||||
|
coverage/
|
||||||
|
.nyc_output/
|
||||||
|
|
||||||
|
# Jest 相关
|
||||||
|
jest-results.json
|
||||||
|
jest.config.local.js
|
||||||
|
jest.config.local.ts
|
||||||
|
|
||||||
|
# Cypress 测试
|
||||||
|
cypress/videos/
|
||||||
|
cypress/screenshots/
|
||||||
|
cypress/downloads/
|
||||||
|
cypress/fixtures/generated/
|
||||||
|
|
||||||
|
# Playwright 测试
|
||||||
|
test-results/
|
||||||
|
playwright-report/
|
||||||
|
playwright/.cache/
|
||||||
|
|
||||||
|
# 测试报告和覆盖率
|
||||||
|
coverage/
|
||||||
|
.coverage
|
||||||
|
htmlcov/
|
||||||
|
lcov.info
|
||||||
|
coverage.xml
|
||||||
|
coverage.json
|
||||||
|
coverage.lcov
|
||||||
|
junit.xml
|
||||||
|
test-report.xml
|
||||||
|
test-results.xml
|
||||||
|
|
||||||
|
# 性能测试
|
||||||
|
benchmark/
|
||||||
|
performance/
|
||||||
|
load-test/
|
||||||
|
|
||||||
|
# 端到端测试
|
||||||
|
e2e/screenshots/
|
||||||
|
e2e/videos/
|
||||||
|
e2e/downloads/
|
||||||
|
e2e/test-results/
|
||||||
|
|
||||||
|
# 测试配置文件(如果是临时的)
|
||||||
|
test.config.local.*
|
||||||
|
*.test.config.local.*
|
||||||
|
|
||||||
|
# 测试数据库
|
||||||
|
test.db
|
||||||
|
test.sqlite
|
||||||
|
test.sqlite3
|
||||||
|
*_test.db
|
||||||
|
|
||||||
|
# 测试日志
|
||||||
|
test.log
|
||||||
|
tests.log
|
||||||
|
test_*.log
|
||||||
|
*_test.log
|
||||||
|
|
||||||
|
# Mock 和 Stub 文件
|
||||||
|
mocks/generated/
|
||||||
|
stubs/generated/
|
||||||
|
fixtures/generated/
|
||||||
|
|
||||||
|
# 测试缓存
|
||||||
|
.pytest_cache/
|
||||||
|
.cache/pytest/
|
||||||
|
node_modules/.cache/jest/
|
||||||
Loading…
Reference in New Issue
Block a user