Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-206

Use generated collection names for tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.0.8
    • Component/s: None
    • Labels:

      Description

      As discussed in mongodb/mongo-swift-driver#97, we should use generated names for test collections. This would minimize the chance of different tests using the same collection and inadvertently running with pre-existing data. It may also allow us to leave data behind for failed tests if we like (PHPLIB does this).

      The database name can be constant (where possible) throughout the test suite.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              patrick.freed Patrick Freed
              Reporter:
              jmikola Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: