...
- Create a new Junit Run Configurations, pick any Pig test suite as "Test class"
- In "VM arguments", put "-Xmx1024m -Dhadoop.log.dir=build/test/logs"
- Change "Working directory" into your PIG_HOME
- In Classpath, add one user entries "${USER}/pigtest/conf$PIG_HOME/build/classes" and "$PIG_HOME/pig*.jar"
Troubleshooting
- Build problems: Check if eclipse is using JDK version 1.6, pig needs it (Under Preferences/Java/Compiler).