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

Print clickable file/line in unittest failure summary

    • Server Programmability

      When a unittest binary fails, it prints a list of tests that failed:

      {"t":{"$date":"2022-11-16T19:18:37.961Z"},"s":"I",  "c":"TEST",     "id":23068,   "ctx":"main","msg":"FAILURE","attr":{"failedTestsCount":5,"failedSuitesCount":2,"failedTests":["LogicalRewriter/NotPushdownToplevel","LogicalRewriter/NotPushdownUnderLambdaSuccess","LogicalRewriter/NotPushdownUnderLambdaKeepOuterTraverse","PhysRewriter/FilterIndexingVariable","PhysRewriter/NotPushdownUnderLambdaKeepOuterTraverse"]}}
      

      Could we change this format to make it more clickable? For example, imagine if it printed something like this:

      src/mongo/db/query/optimizer/logical_rewriter_optimizer_test.cpp:1566:TEST(LogicalRewriter, NotPushdownToplevel) {
      src/mongo/db/query/optimizer/logical_rewriter_optimizer_test.cpp:1628:TEST(LogicalRewriter, NotPushdownUnderLambdaSuccess) {
      src/mongo/db/query/optimizer/logical_rewriter_optimizer_test.cpp:1715:TEST(LogicalRewriter, NotPushdownUnderLambdaKeepOuterTraverse) {
      src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp:1615:TEST(PhysRewriter, FilterIndexingVariable) {
      src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp:3948:TEST(PhysRewriter, NotPushdownToplevel) {
      src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp:4008:TEST(PhysRewriter, NotPushdownUnderLambdaSuccess) {
      src/mongo/db/query/optimizer/physical_rewriter_optimizer_test.cpp:4102:TEST(PhysRewriter, NotPushdownUnderLambdaKeepOuterTraverse) {
      

      Then it would be easier to jump directly to each failing test.

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: