Re: Testing using mock.Storage?

2014-11-25 Thread Niels Basjes
It took a deep debugging session to find the reason why my test failed. After two hours of tracing step by step through the insides of Pig itself I noticed it was going to the "cleanupOnFailure" method. It turns out that the entire job failed in the unit test and the error was hidden to me. The e

Re: Testing using mock.Storage?

2014-11-23 Thread Niels Basjes
I did some additional testing myself and I now have the "smallest possible" way to reproduce the effect I see. I was able to reproduce the problem I'm facing by simply trying to run an existing unit test from pig without modification of the code at all. https://github.com/nielsbasjes/pig-loader-t

Testing using mock.Storage?

2014-11-22 Thread Niels Basjes
Hi, I have written a Pig Loader and I want to make unit tests for it that actually use it from Pig. It's a Maven project and as a first attempt I created a testing class and tried to create a java based unit test by doing something similar to this: https://svn.apache.org/repos/asf/pig/trunk/test/