Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38304

Support multiple methods with @TestExtension

    Details

    • Type: Improvement
    • Status: In Review (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: jenkins-test-harness
    • Labels:
      None
    • Environment:
      jenkins-test-harness-2.14
    • Similar Issues:

      Description

      @TestExtension is applicable in following two ways:

      1. Applied to all test cases in that test.
      2. Applied to a specific test case.

      It's often the case that some class for tests is used by multiple test cases, but not by all cases in the test.
      It's is great if I can specify multiple test cases to @TestExtension.

        Attachments

          Activity

          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/jenkins-test-harness/pull/35
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/org/jvnet/hudson/test/TestExtension.java
          src/main/java/org/jvnet/hudson/test/TestExtensionLoader.java
          src/test/java/org/jvnet/hudson/test/TestExtensionTest.java
          http://jenkins-ci.org/commit/jenkins-test-harness/dc1d32a0a08eae82496cdb332f654627884f5123
          Log:
          [FIXED JENKINS-38304] Support TestExtension get activate in multiple test cases

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/org/jvnet/hudson/test/TestExtension.java src/main/java/org/jvnet/hudson/test/TestExtensionLoader.java src/test/java/org/jvnet/hudson/test/TestExtensionTest.java http://jenkins-ci.org/commit/jenkins-test-harness/dc1d32a0a08eae82496cdb332f654627884f5123 Log: [FIXED JENKINS-38304] Support TestExtension get activate in multiple test cases

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              ikedam ikedam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: