question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not a supported test executable (Catch2 on remote ssh)

See original GitHub issue

Checklist

  • The issue is about this extension and NOT about a fork.
  • Check the known issues list.
  • The latest version of the extension was used.

Describe the bug I have a simple Catch2 test suite that runs fine from command line and vscode tasks. However its test cases don’t get listed in Test Explorer. Here is a sample run of it with “-l”:

{workspace-root} $ build/Tests -l
All available test cases:
  Load library and register callbacks
      [init]
1 test case

Desktop

  • Extension Version: latest
  • VS Code Version: latest
  • Catch2 / Google Test / DOCTest Version: Catch2 v2.12.1
  • OS Type and Version: Ubuntu 18 LTS
  • Using remote-ssh/docker/wsl?: Yes, remote-ssh

Log (optional but recommended)

[2020-05-15 12:48:20.146] [DEBUG] Not a test executable: /home/$USER/{workspace-root}/build/Tests reason: [Error: Not a supported test executable: /home/$USER/{workspace-root}/build/Tests
 output: 
        at /home/$USER/.vscode-server/extensions/matepek.vscode-catch2-test-adapter-3.2.0/out/dist/main.js:23:34044
        at async e.ExecutableConfig.load (/home/$USER/.vscode-server/extensions/matepek.vscode-catch2-test-adapter-3.2.0/out/dist/main.js:23:27220)
        at async Promise.all (index 0)
        at async o.load (/home/$USER/.vscode-server/extensions/matepek.vscode-catch2-test-adapter-3.2.0/out/dist/main.js:22:29374)]
[2020-05-15 12:48:20.146] [INFO] load finished 0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
matepekcommented, Sep 11, 2020

Assuming that “this” means this issue(201): yes, this can cause symptoms like that.

1reaction
gatopeichcommented, May 15, 2020

Okay I found the issue: there was a dynamic linked library with a relative path. It could only run from the workspace root dir.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CppTestMate/community - Gitter
Hey, wondering if it possible to have this extension not automatically scan the test executable for changes? Right now it seems like the...
Read more >
Catch2 test don't work when building application with CMake
I cloned the repo and input the commands but it said "The C++ Compiler MinGW/bin/g++.exe is not able to compile a simple test...
Read more >
Package List — Spack 0.20.0.dev0 documentation
Supposed to be flexible and powerful, and attempts to be compatible with the functionality of the Python standard argparse library (though not necessarily ......
Read more >
debugging testing - CLion - ComponentSource
Unit testing: CLion now supports Catch2 template tests. ... the remote SSH connection in cases where Python isn't installed on your computer ....
Read more >
Unit test reports - GitLab Docs
Unit test reports currently only support test reports in the JUnit report format. ... GitLab does not parse very large nodes of JUnit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found