Currently in our tests we're trying to render PDF using our Latex On Http service. The service does give an output, but it changes from one compilation to another (due to Latex installation differences and variable parts of generated PDFs).
They are several way to fix that:
Run tests with the tested server inside a Docker container, with our normalized Latex installation, to make the tests more deterministic.
For the bulk of tests, assert against an intermediate and more deterministic output (DVI, Postscript?). Need to add this choice on the API too.
In the PDF compared, identify the offset of the variable part and compare all but this binary offset
Currently in our tests we're trying to render PDF using our Latex On Http service. The service does give an output, but it changes from one compilation to another (due to Latex installation differences and variable parts of generated PDFs).
They are several way to fix that:
Run tests with the tested server inside a Docker container, with our normalized Latex installation, to make the tests more deterministic.
For the bulk of tests, assert against an intermediate and more deterministic output (DVI, Postscript?). Need to add this choice on the API too.
In the PDF compared, identify the offset of the variable part and compare all but this binary offset