Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-15456

pytest automatic test discovery should print a useful error if no tests run

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: sconsUtils
    • Labels:
      None
    • Team:
      Architecture

      Description

      If automatic python test discovery is enabled but no tests run then scons fails in a very mysterious way: an error is reported and a tests/.tests/(stuff).failed file is written but neither that file nor any message gives a hint as to what is wrong. This is especially confusing if scons runs unit tests, as the user sees tests being run and passing, yet the final result is a failure with no explanation.

      Please add a useful error message when this occurs. It can even be speculation, if necessary, e.g. "if no tests failed then it is likely no unit tests were run (other than possibly flake8)"

        Attachments

          Issue Links

            Activity

            Hide
            tjenness Tim Jenness added a comment -

            I believe that this will be handled in DM-11693 – there is a problem in that DM-11693 assumes that this situation only happens if tests are being re-run and all tests previously passed.

            Show
            tjenness Tim Jenness added a comment - I believe that this will be handled in DM-11693 – there is a problem in that DM-11693 assumes that this situation only happens if tests are being re-run and all tests previously passed.
            Hide
            ktl Kian-Tat Lim added a comment -

            I don't think this is a problem now, although perhaps I'm misunderstanding what the original situation was.

            Show
            ktl Kian-Tat Lim added a comment - I don't think this is a problem now, although perhaps I'm misunderstanding what the original situation was.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rowen Russell Owen
              Watchers:
              Brian Van Klaveren, Kian-Tat Lim, Russell Owen, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.