Divide mongocxx tests into unit, mocked unit and integration tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, all driver tests except the instance test wind up in a single "driver" test binary. Also, tests sources are jumbled together in a single directory. It may also be that there are a mix of mocked and non-mocked tests in a single file. This makes it hard to know what failed when the test fails and hard to know where to find integration and unit tests in the source.

      I think it would be a lot clearer to divide test binaries as follows:

      • unit – unit tests that do not rely on mocking, e.g. options class tests
      • mock – unit tests that require mocking libmongoc functions
      • integration – tests that require a mongod

      Similarly, test sources should be divided along similar lines, possibly into separate directories.

            Assignee:
            Unassigned
            Reporter:
            David Golden
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: