getomni-ai / zerox

PDF to Markdown with vision models
https://getomni.ai/ocr-demo
MIT License
6.68k stars 363 forks source link

Add testing mechanism #82

Closed ZeeshanZulfiqarAli closed 3 weeks ago

ZeeshanZulfiqarAli commented 3 weeks ago

Add your documents in tests/documents and update tests/input.json with file name and expected keywords per page, and run npm run test to run test script on all documents mentioned in input.json

ZeeshanZulfiqarAli commented 3 weeks ago

@tylermaran I noticed that the title and description for the test run was removed, I think it is very useful when running lots of tests after making some changes to Zerox; the date only gives so much information, and if you ran like 10 tests, i highly doubt you'll remember what configuration the very first test was ran on.