Hi,
We have a rather intricate search idea. For this we are starting to get a rather large set of unit tests (or componentTests / FacesRequest-tests in Seam to be specific) that verifies and maintains the idea. Running this set is becoming very slow and requires the embedded setup and teardown as well as a database.
I previous projects where I only used Lucene it was freakingly simple to unit test en masse by setting up a RamDirectory, fill that with some documents, fire off some probing questions and finally verifying the result. This was completety standalone and as such very quick.
This leads to some questions: Can I use HibernateSearch during testing without the "db/environment"-setup? I realize I could ditch the embedded part ... but I guess I no matter what will need an EntityManager ... which requires a db or?
In short: Can the quick standalone (no DB) ramdir-testing be attained while still using HSearch?
Thankful for any suggestions on this,
Tobias
|