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

How about some testing love #5

Open
daneroo opened this issue Nov 6, 2012 · 8 comments
Open

How about some testing love #5

daneroo opened this issue Nov 6, 2012 · 8 comments

Comments

@daneroo
Copy link

daneroo commented Nov 6, 2012

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 ??

@btford
Copy link
Owner

btford commented Nov 12, 2012

👍 This has been on my radar for a while. No promises on when, but this will happen!

@daneroo
Copy link
Author

daneroo commented Nov 12, 2012

If you'd like to spread out the work, I'd love to help.

@btford
Copy link
Owner

btford commented Nov 13, 2012

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.

@myguidingstar-zz
Copy link

IMO, testem with qunit is a convenient choice
an example: http://jsfiddle.net/boneskull/mGyHt/

@Siyfion
Copy link

Siyfion commented Jan 31, 2013

+1, especially with Testactular and Mocha!

@yoshuawuyts
Copy link

I'd be curious as to how mocha testing would look. Any eta on when it will come?

@ConceitedCode
Copy link

+1, would love for it to use Grunt! http://gruntjs.com/

@nullivex
Copy link

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.

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

No branches or pull requests

7 participants