• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

README.testingH A D04-Dec-2021829 1311

checkvcard.plH A D04-Dec-20211.3 KiB8062

testread.cppH A D04-Dec-20211.6 KiB6039

testread2.cppH A D04-Dec-20211.6 KiB5134

testutils.cppH A D04-Dec-20213.1 KiB10580

testutils.hH A D04-Dec-2021466 2311

testwrite.cppH A D04-Dec-20213.7 KiB11082

README.testing

1For testing the vcardparser there are some test files and a small testsuite
2automatically checking for regressions. The tests directory contains some vCard
3files and correpsonding reference output files (with an additional ".ref"
4suffix). For running the geression test do "./testroundtrip" or simply run "ctest".
5
6For creating a new test put a vCard file to be parsed into the tests directory.
7Create a reference file by running "testread" on the test file. It will put out
8the parsed data as vCard again on stdout. Carefully check the output, manually
9correct any errors and save the result as reference file in the tests directory.
10Now add the filename to the testroundtrip.qrc resource file and run
11"make && ./roundtriptest" If the check fails adapt the reference file or fix the bugs
12in the parser, whatever is appropriate.
13