Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902802

(RunTestsCommand) carefully calculate amount of not_run tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: jt6.0
    • Fix Version/s: jt6.0
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      Historically this is how the number of "not run" tests is calculated.

              int p = stats[Status.PASSED];
              int f = stats[Status.FAILED];
              int e = stats[Status.ERROR];
              int nr = stats[Status.NOT_RUN] =
                  harness.getTestsFoundCount() - p - f - e;

      However it is possible that in special circumstances the getTestsFoundCount() number could be lower than amount of passed tests - if tests are added dynamically.

      This could lead to negative number of not-run tests and could confuse stats formatter

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dbessono Dmitry Bessonov
              Reporter:
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: