lyx_mirror/development/autotests/findadv-02-in.txt
Tommaso Cucinotta 5f50ae8f08 Added basic automated testing capability, based on the MonKey Test (keytest.py) by McCabe-Dansted.
As of now, I plan to add a few regression tests for the Advanced Find & Replace using this engine.
It can be used for automated testing of other LyX subsystems as well. Just write your own *-in.txt
scripts and add them into the autotests/ folder.

TODOs:
- perhaps simplify keytest.py
- check how this behaves under various types of failure of the test
  (e.g., LyX crashing, hanging, ...) just to be sure it goes on with
  the other tests anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37364 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 14:42:53 +00:00

13 lines
342 B
Plaintext

# Basic test on refactoring of mathematics notation
#
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \Cm
KK: x^(a) +\\frac 1+x^(a) \[Down]1-x^(a) \C\[Home]
KK: \CF
KK: \Cmx^(a) \[Tab]
KK: \Cmx_a \[Return]\[Return]\[Return]
KK: \Afs
KK: \Ax
KK: buffer-export latex\[Return]
TestEnd grep '^\$x_{a}+\\frac{1+x_{a}}{1-x\^{(a)}}\$' test.tex