- Learn to read code
- Mind your dependencies
- Setting up your environment
“Writing the test is easier than running the application.”
“It’s quicker than manually testing.”
“Writing more code (for defining tests) does NOT mean it takes longer than testing manually.”
“It’s hard to write tests and IT IS a skillset.”
“The difficulty of writing a test is to do with the structure of the code and what parts of it you can control through “mocking” functionality.”
Can Protractor and Karma be used together?
Protractor and Karma should not be used together; instead they provide separate systems for running tests. Protractor and Karma cover different aspects of testing – Karma is intended mostly for unit tests, while Protractor should be used for end to end testing.