-
Notifications
You must be signed in to change notification settings - Fork 14
Home
Http-backend-proxy is a node module for use with the AngularJS Protractor end-to-end testing framework. It allows you to make configuration calls to $httpBackend from within Protractor itself as well as share data and functions between the test environment and the browser. At this point the proxy has a reasonably robust feature set including
- Buffering of calls to the browser maximize performance.
- The ability to share data and code between the protractor tests and the browser to further enhance fully encapsulated tests.
- The ability to configure the $httpBackend at page load so that HTTP calls made during page initialization are mockable.
- Available as an npm module with full test converge and regular Travis CI builds.
Being able to configuring the mock back end along side the tests that depend upon it improves the modularity, encapsulation and flexibility of integration tests. The proxy allows $httpBackend to live up to its full potential, making it easier to test angular web applications in abstraction from their back end services.
#Documentation
The following general topics are available.
[Usage](Installation & Usage)
- Installation
- Accessing the Proxy
- $httpBackend API
- Buffering
- Sharing Data/The Context Object
- Configuring on Page Load
- Resetting the Mock
The Test Harness & Setting up a Development Environment
The proxy itself is my own work. However parts of the test application and project structure, etc. are based off of the angular-seed project. This includes significant parts Test Harness documentation.
#License
This software is release under the MIT license.
For bugs feature requests and support, please post an issue
Pull requests are welcome. All I ask is that you do your best to follow ambient coding style of the application and provide appropriate test coverage for all changes.
See the Test Harness page for information on setting up your development environment.
By submitting a pull request you are attesting that you own or have a valid license to the code being submitted such that you have the right to provide it irrevocably for release under the MIT license.