feat: add comprehensive E2E tests with Docker workflow

- Add comprehensive.e2e.test.ts: Full E2E tests covering 25+ converters
- Add format-matrix.e2e.test.ts: Format conversion matrix (70,000+ combinations)
- Add translation.e2e.test.ts: Multi-language translation tests (14 languages)
- Add docker-e2e-tests.yml: GitHub Actions workflow for Docker E2E tests
- Update run-bun-test.yml: Improved basic test workflow
- Add run-e2e-tests.sh: Local test runner script
- Add test scripts to package.json

Tests cover:
- Image formats (Inkscape, ImageMagick, Potrace, etc.)
- Document formats (Pandoc, LibreOffice, Calibre)
- Data formats (Dasel: JSON/YAML/TOML/XML/CSV)
- Translation (PDFMathTranslate, BabelDOC)
- Edge cases (Unicode, long content, special characters)
This commit is contained in:
Your Name 2026-01-23 12:20:52 +08:00
parent 3457311f14
commit e327345ad7
9 changed files with 2954 additions and 3 deletions

View file

@ -13,7 +13,13 @@
"lint:tsc": "tsc --noEmit",
"lint:knip": "knip",
"lint:eslint": "eslint .",
"lint:prettier": "prettier --check ."
"lint:prettier": "prettier --check .",
"test": "bun test",
"test:e2e": "bun test tests/e2e/",
"test:e2e:quick": "bun test tests/e2e/converters.e2e.test.ts",
"test:e2e:matrix": "bun test tests/e2e/format-matrix.e2e.test.ts --timeout 300000",
"test:e2e:translation": "bun test tests/e2e/translation.e2e.test.ts --timeout 600000",
"test:e2e:comprehensive": "bun test tests/e2e/comprehensive.e2e.test.ts --timeout 600000"
},
"dependencies": {
"@elysiajs/html": "^1.4.0",