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:
- How does it differ from unit and integration testing?
- What purpose does it serve?
- What problems does it address that the other two approaches do not address?
- 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:
- How does it differ from unit and integration testing?
- What purpose does it serve?
- What problems does it address that the other two approaches do not address?
- Is it an AngularJS specific concept?
- 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
1 Answer
Reset to default 8From 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