DdlUtils
  1. DdlUtils
  2. DDLUTILS-255

Test tearDown call of assertAndEnsureClearDatabase masks the real test failure

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      Currently TestAgainstLiveDatabaseBase.tearDown() will call assertAndEnsureClearDatabase() even when there is a test failure. Unfortunately this masks the real test failure as often or not the test has created additional data that assertAndEnsureClearDatabase() will throw an AssertionFailedError on. This causes the test failure AssertionFailedError to get replaced by the tearDown() instance.

        Activity

        Tom Palmer created issue -
        Tom Palmer made changes -
        Field Original Value New Value
        Attachment tearDownMasksRealError.patch [ 12442783 ]

          People

          • Assignee:
            Thomas Dudziak
            Reporter:
            Tom Palmer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development