You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dockerfile - Multi-stage build with Chrome + LibreOffice
docker-compose.yml - Development environment
Makefile - Build/test automation
.env.example - Configuration template
Running Tests with Docker
# Start environment
make run
# Run integration tests (inside Docker)
make test-integration
# Or manually with Docker
docker build -t pdfbro-test .
docker run --rm -e CHROME_PATH=/usr/bin/google-chrome pdfbro-test \
cargo test -p engine --test chromium_html -- --ignored
Test Coverage Goals
Phase 1 (Current)
Unit tests for all crates
Integration tests for Chromium (HTML/URL/Markdown)
Port Gotenberg tests: Follow docs/specs/50-testing-bdd.md
Enable ignored tests: Once Docker infrastructure is verified
CI/CD: GitHub Actions workflow for automated testing
Test Commands
# Unit tests (no external deps)
cargo test --lib
# Integration tests (requires Chrome/LibreOffice)
cargo test -p engine --test chromium_html -- --ignored
cargo test -p engine --test libreoffice -- --ignored
cargo test -p server --test e2e -- --ignored
# All tests
make test-all