TestMate can no longer detect Unit Test cases

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • Hide

      Ensure discovery is set to include all files matching the glob pattern "bazel-bin/src/*/_test" or similar in TestMate settings. 

      Compile any test, for example "bazel build +bson_test", observe that the error message in the TestMate log output.  Tests will not popular in the Test Explorer View.

      Show
      Ensure discovery is set to include all files matching the glob pattern "bazel-bin/src/* / _test" or similar in TestMate settings.  Compile any test, for example "bazel build +bson_test", observe that the error message in the TestMate log output.  Tests will not popular in the Test Explorer View.
    • Programmability 2026-02-02, Programmability 2026-03-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When running Test Mate in VSCode, test discovery on a unittest executable fails for determining that a test is not a supported type.

      Note: you must enable test logging in TestMate options to view in OUTPUT  for VSCode

      [2026-02-06 14:07:41.175] [DEBUG] Not a supported test executable {  spawner: s {},  execPath: '/home/ubuntu/.cache/bazel/_bazel_ubuntu/438e730df43f16e18dd90600e6cbe8fb/execroot/_main/bazel-out/aarch64-fastbuild/bin/src/mongo/db/modules/enterprise/src/audit/audit_test.runfiles/_main/src/mongo/db/modules/enterprise/src/audit/audit_test_with_debug',  stdout: '{"t":{"$date":"2026-02-06T14:07:41.002Z"},"s":"I",  "c":"-",        "id":4672602, "ctx":"main","msg":"Testing behaviors are enabled. This has serious implications for both performance and security.","tags":["startupWarnings"]}\n',  stderr: '  --list                     List all test suites in this unit test.\n' +    '  --suite arg                Test suite name. Specify --suite more than once to\n' +    '                             run multiple suites.\n' +    '  --filter arg               Test case name filter. Specify a regex \n' +    '                             partial-matching the test names.\n' +    '  --fileNameFilter arg       Filter test cases by source file name by \n' +    '                             partial-matching regex.\n' +    '  --repeat arg (=1)          Specifies the number of runs for each test.\n' +    "  --verbose [=arg(=v)]       Log more verbose output.  Specify one or more 'v's\n" +    '                             to increase verbosity.\n' +    '  --internalRunDeathTest arg Used internally to resume a death test in the \n' +    '                             child process.\n' +    '  --tempPath arg             Directory to place mongo::TempDir subdirectories\n' +    '  --autoUpdateAsserts        Auto-update expected output for asserts in unit \n' +    '                             tests which support auto-updating.\n' +    '  --rewriteAllAutoAsserts    Rewrite all auto-updating assertions for \n' +    '                             self-testing purposes.\n'} 

            Assignee:
            Billy Donahue
            Reporter:
            Benjamin Pearce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: