angular-express-seed
angular-express-seed copied to clipboard
How about some testing love
Just learning angular - through yeoman, would love to help make this seed more like that:
- Testing with testacular
- Minification/concatenation from the connect/express directly
- liveReload
If we can discuss the path forward, I'd love to help... Maybe it would be best to add to the yeoman angular generators directly ??
:+1: This has been on my radar for a while. No promises on when, but this will happen!
If you'd like to spread out the work, I'd love to help.
Be my guest! I haven't decided exactly how this should be implemented, but I want to run unit tests on both the front and back end, as well as integration tests.
I definitely want to use Testacular to test the client. I'm thinking maybe Mocha to run tests on the server, but I'm open to suggestions. I'd like to have one ./run-tests script that runs and reports results from all of the tests whenever project files are changed.
IMO, testem with qunit is a convenient choice an example: http://jsfiddle.net/boneskull/mGyHt/
+1, especially with Testactular and Mocha!
I'd be curious as to how mocha testing would look. Any eta on when it will come?
+1, would love for it to use Grunt! http://gruntjs.com/
I created this simple bower package that can be used as a drop in replacement to mock this library for unit testing.
E2E testing would require something a bit different.
https://github.com/nullivex/angular-socket.io-mock
I would be welcome to any suggestions in the docs to address some of what everyone is asking for here.
Currently my testing setup looks like this:
- Karma - test runner
- Mocha - test framework
- ChaiJS - assertion library
- RequireJS - environment loader
My boilerplate that achieves this can be found here: https://github.com/nullivex/ragetweet
@btford Maybe something similar to that could be used for the seed to test with. I guess it would take some modification to work without RequireJS but other than that its working well for us so far.