Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-836

Refactor test TestDatabaseProvider.java: make each test case independent from other tests, not assume any external states/data

    XMLWordPrintableJSON

    Details

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

      Description

      Ideally tests should be independent from each other, not assume any external state/test data pre-exist on test environments. It helps setup before each test and clean up after each test using a method from base test class.

      If the same data has to be present for each test, maybe put it into Before then clean up in After.

        Attachments

        1. SENTRY-836.patch
          9 kB
          Sravya Tirukkovalur

          Activity

            People

            • Assignee:
              sravya Sravya Tirukkovalur
              Reporter:
              anneyu Anne Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: