winstromming / sassdown

Generates styleguides from Markdown comments in CSS, SASS and LESS files using Handlebars
253 stars 22 forks source link

Sassdown should have functional test coverage #85

Open winstromming opened 9 years ago

winstromming commented 9 years ago

Problem:

Objective:

winstromming commented 9 years ago

Spawning and executing a child process for gruntfile and gulpfile output testing:

var exec = require('child_process').exec

describe('grunt', function () {
  before(function (done) {
    exec('./node_modules/.bin/grunt --base ./ --gruntfile ./tests/gruntfile.js', done)
  })
})
describe('gulp', function () {
  before(function (done) {
    exec('./node_modules/.bin/gulp --gulpfile ./tests/gulpfile.js', done)
  })
})