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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: