Socket
Socket
Sign inDemoInstall

dry-test-vm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dry-test-vm

Dry Test Virtual Machine


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Package last updated on 18 Sep 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc