Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sassdown should have functional test coverage #85

Open
winstromming opened this issue Mar 4, 2015 · 1 comment
Open

Sassdown should have functional test coverage #85

winstromming opened this issue Mar 4, 2015 · 1 comment
Assignees
Milestone

Comments

@winstromming
Copy link
Owner

Problem:

  • Manual testing is currently required to ensure the correct processing of output by the module, which is prone to user error.

Objective:

  • Write a series of functional tests to be instanced using Mocha, asserting that the core methods within the module are functioning correctly and returning the desired output.
  • Write another series of tests that assert both gulp and grunt, in addition to node streams, can return the desired output when processes are spawned on the command line.
@winstromming winstromming self-assigned this Mar 4, 2015
@winstromming winstromming added this to the 1.0.0 milestone Mar 4, 2015
@winstromming
Copy link
Owner Author

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)
  })
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant