2014-11-16 05:40:02 +00:00
|
|
|
### Dependencies
|
|
|
|
|
2014-11-16 14:57:38 +00:00
|
|
|
- python2 and packages
|
|
|
|
- Python Imaging Library
|
|
|
|
- Selenium
|
|
|
|
- unittest
|
|
|
|
- Firefox
|
2014-11-16 05:40:02 +00:00
|
|
|
|
|
|
|
### Usage
|
|
|
|
- Run all tests:
|
|
|
|
- `./test.py`
|
2014-11-16 14:57:38 +00:00
|
|
|
- Run selected test suites:
|
|
|
|
- `./test.py test_local_browser`
|
|
|
|
- Run selected test case:
|
2014-11-18 17:05:26 +00:00
|
|
|
- `./test.py test_local_browser.test_basic_text`
|
|
|
|
- Or `./test.py test_basic_text
|
2014-11-16 05:40:02 +00:00
|
|
|
- Environment variables:
|
2014-11-18 17:05:26 +00:00
|
|
|
- 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
|
2014-11-16 05:40:02 +00:00
|
|
|
|
|
|
|
### 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.
|
|
|
|
|