]> git.lyx.org Git - lyx.git/blob - development/TestsToDo
Move Lexer to support/ directory (and lyx::support namespace)
[lyx.git] / development / TestsToDo
1 This file describes tests that might be useful to implement.
2
3 -----
4 lyx2lyx tests
5
6 One way to implemente tests of lyx2lyx is to do a roundtrip lyx2lyx
7 conversion (e.g. with the previous major release format) and then compare the
8 exported .tex files before and after. Ideally there should be no change.
9
10 Georg detailed a clearly better idea, but would take more time to implement:
11
12   If you want to test lyx2lyx, then I would strongly advise to test lyx2lyx
13   alone, without LyX. This would be exactly the same procedure as we do with
14   tex2lyx: For each test case, keep the expected output of lyx2lyx as
15   reference, and verify once (when creating the test), that LyX will produce
16   the correct output. When testing, do only compare the lyx2lyx output against
17   the refernce. If you keep LyX (and even pdflatex) in the chain, then you
18   will be testing lyx2lyx, LyX and pdflatex at the same time, which will
19   increase the probability of failing tests, and the search for the cause will
20   be more difficult.
21     
22   Finally I have a general remark: The forward conversion in lyx2lyx is much
23   more important than the backward conversion, and the only one we guarantee
24   to work for each format step. The backward conversion is only implemented
25   for those cases where it is possible with reasonable effort. If we start to
26   test lyx2lyx, then we should start with the forward conversion.
27
28 For (possibly) more discussion, see:
29 https://www.mail-archive.com/search?l=mid&q=n15uao%24upk%241%40ger.gmane.org
30 -----