mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
757810f170
Update README.md track travis branch on CI install ttfautohint; run ctest with output-on-failure check more c++11 features use local browser to test install selenium through pip in travis refactor tests use html instead of png as reference |
||
---|---|---|
.. | ||
browser_tests | ||
old | ||
test_output | ||
.gitattributes | ||
browser_tests.py | ||
fancy.min.css | ||
README.md | ||
start_xvfb.sh | ||
test_local_browser.py | ||
test_output.py | ||
test.py |
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_basic_text
- Environment variables:
- set
P2H_TEST_SAVE_TMP=1
to keep the temporary files - set
P2H_TEST_GEN=1
to generate new reference images instead of comparing with old ones
- set
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.