Saturday, June 13, 2015

Test Automation NodeJS Application using Grunt

In my previous post I showed how to use Grunt in your NodeJS project. And also I have showed how to run NodeJS tests with mocha and how to run Jasmine tests with Karma. In this post I will show how to automate those tasks using Grunt.
I assume you have installed and configured Grunt, according to my previous post. Then install grunt-karma and grunt-mocha-test as npm packages.
Then configure grunt tasks for above modules.
To run test cases, only thing you have to do is run grunt test command in your command prompt against your project location.
Download Source Code from GitHub.

No comments:

Post a Comment