1.68.0 • Published 9 months ago
@vscode/debugadapter-testsupport v1.68.0
Test Support for VS Code Debug Adapters
Npm module with support classes for writing automated tests for a VS Code debug adapter.
The module provides a toolkit with Promise-based building blocks for individual protocol requests (e.g. stepInRequest
) and for common request sequences (e.g. hitBreakpoint
). These building blocks can be easily configured for a specific adapter and combined to form complex scenarios.
Here are three example Mocha tests:
var dc: DebugClient;
setup( () => {
dc = new DebugClient('node', './out/node/nodeDebug.js', 'node');
return dc.start();
});
teardown( () => dc.stop() );
test('should run program to the end', () => {
return Promise.all([
dc.configurationSequence(),
dc.launch({ program: "main.js" }),
dc.waitForEvent('terminated')
]);
});
test('should stop on entry', () => {
return Promise.all([
dc.configurationSequence(),
dc.launch({ program: "main.js", stopOnEntry: true }),
dc.assertStoppedLocation('entry', 1)
]);
});
test('should stop on a breakpoint', () => {
return dc.hitBreakpoint({ program: "main.js" }, "test.js", 15);
});
License
1.68.0
9 months ago
1.67.0
10 months ago
1.66.0
1 year ago
1.65.0
1 year ago
1.63.0
2 years ago
1.64.0
2 years ago
1.61.0
2 years ago
1.59.0
2 years ago
1.58.0
3 years ago
1.58.0-pre.0
3 years ago
1.57.0
3 years ago
1.57.0-pre.0
3 years ago
1.56.1
3 years ago
1.56.0-pre.0
3 years ago
1.56.0
3 years ago
1.55.1
3 years ago
1.55.0
3 years ago
1.55.0-pre.1
3 years ago
1.55.0-pre.2
3 years ago
1.55.0-next.0
3 years ago
1.54.0
3 years ago
1.54.0-pre.1
3 years ago
1.51.0
4 years ago