Hello -
I've recently joined a team that has created quite a few unit tests over their source code. They are run as part of our ant/cruise-control based continuous build and run successfully. This is good!
However, when I try to run them within Eclipse by right-clicking on my project name, and selecting 'run as->junit test' (which I believe will find all junit tests in the project and run them in some order I can't discern), I get many jUnit Errors, all of the format:
org.hibernate.MappingException: Unknown entity: package.name.class.name (where my specific details are obviously here)
The specific class varies depending on the test.
However, when I attempt to execute any of the failed tests individually they work.
I assume this must be an ordering problem, or an issue with configuring hibernate multiple times (each test class typically does a configure in its setup method).
I'd really appreciate any pointers. I'm not sure anyone else in the team has tried this!
Thank you
Mike
|