Skip to content

Conversation

@zckrs
Copy link
Collaborator

@zckrs zckrs commented Nov 10, 2014

Add a test suite on the generated files.

  • Enable coveralls.io
  • Yeoman you should shut up during test => thanks @MethodGrab Gist mute.js
  • Create mocha test test/test-files-generate.mocha.js
    • For each scenario
    • assert file exist or not exist
    • assert contents of the files who are templating with LoDash: bower.json, package.json, src/app/index.js, src/index.html, src/app/vendor.scss, and gulp's tasks
      (must be completed see files.json)

Tips: In Sublime Text go to test/test-files-generate.mocha.js and folding line with shortcut (CTRL+K, CTRL+3) you should see only describe() and it()

Screenshot:
mocha_output

Travis CI build: https://travis-ci.org/eleven-labs/generator-gulp-angular/builds/40558096

Please community reviews this PR before merge !

zckrs added 5 commits November 10, 2014 11:19
Used yeoman-generator.assert for faster test

More test for file creation & add test for file content

Fix travis coverall

Test gulp inception works on Windows

More test for file content

Edit README

Fix require mock prompt in test

Fix test with new path bower_compenents in index.html

Update deps test
@zckrs
Copy link
Collaborator Author

zckrs commented Nov 14, 2014

Next improve:

  • test for none UI Framework
  • rewrite test-gulp-inception to cover all case
  • complete test on generated app

@Swiip

zckrs pushed a commit that referenced this pull request Nov 15, 2014
Improved test on the generated files
@zckrs zckrs merged commit d5cf0e1 into Swiip:master Nov 15, 2014
@zckrs zckrs deleted the improve-test branch February 19, 2015 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant