/sass-test-example

experiment showing basic tests to ensure your sass compiles

Primary LanguageJavaScript

scss tests Build Status

A trivial experiment showing basic tests to ensure your sass compiles and doesn't output css until the silent flag is turned off.

Uses Tape and node-sass. This is good because it uses libsass and Javascript. libsass is fast and you get to write tests using JavaScript, rather than Ruby. TAP provides you with a very lo-fi, portable way to test that's ideal for this scenario.

Usage

Clone this repo. Then...

$ npm install

There are 3 ways you could run the tests.

$ npm test

or

$ node test

or

$ ./test/index.js

If you need a watch task...

$ watch -d -n 2 npm test