Sample project for setting up test-driven development of OpenWhisk actions using javascript.
The project exposes a REST style API via OpenWhisk. The API is implemented based on this project.
Javascript actions are built via grunt. This includes local unit testing of action logic via nodeunit. This article describes how to install and setup such projects.
Note: When developing an action, provide tests first, then build with grunt
.
Integration testing is done continuously via travis ci.
Note: You can test the remote action with the local script local-test.sh
.
TODO: trigger unit tests via travis too?