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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Patch Available Patch Available Open Open
          2d 4h 17m 1 Arun C Murthy 03/Oct/11 00:15
          Open Open Patch Available Patch Available
          1d 19h 32m 2 Jonathan Eagles 04/Oct/11 19:34
          Patch Available Patch Available Resolved Resolved
          8d 11h 34m 1 Mahadev konar 13/Oct/11 07:09
          Resolved Resolved Closed Closed
          32d 17h 40m 1 Arun C Murthy 15/Nov/11 00:50
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          Jonathan Eagles added a comment -

          Thanks, Mahadev!

          Show
          Jonathan Eagles added a comment - Thanks, Mahadev!
          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
          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-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-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-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-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-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
          Mahadev konar made changes -
          Fix Version/s 0.23.0 [ 12315570 ]
          Mahadev konar made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Resolution Fixed [ 1 ]
          Hide
          Mahadev konar added a comment -

          Just committed this. Thanks John.

          Show
          Mahadev konar added a comment - Just committed this. Thanks John.
          Jonathan Eagles made changes -
          Affects Version/s 0.23.0 [ 12315570 ]
          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.
          Jonathan Eagles made changes -
          Link This issue is related to HADOOP-7709 [ HADOOP-7709 ]
          Jonathan Eagles made changes -
          Link This issue relates to HADOOP-7709 [ HADOOP-7709 ]
          Jonathan Eagles made changes -
          Link This issue is related to HDFS-2401 [ HDFS-2401 ]
          Jonathan Eagles made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          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.
          Jonathan Eagles made changes -
          Attachment MAPREDUCE-3132.patch [ 12497685 ]
          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
          Arun C Murthy made changes -
          Project Hadoop Common [ 12310240 ] Hadoop Map/Reduce [ 12310941 ]
          Key HADOOP-7712 MAPREDUCE-3133
          Component/s build [ 12312909 ]
          Component/s build [ 12311543 ]
          Arun C Murthy made changes -
          Project Hadoop Map/Reduce [ 12310941 ] Hadoop Common [ 12310240 ]
          Key MAPREDUCE-3132 HADOOP-7712
          Component/s build [ 12311543 ]
          Component/s mrv2 [ 12314301 ]
          Arun C Murthy made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          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.
          Jonathan Eagles made changes -
          Link This issue relates to HADOOP-7709 [ HADOOP-7709 ]
          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.
          Jonathan Eagles made changes -
          Attachment MAPREDUCE-3132.patch [ 12497214 ]
          Hide
          Jonathan Eagles added a comment -

          Trying without cross project patch

          Show
          Jonathan Eagles added a comment - Trying without cross project patch
          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
          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 -

          -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.
          Jonathan Eagles made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          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
          Jonathan Eagles made changes -
          Field Original Value New Value
          Attachment MAPREDUCE-3132.patch [ 12497208 ]
          Jonathan Eagles created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development