I want to test my AngularJS application using Selenium and PhantomJS, but I am not finding an easy to start resource or video tutorial. Can you please suggest some good resource as a starting point.
|
As @Nima-Vaziri said, you should have a look at Karma to run unit tests on your app. This article will help you on this way. Then to run e2e tests, the new runner developped by the Angular team is Protractor and you can start with this demo : Protractor demo To understand, these docs were very useful to me: If you're going to work with AngularJS: you definitely should know about eggehead.io videos! This one is about Protractor. But, there's a lot of video tutorials very interesting to teach you how to build an Angular app! |
|||
|
Have you looked at this tutorial? The tutorial itself seems decent. You might have to change some stuff depending on what you choose as your test-runner (this tutorial chose Mocha). I'd also look at Karma and Protractor which are built by the AngularJS team. Protractor is targeted more towards end-to-end testing in AngularJS apps. If you're set on Selenium, you could also look at Nightwatchjs which is also end-to-end and runs against a Selenium server but requires Node.js. Nightwatchjs could be compared to Protractor but seems like it has easier-to-understand syntax. |
|||||||||||||
|