Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3817

Refactor RunOn filter in legacy spec runner to use mocha hooks

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 0
    • Not Needed

      Currently, the legacy spec runner loops over the runOn requirements creating test per requirement. It then depends on the filters to delete the tests that don't apply. With the semi-recent addition of a third topology "load-balanced" that doesn't appear in the legacy spec tests it's difficult to work with this style of test writing to force tests to run on serverless.

      We should instead add the runOn requirement check to a beforeEach hook applied to all the tests from a given file. This allows us to control the runOn requirement much "closer" to the test and unblock with more granularity tests we need to run against serverless.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: