admin管理员组

文章数量:1415673

So I've heard of unit and integration testing, but I just recently heard of midway testing. It seems like the term is used most monly in an AngularJS context. A Google query turned up very little information on the topic. My questions about midway testing are these:

  1. How does it differ from unit and integration testing?
  2. What purpose does it serve?
  3. What problems does it address that the other two approaches do not address?
  4. Is it an AngularJS specific concept?

So I've heard of unit and integration testing, but I just recently heard of midway testing. It seems like the term is used most monly in an AngularJS context. A Google query turned up very little information on the topic. My questions about midway testing are these:

  1. How does it differ from unit and integration testing?
  2. What purpose does it serve?
  3. What problems does it address that the other two approaches do not address?
  4. Is it an AngularJS specific concept?
Share Improve this question edited Jun 10, 2014 at 21:07 user247702 24.3k18 gold badges115 silver badges160 bronze badges asked Jun 10, 2014 at 20:48 Joe HawkinsJoe Hawkins 9,9712 gold badges23 silver badges29 bronze badges 1
  • 3 I started writing an answer but it ended up just being a whole bunch of information quoted from an article: yearofmoo./2013/01/… – user247702 Commented Jun 10, 2014 at 21:18
Add a ment  | 

1 Answer 1

Reset to default 8

From my own research, midway testing appears to be unit testing, but with some automation in there to avoid having to do mocking or stubs for things like XHR requests. They call it "midway" to imply it's midway between a full "end to end" test (e.g., user testing) and a unit test.

I've only seen this name used with AngularJS, though the concept could certainly be applied to any package or library where an automated layer was provided to help avoid having to do stubs and mocks.

More here: Midway Testing

本文标签: javascriptWhat is midway testingStack Overflow