Sendo is an open source Node.js ecommerce platform. It is developed with MongoDB, Express and Angular.
##Requirements Sendo requires the following software to be installed:
- Node (version 0.10 or later)
- MongoDB (version 3.6.7 or later)
Our unit tests covered both client and server sides. Also, there are integration tests to cover server side api (file extension .integration.spec.js)
- Karma is used for the client side unit testing
- Mocha is used for the server side unit testing
To run client side unit tests
grunt test:client
Note: If you would like to use Webstorm with Karma Plugin, make sure set the environment variable NODE_ENV to test
To run server side unit tests and integration tests
grunt test:server
Note: If you would like to use Webstorm with Mocha Plugin, make sure set the environment variable NODE_ENV to test
The following command is to run both client/server unit tests and integration tests
grunt test
To setup e2e testing, you will need to update your Chrome binary path of the protractor.conf.js
...
"chromeOptions": {
binary: "<your chrome binary path>",
...
}
To run End-to-End Tests
grunt test:e2e
Note: If you would like to use Webstorm for e2e test, please follow the following instructions:
- set "Javascript files" to node_modules/grunt-protractor-runner/node_modules/protractor/lib/cli.js and
- set "Application Parameters" to protractor.intellij.conf.js