Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1854

Use parameterized tests for the flow node duration grouped by flow node reports

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: None
    • Affects Version/s: None
    • Fix Version/s: 2.5.0, 2.5.0-alpha1
    • Component/s: backend
    • Labels:
      None

      Description

      Currently, we have a separate test file for each operation of the flow node duration grouped by flow nodes reports:
      AverageFlowNodeDurationByFlowNodeReportEvaluationIT
      MaxFlowNodeDurationByFlowNodeReportEvaluationIT
      MedianFlowNodeDurationByFlowNodeReportEvaluationIT
      MinFlowNodeDurationByFlowNodeReportEvaluationIT

      However, that causes a lot of code duplication and makes it harder to maintain the tests. Also it becomes error prone, since we might to forget to test behavior in one of the tests. Hence, we should only use test class the uses parameterized tests. Check out other test classes how it is done there.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            johannes.heinemann Johannes Heinemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: