-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
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.
- is related to
-
SERVER-71464 Pretty print unittest failure summary
- Closed
-
SERVER-59314 Report file and line in stack traces
- Backlog