2013-01-25 00:46:29 +00:00
|
|
|
The test directory contains some unit and performance tests for Scintilla.
|
|
|
|
|
2022-01-04 23:07:50 +00:00
|
|
|
The tests can only be run on Windows using Python 2.7 or 3.x.
|
2013-08-28 00:44:27 +00:00
|
|
|
Python 2.7+ is required because the bytes string type and literals are available.
|
|
|
|
Scintilla must be built before running any tests.
|
2022-01-04 23:07:50 +00:00
|
|
|
Lexilla may be built before running tests but lexing tests will be skipped if Lexilla not available.
|
2013-01-25 00:46:29 +00:00
|
|
|
|
2013-08-28 00:44:27 +00:00
|
|
|
A test application for Windows only is in xite.py and this can be run to experiment:
|
2013-01-25 00:46:29 +00:00
|
|
|
pythonw xite.py
|
|
|
|
|
|
|
|
To run the basic tests:
|
2013-08-28 00:44:27 +00:00
|
|
|
python simpleTests.py
|
2013-01-25 00:46:29 +00:00
|
|
|
|
|
|
|
To check for performance regressions:
|
2013-08-28 00:44:27 +00:00
|
|
|
python performanceTests.py
|
2013-01-25 00:46:29 +00:00
|
|
|
While each test run will be different and the timer has only limited granularity, some results
|
|
|
|
from a 2 GHz Athlon with a DEBUG build are:
|
|
|
|
0.187 testAddLine
|
|
|
|
. 0.203 testAddLineMiddle
|
|
|
|
. 0.171 testHuge
|
|
|
|
. 0.203 testHugeInserts
|
|
|
|
. 0.312 testHugeReplace
|
|
|
|
.
|