Open GoogleCodeExporter opened 9 years ago
Work so far:
- Created a separate github project for daisy-engine and configured a travis-ci
build https://travis-ci.org/julianharty/daisy-engine
- Experimented with different JDKs, including OracleJDK7 and OpenJDK6 -
problems still exist.
- Added diagnostic information to tests and source of code related to the
initial failures. More to do.
- Changed the ant build.xml file to run all the tests even when some fail,
otherwise travis-ci stops running the junit tests in a file once the first one
fails. Note: currently ant does not report a failure after running the tests so
travis-ci incorrectly reports the build as successful. It _is_ successful in
running all the tests and therefore we can see which tests fail. However we
ultimately want good quality tests to run cleanly and currently this isn't
happening...
Original comment by julianharty
on 16 Aug 2013 at 11:18
There are still a couple of tweaks left to do, however the tests now run
without error as a separate daisy-engine project on travis-ci. The main cause
seems to be related to differences in the behaviour of the SAX Xerces parser in
and Java 7 and in OpenJDK 6. The daisy-reader code looked for values using
getLocalName(...) however that returns an empty string with newer versions of
the parser. The name is available using getQName(...) in the newer
implementations of the parser. We may still be bitten by parsing problems in
future, however at least the current implementation passes all the unit tests.
I used TDD to implement equivalent changes to daisy-reader code in the main
codebase. The tests for the main codebase also run cleanly in travis-ci
Original comment by julianharty
on 21 Aug 2013 at 8:13
Here is a key explanation, with sample code, of how getLocalName(...) and
getQName(...) differ:
http://stackoverflow.com/questions/6429634/differences-between-a-local-name-and-
qualified-name-in-a-xml-attribute This also refers to
http://www.w3.org/TR/REC-xml-names/
Original comment by julianharty
on 23 Aug 2013 at 7:38
Original issue reported on code.google.com by
julianharty
on 16 Aug 2013 at 11:13