I don’t know why but I’m finding it really difficult to get my head around setting up a JavaScript test using AngularJS.
I have my app.js, controller.js plus a number of other files for Ajax, Storage services, filters etc. My app works fine but I want to learn how to do E2E and unit testing.
I think I need to create a standalone HTML page that runs my tests, but I’m not sure, I’m also not sure which extra JavaScript files/libraries I might need.
Is there an AngularJS test example I could use to get the initial set-up?
Ideally I’d like to run the JS tests I create from within Visual Studio 2012…but that’s a nice to have!
I recomend you to look at angular-seed project.
It has e2e test already setup.
https://github.com/angular/angular-seed