Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@vscode/debugadapter-testsupport
Advanced tools
Npm module with mocha test support for Visual Studio 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);
});
FAQs
Npm module with mocha test support for Visual Studio Code debug adapters
The npm package @vscode/debugadapter-testsupport receives a total of 2,814 weekly downloads. As such, @vscode/debugadapter-testsupport popularity was classified as popular.
We found that @vscode/debugadapter-testsupport demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.