syedsaqibbukhari / docanalysis

Apache License 2.0
10 stars 5 forks source link

Test scripts #8

Open kba opened 6 years ago

kba commented 6 years ago

Are there test scripts to show sample calls, ideally automatable for CI?

kba commented 6 years ago

There won't be any, information is in the READMEs

cneud commented 6 years ago

There are ocrd-anyBaseOCR-binarize.py etc. Once an ocrd-tool.json (cf. https://github.com/syedsaqibbukhari/docanalysis/issues/5) is provided as well, wouldn't that suffice?

kba commented 5 years ago

Why was this closed?

mjenckel commented 5 years ago

There was an internal misunderstanding from DFKI side, whether a "ocrd-tools.json" file has been added.

kba commented 5 years ago

The ocrd-tool.json issue is unrelated (#5). This is about testing whether the scripts do what they advertise to do.

I implemented a minimal test in the Makefile, just running the processors on the dfkitestdata in OCR-D/assets. But that is only a smoke test, there should be checks for functionality as well. https://github.com/tmbdev/ocropy/blob/master/run-test-ci might be an inspiration or the tests in the other ocrd* MP.