Skip to content
Norbert Preining edited this page Jun 21, 2016 · 2 revisions

Welcome to the tltesting wiki!

Ideas by Norbert

Ideas by Uwe

Requirements

  • must run on at least Mac OS, Windows and Linux, more platforms are appreciated
  • shall not require manual checks
  • shall be self contained
  • shall test a majority of user scenarios (letters, reports, books, etc.)
  • many small tests may be helpful, bigger test scenarios must not be omitted (I, for example, ran a 600 pages dissertation as part of my testing)
  • cannot test each and every scenario users may come across

Design ideas

  • use python (as I know it best)
  • make use of its unit test facilities
  • run a testcase by calling TeX engine n-times on specific file
  • check if the process ended properly
  • proper process ending does not mean that file is correct
  • Gather statistics on file: Size, number of pages, ...
  • Convert generated file to image and run imagemagick to collect statistical data.
  • Compare statistical data to known result. If threshold > level ==> testcase failed.
Clone this wiki locally