Am 27.05.2015 um 16:53 schrieb Georg Baum:

- when I import our test file test-modules.tex I get a LyX file that is
>uncompilable:
>LaTeX Error: Environment lem undefined.
>LaTeX Error: \begin{document} ended by \end{lem}.
>But the test result tells me that everything is OK with this test file.

It is_not_  a requirement that test cases always contain sensible data. In
many cases, it is more effective to design test cases with contents which
would never occur in practice, for example because it is shorter.

Hi Georg,

we have different approaches here. My experience is that people expects that the tex2lyx result is compilable since they know that the original TeX file is compilable.

When I started the test files I designed them to be compilable. That is the reason why I set up different files - to be able to test different things but keep the documents compilable.

It is OK if you prefer another way but it would then be nice to have 2 different sets of test files: one with parser tests etc. and one with pdflatex-compilable files.

The current way of testing is better. The way the current tests work (run
the program under test with a set of input files, and compare the results
against known good references) is standard practice in software testing
which has been proven to work very well. I strongly vote against deviating
from this principle.

I don't see the effort. As you can see in Trac, by checking the compilability I found several tex2lyx bugs while your testing method said everything is OK. I am a physicist and my job is to set up tests that uncover as many problems as possible. I am therefore focused on results that help us the most to make the customers happy.

Please make yourself more familiar with software testing (wkipedia is a good
start) before continuing this discussion. Your proposal looks natural
without considering the current state of the art in software testing, but if
you ask the experts they will show you different approaches.

I am not a computer scientist. I just want to have a product that attract many customers. I think I made clear why I proposed what I proposed. I don't think that was impolite.

regards Uwe

Reply via email to