1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
pdf2htmlEX/test
2014-11-20 02:58:08 +08:00
..
browser_tests improving tests 2014-11-19 00:48:18 +08:00
old working on unittest 2014-11-16 00:06:43 +08:00
test_output travis debug 2014-11-18 13:17:22 +08:00
.gitattributes improving tests 2014-11-19 00:48:18 +08:00
browser_tests.py .. 2014-11-19 01:05:26 +08:00
fancy.min.css improve test runner 2014-11-16 13:40:02 +08:00
README.md .. 2014-11-19 01:05:26 +08:00
start_xvfb.sh travis debug 2014-11-18 13:17:22 +08:00
test_local_browser.py test remote browsers using sauce labs 2014-11-20 02:27:08 +08:00
test_output.py travis debug 2014-11-18 13:17:22 +08:00
test_remote_browser.py test remote browsers using sauce labs 2014-11-20 02:27:08 +08:00
test.py fix travis 2014-11-20 02:58:08 +08:00

Dependencies

  • python2 and packages
    • Python Imaging Library
    • Selenium
    • unittest
  • Firefox

Usage

  • Run all tests:
    • ./test.py
  • Run selected test suites:
    • ./test.py test_local_browser
  • Run selected test case:
    • ./test.py test_local_browser.test_basic_text
    • Or `./test.py test_basic_text
  • Environment variables:
    • set P2H_TEST_SAVE_TMP=1 to keep the temporary files in /tmp/pdf2htmlEX_test
    • set P2H_TEST_GEN=1 to generate new reference files

Guidelines for test cases

  • Make sure you have the proper copyrights.
  • Using meaningful file names, a description of the file, or issueXXX.pdf.
  • Make each test case minimal:
    • One page only, unless the test case is about multiple pages.
    • Grayscale only, unless the test case is about colors.
    • Remove unnecessary elements.
  • [Optional] Include the source files that the PDF file is generated from.