Revision 581920

Go back to digest for 10th September 2006

Other in KDE Base

Leo Savernik committed changes in /branches/KDE/3.5/kdelibs/kate/part:

Introducing automatic regression testing for kate.

I lifted the regression tester from khtml, so you'll still find many debris from the conversion.

Conceptionally, it works like this:
- start with regression directory
- read testcases under directory tests/
- execute script on each test
- compare result with template under baseline/
- if both are equal, consider test as passed

The tool works fully automatically. Additional testcases can be added easily by providing an initial testcase under tests/ and an accompanying script containing the statements as well as a proposed result template under baseline.

Shortcomings:
- Testcase execution is *very* slow.
- Some results are not deterministic. I.e. if you invoke ./testkateregression indent/csmart/openpar1.txt it will fail. If you run it in batch, it will pass.
- Currently, there are only testcases for the c-style indenter.

File Changes

Added 2 files
  • /branches/KDE/3.5/kdelibs/kate/part
  •   /test_regression.cpp
  •   /test_regression.h
2 files changed in total