Comments (4)
Hey, Wow you are so good achieving all of this.
I will add this feature.
Also I would like to ask you to share some How To with us. All that stuff you achieved I would put to the SUPPORT.md file in this repo.
from vscode-catch2-test-adapter.
Thanks for the update.
Here is an example of a testMate.cpp.debug.configTemplate
that can be used for remote debugging of a test.
I have added some comments. This could be extended with setupCommands
if more control over gdb is needed.
"testMate.cpp.debug.configTemplate": {
"variables": {
// Take active ssh target from ms-vscode.cpptools extension
"device": "${command:C_Cpp.activeSshTarget}",
"localBindAddress": "localhost",
"gdbPort": "2345",
//
// targetDir is the directory on the remote device where rsync will put the test executable
"targetDir": "/tmp/testing",
//
// targetFilePath is the full path of the test executable on the remote device,
// ${filename} is the just the filename part from ${exec}
"targetFilePath": "${targetDir}/${filename}"
},
"type": "${assert:testMate.cpp.debug.configTemplate doesn't support this platform!}",
"linux": {
"type": "cppdbg",
"MIMode": "gdb",
},
"miDebuggerPath": "gdb-multiarch",
"miDebuggerServerAddress": "${localBindAddress}:${gdbPort}",
"deploySteps": [
{
// create directory for rsync
"type": "ssh",
"host": "${device}",
"command": "mkdir -p ${targetDir}"
},
{
// rsync test executable (${exec}) to remote device
"type": "shell",
"command": "rsync --archive --quiet \"${exec}\" ${device}:\"${targetFilePath}\""
},
{
// run test executable under gdb server
"type": "ssh",
"host": {
"hostName": "${device}",
"localForwards": [
{
"bindAddress": "${localBindAddress}",
"port": "${gdbPort}",
"host": "localhost",
"hostPort": "${gdbPort}"
}
]
},
"command": "gdbserver --once :${gdbPort} ${targetFilePath} ${argsStr}",
"continueOn": "Listening on port",
}
]
}
from vscode-catch2-test-adapter.
Fixed in v4.9.0.
This issue was mentioned in CHANGELOG.md under a released entry so it is assumed to be fixed.
User verifications are always welcome.
from vscode-catch2-test-adapter.
Thank you very much for this new feature. It works without issues for me.
from vscode-catch2-test-adapter.
Related Issues (20)
- Bazel, Runfiles, and C++ TestMate - how to use properly? HOT 11
- runTask always reporting "Task not found" HOT 2
- Parallel execution requires per-instance unique identifiers HOT 5
- fail to loading testing binary HOT 7
- Don't re-indent `std::cout` output HOT 1
- [Catch2] Custom main file not being picked up HOT 3
- Implicit gtest_filter fails when running 300 tests HOT 1
- Should files.watcherExclude be honored when finding tests? HOT 5
- Label merging is broken after adding current working directory in the advanced executables configuration HOT 8
- Unexpected warning in Test Results related to "Unknown XML tag: TestCase" HOT 4
- How to setup bazel properly? (pattern, cwd, ...) HOT 2
- how to get run target path
- deactive discovery watcher at build time HOT 1
- [Abritrary Test grouping] : allow to make custom groups based on several config for advancedExecutables HOT 2
- Feature request: Test Coverage API support
- Highlight the first error, not the last
- Continuous run only selected tests
- Missing additionnal context from GoogleTest failures HOT 4
- Leading whitespace in test output unexpectedly stripped
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-catch2-test-adapter.