This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
node-spearhead/test
Dave Eddy 46927aeed7 integration tests updates
- support Array or String when using execPlus
- pass SSH_AUTH_SOCK to support ssh-agent signing
- use current node binary with process.execPath
- config.insecure defaults to false if undefined
2015-09-21 18:48:59 -04:00
..
integration integration tests updates 2015-09-21 18:48:59 -04:00
lib integration tests updates 2015-09-21 18:48:59 -04:00
unit lots of unit tests 2015-09-02 15:38:27 -04:00
README.md a start at a test framework 2015-09-01 00:31:00 -07:00
runtests a start at a test framework 2015-09-01 00:31:00 -07:00

The node-triton test suite.

There are two sets of tests here: unit tests which can be run in your local clone (see "test/unit/") and integration tests which are run against a cloudapi.

WARNING: While this test suite should strive to not be destructive to existing data in the used account, one should take pause before blindly running it with one's cloudapi creds.

Usage

Unit tests should be run before commits:

make test

Or you can run a specific test file via:

cd test
./runtest unit/foo.test.js

Integration tests: XXX how to run?

Development Guidelines

  • We are using tape.

  • Use "test/lib/*.js" and "test/{unit,integration}/helpers.js" to help make ".test.js" code more expressive:

  • Unit tests (i.e. not requiring the cloudapi endpoint) in "unit/*.test.js". Integration tests "integration/*.test.js".