Skip to content

Instantly share code, notes, and snippets.

@mklabs
Created March 25, 2012 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mklabs/2201461 to your computer and use it in GitHub Desktop.
Save mklabs/2201461 to your computer and use it in GitHub Desktop.
test
# cucumberjs + zombiejs + grunt
# this makes testing easier than ever
> node-build-script@0.0.1 pretest /Users/mk/Temp/dev/mklabs/node-build-script
> git submodule update --init && rm -rf .test && mkdir .test && cp -r test/h5bp/* test/h5bp/.htaccess .test/
> node-build-script@0.0.1 test /Users/mk/Temp/dev/mklabs/node-build-script
> node test --log && cd test && node ../node_modules/cucumber/bin/cucumber.js
Running tests:
✔ test-basics.js
Summary:
1 passed tests
0 failed tests
Starting http server on localhost: 3000
.copy /Users/mk/Temp/dev/mklabs/node-build-script/test/fixtures/grunt.js to /Users/mk/Temp/dev/mklabs/node-build-script/.test/grunt.js
end?
Spawning grunt with following arguments
grunt dom -t ../tasks -c /Users/mk/Temp/dev/mklabs/node-build-script/.test/grunt.js --no-color
Running "dom" task
About to process following files
» 404.html
» index.html
with the following set of selectors
» options
» script[data-build]
» link
» img
» script, link, img
About to process 404.html
» handle script[data-build]
» handle link
» handle img
» handle script, link, img
› writing to output 404.html.test
✔ 404.html
About to process index.html
» handle script[data-build]
» handle link
>>
/Users/mk/Temp/dev/mklabs/node-build-script/.test/css/style.css
› writing to output css/style.min.css
» handle img
» handle script, link, img
› writing to output index.html.test
✔ index.html
Done, without errors.
Grunt exit: 0
. » Visiting http://localhost:3000/index.html.test
» /index.html.test
» /js/libs/modernizr-2.5.3.min.js
» /js/plugins.js
» /js/script.js
» /js/plugins.js
» /js/script.js
. » /index.html.test
» /js/libs/modernizr-2.5.3.min.js
» /js/plugins.js
» /js/script.js
» /js/plugins.js
» /js/script.js
.
1 scenario (1 passed)
4 steps (4 passed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment