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

Run unit tests with BSON-EXT installed

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      Use Case

      As a node driver engineer
      I want our BSON-EXT test to run the unit tests
      So that we can increase coverage, specifically for the utf8 validation option.

      User Impact

      • BSON-EXT always throws on invalid UTF8 it would be good to demonstrate that behavior remains

      Dependencies

      • EVG script: .evergreen/run-bson-ext-test.sh

      Unknowns

      • None

      Acceptance Criteria

      • ensure unit tests run within that evergreen task
        • Look into either splitting out a separate task or make the unit tests run as a a part of the integration run so that they're included in the xunit.xml output
      • Fix the commands.test.js tests
        • utf8Validation: false should skip when using bson-ext
        • utf8Validation: true should change the assertions on the errors thrown to include the bson-ext format of the error.
      • update the version the evg script installs (2.0+)

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: