freme-project / e-Publishing

Apache License 2.0
0 stars 0 forks source link

ePub validation #14

Closed ArneBinder closed 9 years ago

ArneBinder commented 9 years ago

Hallo,

I'm currently implementing some integretion tests for Freme and would like to validate the epub response. Is there already some functionality I could use? Or do you recommend epubcheck?

pheyvaer commented 9 years ago

We have some basic JUnit tests in the repo. This will check if the data is actually added to the EPUB. You can use epubcheck to make sure that the resulting EPUB is actually valid. However, we haven't checked if we produce valid EPUB in all cases, so you might find some errors/warnings there, and also the epubcheck contains some bugs itself.

jnehring commented 9 years ago

@ArneBinder I propose that you try the epubcheck library in the integration tests.

pheyvaer commented 9 years ago

It depends on what you want to test of course. We can create a valid EPUB file without adding the data provided by the user ... so the tests will succeed but our service is useless of course ;)

ArneBinder commented 9 years ago

Ok, thanks for the reply, I'll try to integrate epubcheck into a simple integretion test with the alice data (zip + metadata).