Tree [4d6755] default tip / test /
History



File Date Author Commit
examples 2013-06-29 Neil Neil [d46f56] Bug: [#1483]. Added a test for UTF-8 labels in ...
unit 2014-05-20 Neil Neil [0673c5] Updated to current version of Catch as fixes is...
MessageNumbers.py 2009-05-12 nyamatongwe nyamatongwe [996960] Include tests in standard repository.
README 2013-07-05 Neil Neil [9b77b9] Implemented tests for Qt on Linux.
ScintillaCallable.py 2013-07-07 Neil Neil [3744d8] First argument to SetText is not used so was di...
XiteMenu.py 2011-07-25 nyamatongwe nyamatongwe [99d3e5] Using 'from __future__ import unicode_literals'...
XiteQt.py 2014-01-01 Neil Neil [593021] Specify minimum Python version for scripts.
XiteWin.py 2014-01-01 Neil Neil [593021] Specify minimum Python version for scripts.
lexTests.py 2014-01-01 Neil Neil [75fbfb] Specify minimum Python version for scripts.
performanceTests.py 2013-07-08 Neil Neil [d31c5a] Fix to work on more versions of Python.
simpleTests.py 2014-05-23 Neil Neil [cceb02] Removing style byte indicators.
xite.py 2009-05-12 nyamatongwe nyamatongwe [996960] Include tests in standard repository.

Read Me

The test directory contains some unit and performance tests for Scintilla.

The tests can only be run on Windows or Linux/Qt using Python 2.7 or 3.x.
Python 2.7+ is required because the bytes string type and literals are available.
Scintilla must be built before running any tests.

A test application for Windows only is in xite.py and this can be run to experiment:
pythonw xite.py

To run the basic tests:
python simpleTests.py

There are some lexing tests with simple input files in several languages in the examples 
subdirectory and their expected lexed states in *.styled where the start of each style 
is marked with {styleNumber}, for example:
{15}<%@{16}language=javas{15}%>{0}

To run the lexing tests:
python lexTests.py

To check for performance regressions:
python performanceTests.py
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
.