Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3133

Running a set of methods in a Single Test Class

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Instead of running every test method in a class, limit to specific testing methods as describe in the link below.

      http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html

      Upgrade to the latest version of maven-surefire-plugin that has this feature.

      1. MAPREDUCE-3132.patch
        1 kB
        Jonathan Eagles
      2. MAPREDUCE-3132.patch
        1 kB
        Jonathan Eagles
      3. MAPREDUCE-3132.patch
        2 kB
        Jonathan Eagles

        Issue Links

          Activity

          Hide
          Jonathan Eagles added a comment -

          Example usage and manual testing performed

          mvn -Dtest=TestMRJobs#testRandomWriter test

          Show
          Jonathan Eagles added a comment - Example usage and manual testing performed mvn -Dtest=TestMRJobs#testRandomWriter test
          Hide
          Jonathan Eagles added a comment -

          -1 overall.

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 findbugs. The patch does not introduce any new Findbugs (version ) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          Show
          Jonathan Eagles added a comment - -1 overall. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs (version ) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings.
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12497208/MAPREDUCE-3132.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          -1 patch. The patch command could not apply the patch.

          Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/914//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12497208/MAPREDUCE-3132.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/914//console This message is automatically generated.
          Hide
          Jonathan Eagles added a comment -

          pom.xml changes only in this patch so no tests cases added

          manual test was performed to verify new features are working on standard tests as well as classes with @Before, @After, @BeforeClass, and @AfterClass annotations.

          verified .m2 cache that only maven-surefire-plugin version 2.9 is downloaded into the cache from a clean cache

          Show
          Jonathan Eagles added a comment - pom.xml changes only in this patch so no tests cases added manual test was performed to verify new features are working on standard tests as well as classes with @Before, @After, @BeforeClass, and @AfterClass annotations. verified .m2 cache that only maven-surefire-plugin version 2.9 is downloaded into the cache from a clean cache
          Hide
          Jonathan Eagles added a comment -

          Trying without cross project patch

          Show
          Jonathan Eagles added a comment - Trying without cross project patch
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12497214/MAPREDUCE-3132.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed unit tests in .

          +1 contrib tests. The patch passed contrib unit tests.

          Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/915//testReport/
          Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/915//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12497214/MAPREDUCE-3132.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in . +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/915//testReport/ Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/915//console This message is automatically generated.
          Hide
          Arun C Murthy added a comment -

          Jonathan - this is great, thanks!

          Can I ask you to go ahead and make this change for all of Hadoop to be consistent? Thanks.

          Show
          Arun C Murthy added a comment - Jonathan - this is great, thanks! Can I ask you to go ahead and make this change for all of Hadoop to be consistent? Thanks.
          Hide
          Arun C Murthy added a comment -

          Never mind, I see you've opened HADOOP-7709

          Show
          Arun C Murthy added a comment - Never mind, I see you've opened HADOOP-7709
          Hide
          Jonathan Eagles added a comment -

          Ran a complete test suite (common/hdfs/mapreduce on changes) and all tests are passing on a build and rebuild.

          Show
          Jonathan Eagles added a comment - Ran a complete test suite (common/hdfs/mapreduce on changes) and all tests are passing on a build and rebuild.
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12497685/MAPREDUCE-3132.patch
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed unit tests in .

          +1 contrib tests. The patch passed contrib unit tests.

          Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/942//testReport/
          Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/942//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12497685/MAPREDUCE-3132.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in . +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/942//testReport/ Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/942//console This message is automatically generated.
          Hide
          Mahadev konar added a comment -

          Just committed this. Thanks John.

          Show
          Mahadev konar added a comment - Just committed this. Thanks John.
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Common-trunk-Commit #1070 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1070/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev)

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688
          Files :

          • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #1070 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1070/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk-Commit #1148 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1148/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev)

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688
          Files :

          • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #1148 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1148/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk-Commit #1090 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1090/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev)

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688
          Files :

          • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #1090 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1090/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-0.23-Build #38 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/38/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182688 from trunk

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182691
          Files :

          • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Build #38 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/38/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182688 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182691 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-0.23-Build #47 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/47/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182688 from trunk

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182691
          Files :

          • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Build #47 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/47/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182688 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182691 Files : /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk #859 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/859/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev)

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688
          Files :

          • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #859 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/859/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk #829 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/829/)
          MAPREDUCE-3133. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev)

          mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688
          Files :

          • /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
          • /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml
          • /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #829 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/829/ ) MAPREDUCE-3133 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182688 Files : /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/pom.xml /hadoop/common/trunk/hadoop-mapreduce-project/pom.xml
          Hide
          Jonathan Eagles added a comment -

          Thanks, Mahadev!

          Show
          Jonathan Eagles added a comment - Thanks, Mahadev!

            People

            • Assignee:
              Jonathan Eagles
              Reporter:
              Jonathan Eagles
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development