PigUnit is a simple xUnit framework that enables you to easily test your Pig scripts. With PigUnit you can perform unit testing, regression testing, and rapid prototyping. No cluster set up is required if you run Pig in local mode.
A picture's worth a 1000 tests.
Unit testing asserts can be difficult to use. Approval tests simplify this by taking a snapshot of the results, and confirming that they have not changed.
Y. Zhang, Q. Liu, and Y. Liu. Proceedings of the 2014 International Conference on Computer Science and Electronic Technology, page 312-316. Atlantis Press, (January 2015)
T. Reps, T. Ball, M. Das, and J. Larus. Software Engineering — ESEC/FSE'97, volume 1301 of Lecture Notes in Computer Science, page 432-449. Berlin, Heidelberg, Springer, (1997)