Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98251

query_tester should log the first line of a test file on failure instead of the file name

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: QueryTester
    • None
    • Fully Compatible
    • QO 2024-12-23

      The error message when there is a mismatch between file name and the first line of a test file (i.e. the test name) should give us information about what is written on the first line of the test file.

      If it fails, it will currently print: Expected first test line of src/mongo/db/query/query_tester/tests/query-correctness-tests/generated_tests/1234025/group_3.test to match the test name, but got group_3
      but we probably want
      Expected first test line of src/mongo/db/query/query_tester/tests/query-correctness-tests/generated_tests/1234025/group_3.test to match the test name, but got <first line of test file>

            Assignee:
            lynne.wang@mongodb.com Lynne Wang
            Reporter:
            naafiyan.ahmed@mongodb.com Naafiyan Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: