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:
parent
3457311f14
commit
e327345ad7
9 changed files with 2954 additions and 3 deletions
22
tests/e2e/fixtures/README.json
Normal file
22
tests/e2e/fixtures/README.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"name": "E2E Test Configuration",
|
||||
"fixtures": {
|
||||
"pdf": "sample.pdf (需要手動創建或從其他地方複製)",
|
||||
"svg": "test.svg",
|
||||
"markdown": "test.md",
|
||||
"json": "test.json"
|
||||
},
|
||||
"notes": [
|
||||
"sample.pdf 需要是一個包含英文文字的有效 PDF 檔案",
|
||||
"翻譯測試需要網路連接和有效的翻譯 API 金鑰",
|
||||
"某些測試需要 Docker 環境或完整安裝的轉換工具"
|
||||
],
|
||||
"translationApiKeys": {
|
||||
"required": [
|
||||
"OPENAI_API_KEY (for OpenAI translation)",
|
||||
"GOOGLE_API_KEY (for Google translation)",
|
||||
"DEEPL_API_KEY (for DeepL translation)"
|
||||
],
|
||||
"setVia": "Environment variables or .env file"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue