最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is midway testing? - Stack Overflow

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论