You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LeoHsiao 15c0366087 Rename unit_test and import it in system_tests.py 5 years ago
..
README.md Rename unit_test and import it in system_tests.py 5 years ago
__init__.py Rename unit_test and import it in system_tests.py 5 years ago
test_sample.py Rename unit_test and import it in system_tests.py 5 years ago
utils.py Rename unit_test and import it in system_tests.py 5 years ago

README.md

README

  • Plan to convert the bash test scripts ../../test/*.sh into Python scripts and save them to this directory.
  • The test cases in this directory are based on unittest and written in a common format, which is different from the format described in ../writing_tests.md, but can be executed compatibly.

Running the test cases

  • Use runner.py to collect test cases and execute them:

    cd EXIV2_DIR/tests
    python3 runner.py -v unit_test
    
  • Also, you can use pytest to execute the test cases for unittest, so that the test report looks better:

    cd EXIV2_DIR/tests
    pytest -v unit_test
    
  • If no exception occurs during the execution of the test case, it passes. Otherwise it fails.