Commit graph

5 commits

Author SHA1 Message Date
jedarden
96d5f0119f docs(bf-6cc3z): verify glob PDF discovery implementation
Implementation already complete in tests/fixture_discovery.rs.
Verified acceptance criteria:
- Discovers 3,353 PDF files in tests/fixtures/
- Uses glob pattern **/*.pdf for recursive matching
- Returns Vec<PathBuf> sorted alphabetically

All tests PASS. Runtime verification confirmed:
✓ All files exist
✓ All files are PDFs
✓ Paths are sorted

Closes bf-6cc3z.
2026-07-06 20:15:30 -04:00
jedarden
e3c6c34760 feat(bf-3wkpz): implement timeout-protected stdout/stderr capture for benchmark
- Add READ_TIMEOUT (5 min) and MAX_OUTPUT_SIZE (100 MB) constants
- Implement read_pipe_with_timeout() with watchdog thread protection
- Update execute_grep_command() to capture and return both streams
- Prevents TH-03 hang scenario by bounding both time and memory

Acceptance criteria:
✓ Stdout captured completely
✓ Stderr captured completely
✓ Output buffered without truncation (100 MB limit)
✓ Read operations have timeout protection (5 min timeout)
✓ Both streams captured even if one is empty

Verification: notes/bf-3wkpz.md
2026-07-06 16:36:22 -04:00
jedarden
a9fe0f757d test(bf-184rf): complete forms integration test scaffold
- Add test_forms_extraction() function to test pdftract extract on fixtures
- Uses walkdir for recursive PDF discovery in tests/fixtures/forms/
- Calls extract_pdf() and result_to_json() on each discovered fixture
- Handles missing fixtures gracefully without panic
- All tests pass (6/6)

Closes bf-184rf. Verification: notes/bf-184rf.md
2026-07-06 09:32:52 -04:00
jedarden
7a3627f153 test(bf-1pxdm): implement PDF fixture discovery for forms tests
Add discover_pdf_fixtures function to recursively find all PDF files in
tests/fixtures/forms/ directory using walkdir. Includes test that prints
discovered fixture names to stdout.

Acceptance criteria:
- walkdir is available in crates/pdftract-cli/Cargo.toml
- discover_pdf_fixtures function returns Vec<PathBuf> of discovered PDFs
- test_discover_pdf_fixtures runs and prints fixture names
- No compilation errors

Closes bf-1pxdm.
2026-07-05 15:22:26 -04:00
jedarden
17e7cfb81b test(bf-2y7uh): create forms_integration test module scaffold
- Created tests/forms_integration.rs with basic test module structure
- Created tests/mod.rs to aggregate test modules
- Added module documentation for forms integration tests
- File compiles successfully with cargo test --test forms_integration

Acceptance criteria:
- tests/forms_integration.rs exists ✓
- tests/mod.rs includes the module declaration ✓
- cargo test --test forms_integration compiles ✓
- File has basic test module skeleton ✓

Closes bf-2y7uh
2026-07-05 15:12:07 -04:00