michael 3088728222 * Merging revisions 44004 from trunk: 6 jaren geleden
..
fonts 6672e77222 * Added fcl-report 8 jaren geleden
README.md 611a60ad5b * Merging revisions r43889,r43891,r43895,r43899,r43900,r43930,r43954,r43955,r43973 from trunk: 6 jaren geleden
guitestfpreport.lpi 6672e77222 * Added fcl-report 8 jaren geleden
guitestfpreport.lpr 6672e77222 * Added fcl-report 8 jaren geleden
regtests.pp 611a60ad5b * Merging revisions r43889,r43891,r43895,r43899,r43900,r43930,r43954,r43955,r43973 from trunk: 6 jaren geleden
tcbasereport.pp 611a60ad5b * Merging revisions r43889,r43891,r43895,r43899,r43900,r43930,r43954,r43955,r43973 from trunk: 6 jaren geleden
tchtmlparser.pas 6672e77222 * Added fcl-report 8 jaren geleden
tcreportdom.pp 6672e77222 * Added fcl-report 8 jaren geleden
tcreportgenerator.pas 3088728222 * Merging revisions 44004 from trunk: 6 jaren geleden
tcreportstreamer.pp 6672e77222 * Added fcl-report 8 jaren geleden
testfpreport.lpi 611a60ad5b * Merging revisions r43889,r43891,r43895,r43899,r43900,r43930,r43954,r43955,r43973 from trunk: 6 jaren geleden
testfpreport.lpr 6672e77222 * Added fcl-report 8 jaren geleden

README.md

Testsuite

Demos

The testsuite can optionally run all demos: define USEDEMOS and fpTestX on the command-line or in the lazarus defines.

In that case the ../demo and ../demo/polygon directories must be added to the unit path of the compiler.

You can then run these tests using the following command-line ./testfpreport --suite=TTestDemos

The demo reports will be rendered and saved to a directory "rendered".

The first time you run the demo test, the file will be called demo.set.json. The second time you run the demo test, if the result differs, the result will be saved to a file called demo.actual.json.

So, to test changes, first delete all json files in the rendered directory. Then do a first run, this will create the initial files, and set a baseline. Make your changes, and then run the reports again. You will be notified of differences.

The reason these files are not stored in SVN is that they are dependent on the platform: a) The reports contain newlines. Depending on the platform they will be saved as \r \r\n or \n. b) There can and will be localization issues.

Fonts

The demos need some extra fonts. The needed fonts (Ubuntu and DejaVu Sans) can be downloaded from:

These fonts should be saved to the ./fonts or ../demo/fonts directory.