title: Is it possible to perform e2e test with Karma and angular with a real httpBackend?
body: <p>I am in the  development phase of a small web project and I would like to write some end to end tests that exercise my rest services, and ensure they behave as expected.  I think this project would get more out of testing the full flow than it would testing individual components.</p>
  
  <p>I am using karma for the remainder of my angular client tests, and would like to keep to one test runner.  </p>
  
  <p>I know this isn't going to work, without some other magic:</p>
  
  <pre><code>describe('e2e: http factory  test Definition', function(){
      'use strict';
  
      var myHttp = null ;
  
      beforeEach(module('myNgApplication'));
      beforeEach(inject(function (MyHttp) {
          myHttp = MyHttp
      }))
  
      it('has a functioning MyHttp factory object', (function (done) {
  
          //test the get
          var getPromise = myHttp.
              path('/').
              path('rest').
              path('v1').
              path('is-alive').
              get()
  
  
          getPromise.then(function(data){
              expect(data).to.be.a('string')
  
              var getDataObject = JSON.parse(data)
  
              done()
          }) ;
  
  
      }));
  
  }); //completed test case for case-summary
  </code></pre>