O'Reilly logo

Dependency Injection with AngularJS by Alex Knol

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

End-to-end testing

End-to-end testing should actually be the start of your test-driven development cycle when you adhere to the BDD standard. While behavior-driven development (BDD) is much more than just testing, one of the pillars is that you start by defining a test for a behavior at the highest possible level. This test will obviously fail if the parts underneath aren't ready yet. It will allow a well-defined behavior and all the different parts that will power this feature will get their own special unit test. We have seen how these unit tests are constructed and how dependency injection plays a role in there. After all the underlying unit tests are made to pass, the end-to-end test should pass as well. In the end, the end-to-end tests should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required