Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
dry-test-vm
Advanced tools
Vagrant VM that runs clean installs of node components, and tests that they work.
For this to work repeatedly, DO NOT install anything outside of npm. We blow away the npm folders before every test. That's how we ensure a clean setup without rebuilding the vm every time.
If you do install something else -- don't -- make sure to remove it cleanly at the end of your test script.
To run:
Install vagrant, and virtual box (follow the instructions on the vagrant page).
then install the binary:
npm install dry-test-vm
run dry-test-vm <path to test script>
It will take a while the first time, it has to provision. It will be faster after the first run. It will leave the VM running.
Run dry-test-vm halt
to stop it.
Your test script is a shell script. here is a really simple example I use to test node-tux.
npm install -g node-tux
echo "{}" > .tux.json
tux
That's it. If this was in a shell script in my project directory called "test-tux.sh", I'd run:
dry-test-vm ./test-tux.sh
You can only run one of these tests at a time, because you're using the same virtual machine. Don't try to run two at once.
That's it. Enjoy.
FAQs
Dry Test Virtual Machine
The npm package dry-test-vm receives a total of 0 weekly downloads. As such, dry-test-vm popularity was classified as not popular.
We found that dry-test-vm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.