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

        Issue Links

          Activity

          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
          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
          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.
          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.
          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?
          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.
          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!

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development