Hadoop Common
  1. Hadoop Common
  2. HADOOP-7709

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: None
    • 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. HADOOP-7709.patch
        1 kB
        Jonathan Eagles
      2. HADOOP-7709.patch
        1.0 kB
        Jonathan Eagles
      3. HADOOP-7709.patch
        0.4 kB
        Jonathan Eagles
      4. HADOOP-7709.patch
        0.6 kB
        Jonathan Eagles
      5. HADOOP-7709.patch
        0.4 kB
        Jonathan Eagles

        Issue Links

          Activity

          Jonathan Eagles created issue -
          Jonathan Eagles made changes -
          Field Original Value New Value
          Attachment HADOOP-7709.patch [ 12497215 ]
          Jonathan Eagles made changes -
          Attachment HADOOP-7709.patch [ 12497216 ]
          Jonathan Eagles made changes -
          Attachment HADOOP-7709.patch [ 12497217 ]
          Jonathan Eagles made changes -
          Link This issue is related to MAPREDUCE-3132 [ MAPREDUCE-3132 ]
          Hide
          Jonathan Eagles added a comment -

          Should go in at the same time

          Show
          Jonathan Eagles added a comment - Should go in at the same time
          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
          Jonathan Eagles made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12497217/HADOOP-7709.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-HADOOP-Build/251//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/12497217/HADOOP-7709.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-HADOOP-Build/251//console This message is automatically generated.
          Hide
          Jonathan Eagles added a comment -

          Possibly the BUILDING.txt and HowToContribute should also be updated

          Show
          Jonathan Eagles added a comment - Possibly the BUILDING.txt and HowToContribute should also be updated
          Jonathan Eagles made changes -
          Attachment HADOOP-7709.patch [ 12497686 ]
          Hide
          Jonathan Eagles added a comment -

          New patch adds having the build system providing the test.build.data dir to its responsibilities.

          Running tests (for example mvn -Dtest=TestShell test) from a clean build will fail due to assumption that test.build.data dir is a build system provided directory.

          Show
          Jonathan Eagles added a comment - New patch adds having the build system providing the test.build.data dir to its responsibilities. Running tests (for example mvn -Dtest=TestShell test) from a clean build will fail due to assumption that test.build.data dir is a build system provided directory.
          Jonathan Eagles made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Jonathan Eagles made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hide
          Hadoop QA added a comment -

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

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

          +1 tests included. The patch appears to include 1 new or modified tests.

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

          Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/263//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/12497686/HADOOP-7709.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified tests. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/263//console This message is automatically generated.
          Jonathan Eagles made changes -
          Link This issue is related to HDFS-2401 [ HDFS-2401 ]
          Jonathan Eagles made changes -
          Link This issue is related to MAPREDUCE-3133 [ MAPREDUCE-3133 ]
          Jonathan Eagles made changes -
          Link This issue relates to MAPREDUCE-3133 [ MAPREDUCE-3133 ]
          Hide
          Jonathan Eagles added a comment -

          This patch actually does apply, but is failing due to the file change in hadoop-project.

          Show
          Jonathan Eagles added a comment - This patch actually does apply, but is failing due to the file change in hadoop-project.
          Hide
          Mahadev konar added a comment -

          John,
          You planning to update the BUILDING.txt in this jira?

          Show
          Mahadev konar added a comment - John, You planning to update the BUILDING.txt in this jira?
          Jonathan Eagles made changes -
          Attachment HADOOP-7709.patch [ 12498174 ]
          Hide
          Jonathan Eagles added a comment -

          Thanks, Mahadev! The benefit of this feature is developers knowing about and using this feature.

          John,

          You planning to update the BUILDING.txt in this jira?

          Show
          Jonathan Eagles added a comment - Thanks, Mahadev! The benefit of this feature is developers knowing about and using this feature. John, You planning to update the BUILDING.txt in this jira?
          Hide
          Hadoop QA added a comment -

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

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

          +1 tests included. The patch appears to include 1 new or modified tests.

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

          Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/275//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/12498174/HADOOP-7709.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified tests. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/275//console This message is automatically generated.
          Hide
          Jonathan Eagles added a comment -

          Again the patch does apply, only that the build doesn't know how to handle changes in the hadoop-project directory.

          Show
          Jonathan Eagles added a comment - Again the patch does apply, only that the build doesn't know how to handle changes in the hadoop-project directory.
          Hide
          Mahadev konar added a comment -

          I just committed this. Thanks John.

          Show
          Mahadev konar added a comment - I just committed this. Thanks John.
          Mahadev konar made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Resolution Fixed [ 1 ]
          Mahadev konar made changes -
          Fix Version/s 0.23.0 [ 12315569 ]
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Common-trunk-Commit #1069 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1069/)
          HADOOP-7709. 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=1182686
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/trunk/hadoop-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #1069 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1069/ ) HADOOP-7709 . 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=1182686 Files : /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/trunk/hadoop-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk-Commit #1147 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1147/)
          HADOOP-7709. 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=1182686
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/trunk/hadoop-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #1147 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1147/ ) HADOOP-7709 . 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=1182686 Files : /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/trunk/hadoop-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk-Commit #1089 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1089/)
          HADOOP-7709. 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=1182686
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/trunk/hadoop-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #1089 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1089/ ) HADOOP-7709 . 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=1182686 Files : /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/trunk/hadoop-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/)
          HADOOP-7709. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182686 from trunk

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

          • /hadoop/common/branches/branch-0.23/BUILDING.txt
          • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/branches/branch-0.23/hadoop-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/ ) HADOOP-7709 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182686 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182687 Files : /hadoop/common/branches/branch-0.23/BUILDING.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/branches/branch-0.23/hadoop-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/)
          HADOOP-7709. Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182686 from trunk

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

          • /hadoop/common/branches/branch-0.23/BUILDING.txt
          • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/branches/branch-0.23/hadoop-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/ ) HADOOP-7709 . Running a set of methods in a Single Test Class. (Jonathan Eagles via mahadev) - Merging r1182686 from trunk mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1182687 Files : /hadoop/common/branches/branch-0.23/BUILDING.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/branches/branch-0.23/hadoop-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk #859 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/859/)
          HADOOP-7709. 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=1182686
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/trunk/hadoop-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #859 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/859/ ) HADOOP-7709 . 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=1182686 Files : /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/trunk/hadoop-project/pom.xml
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk #829 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/829/)
          HADOOP-7709. 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=1182686
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml
          • /hadoop/common/trunk/hadoop-project/pom.xml
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #829 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/829/ ) HADOOP-7709 . 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=1182686 Files : /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/pom.xml /hadoop/common/trunk/hadoop-project/pom.xml
          Hide
          Jonathan Eagles added a comment -

          Thanks, Mahadev!

          Show
          Jonathan Eagles added a comment - Thanks, Mahadev!
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Patch Available Patch Available Open Open
          3d 22h 29m 1 Jonathan Eagles 04/Oct/11 20:34
          Open Open Patch Available Patch Available
          15m 2s 2 Jonathan Eagles 04/Oct/11 20:34
          Patch Available Patch Available Resolved Resolved
          8d 11h 26m 1 Mahadev konar 13/Oct/11 08:00
          Resolved Resolved Closed Closed
          32d 17h 50m 1 Arun C Murthy 15/Nov/11 00:50

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development