anthonyshort / grunt-component-build

Build Components using Grunt.
MIT License
29 stars 12 forks source link

Add new unit tests #7

Closed kewah closed 11 years ago

kewah commented 11 years ago

I added some tests that check generated files (Grunt) with expected files (Component-build()). I currently use Makefile, to generate expected files, instead of a Grunt task because there are no plugin to run Shell commands compatible with Grunt 4.0. It could be changed later with Grunt-shell for example.

You just have to run make to generate expected files and grunt to test.

With this PR, tests are failing because of the outout of the stand-alone version of the component. Since this commit (35a4ffbac37f941d69288d021e8537f9bebf9780) the standalone template is not processed correctly (for testing I've done). I'll patch it in another PR (see #8).

anthonyshort commented 11 years ago

Doing some work upgrading this with some 0.4.0 goodies now. I'll push up a new version with these tests and with the plugins pulled out.