The TestMahoutExamples.groovy file is very comprehensive but also very long and complex. There are other JIRA's that suggest that some of the tests in it fail. It is different from TestHadoopExamples in that it is not easy to comment out the subtests to only run a subset.
1) [TO BE MOVED TO A SEPARATE JIRA] Refactoring tests into separate groovy scripts so that they can be filtered in the Pom, using the includes. i.e.
And as another convenience for the purpose of easing the running of these tests, I suggest
2) [THIS JIRA: 1052] Utilizing MAHOUT_HOME environmental variable in the tests if it is provided, so that the mahout package installation can be tested directly from tarballs.