/grunt-testing-workshop

Learning to refactor and test Grunt Tasks within BBC News and BBC R&D.

Primary LanguageJavaScript

Testing Grunt Tasks

This is the codebase used for Engineering meeting about Grunt tasks.

The goals are:

  • how to refactor that in modular code
  • how to test it

How to write is tight to how to test.

Tools used

Install

git clone https://github.com/oncletom/grunt-testing-workshop.git
cd grunt-testing-workshop
npm install -g grunt-cli
npm install

Run the task

grunt generateJS:english

Run the tests

grunt test