Skip to content

An example project for running mocha tests remotely via ssh using the Mocha Test Explorer for VS Code

Notifications You must be signed in to change notification settings

hbenl/vscode-mocha-ssh-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running mocha tests remotely via ssh with Mocha Test Explorer

This is a sample project for running mocha tests remotely via ssh with Mocha Test Explorer. It uses the ssh launcher script from https://github.com/hbenl/mocha-explorer-launcher-scripts.

To run the tests in this sample project, you will need a machine that has node and rsync installed and that you can ssh into without being prompted for a password. Change the SSH_HOST, SSH_USER and SSH_WORKSPACE_PATH environment variables in .vscode/settings.json (SSH_WORKSPACE_PATH should point to an empty directory on the remote host where this workspace will be copied to), then you should be able to run the tests using Mocha Test Explorer. If it doesn't work, have a look at the diagnostic log to see why it fails.

About

An example project for running mocha tests remotely via ssh using the Mocha Test Explorer for VS Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages