thucydides
  1. thucydides
  2. THUCYDIDES-214

thucydides-jira-plugin produces wrong test ID in link posted back to JIRA when using ParameterizedRunner

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.250
    • Labels:
      None

      Description

      thucydides.version = 0.9.229

      Like https://java.net/jira/browse/THUCYDIDES-143, but specific to tests run with the ThucydidesParameterizedRunner and @UseTestDataFrom

      The method name in the test outcome contains the array index - 'methodName[0]' - so the hash created from this and posted to JIRA doesn't match the actual HTML file which is the hash of 'methodName'

      -String reportName = firstTestOutcome.getReportName() + ".html";
      +String methodName = firstTestOutcome.getMethodName();
      +String baseMethodName = methodName.contains("[") ? methodName.substring(0,methodName.indexOf("[")) : methodName;
      +String reportName = firstTestOutcome.withMethodName(baseMethodName).getReportName() + ".html";

        Activity

        Hide
        johnsmart added a comment -

        Could you submit a pull request for this?

        Thanks

        • John
        Show
        johnsmart added a comment - Could you submit a pull request for this? Thanks John
        Hide
        jgossit added a comment -

        done!

        Show
        jgossit added a comment - done!

          People

          • Assignee:
            johnsmart
            Reporter:
            jgossit
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: