Margers 0db1de216b Mass trailing space removal for packages (part 1). 1 месяц назад
..
fonts 6672e77222 * Added fcl-report 8 лет назад
README.md 6984cf8606 * Fix bug #0036581, amended patch by Pascal Riekenberg 6 лет назад
guitestfpreport.lpi 6672e77222 * Added fcl-report 8 лет назад
guitestfpreport.lpr 6672e77222 * Added fcl-report 8 лет назад
regtests.pp 0db1de216b Mass trailing space removal for packages (part 1). 1 месяц назад
tcbasereport.pp 0db1de216b Mass trailing space removal for packages (part 1). 1 месяц назад
tchtmlparser.pas 476a4f0f91 * fix headers other packages up to (but not including) fcl-res (which are generated files) bug #39481 3 лет назад
tcreportdom.pp 476a4f0f91 * fix headers other packages up to (but not including) fcl-res (which are generated files) bug #39481 3 лет назад
tcreportgenerator.pas 476a4f0f91 * fix headers other packages up to (but not including) fcl-res (which are generated files) bug #39481 3 лет назад
tcreportstreamer.pp 0e59e9ec6c Mass typo fixes in strings for packages. 1 месяц назад
testfpreport.lpi 6984cf8606 * Fix bug #0036581, amended patch by Pascal Riekenberg 6 лет назад
testfpreport.lpr 6672e77222 * Added fcl-report 8 лет назад

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.