[liblouis-liblouisxml] Re: New test framework for liblouisutdml Java bindings

  • From: "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mwhapples@xxxxxxx" for DMARC)
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 15 Jul 2014 13:49:12 +0100

However, as I put in my original message one important use is also being able to test the Java bindings. Sometimes there are strange bugs which are Java binding specific. Those Java binding bugs really should not exist, the bindings should not be doing half the stuff they are but they are the historical baggage we have to deal with if not creating new bindings of our own.


Also file2brl does some stuff as well before calling the C API.

I want to test the API we will be using.

Michael Whapples
On 15/07/2014 13:43, Keith Creasy wrote:
The problem with the current test framework is that it is simple if all one 
wishes to do is compare  text files. I also have not found it to be that easy 
to use or setup. My first attempt never succeeded and it is difficult to know 
why. There is little or no documentation.

Please consider documentation so that one can reasonably use it without having 
been the programmer who developed it. I'm not opposed to using it but we need 
to validate XML output.

Thanks.

-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx 
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Christian Egli
Sent: Tuesday, July 15, 2014 8:24 AM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: New test framework for liblouisutdml Java 
bindings

Hi

On 07/15/2014 12:09 PM, Michael Whapples (Redacted sender mwhapples@xxxxxxx for 
DMARC) wrote:
and also that file2brl is essentially a unix only tool (it cannot be
built with defacto compilers on Windows, IE. MSVC), thus the old test
framework does not meet with the goal of LibLouisUTDML being
cross-platform.
You've said this in the past and it is still false. The existing test framework 
is deliberately simple as to not to depend on too many things.
It is just as cross-platform as liblouisutdml itself.

* The translateFile tests are defined in the file
testdata/translateFileTests.xml. The root element of this file is
tests and it can contain translateFileTest elements....
The whole thing sounds very complicated. If there is one thing that I learned 
over the years then its the saying that simplicity always trumps complexity.

I wrote a very simple, proof-of-concept test harness for liblouis a while ago, 
using the Java bindings and Clojure. Maybe some ideas could be stolen from 
there: https://github.com/egli/louis-clj

Hope that helps
Christian

--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 
12, CH-8045 Zürich, Switzerland

For a description of the software, to download it and links to project pages go 
to http://www.abilitiessoft.com
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: