The test lifecycle
来源:互联网 发布:软件外包网站 编辑:程序博客网 时间:2024/06/05 22:25
每一个已注册的根用例:
- The setup method of the suite is called, if it exists
- For each test within the suite:
- The beforeEach method of the suite is called, if it exists
- The test function is called
- The afterEach method of the suite is called, if it exists
- The teardown method of the suite is called, if it exists
So, given the this test module:
define(function (require) { var registerSuite = require('intern!object'); registerSuite({ setup: function () { console.log('outer setup'); }, beforeEach: function () { console.log('outer beforeEach'); }, afterEach: function () { console.log('outer afterEach'); }, teardown: function () { console.log('outer teardown'); }, 'inner suite': { setup: function () { console.log('inner setup'); }, beforeEach: function () { console.log('inner beforeEach'); }, afterEach: function () { console.log('inner afterEach'); }, teardown: function () { console.log('inner teardown'); }, 'test A': function () { console.log('inner test A'); }, 'test B': function () { console.log('inner test B'); } }, 'test C': function () { console.log('outer test C'); } });});
…the resulting console output would be in this order:outer setupinner setupouter beforeEachinner beforeEachinner test Ainner afterEachouter afterEachouter beforeEachinner beforeEachinner test Binner afterEachouter afterEachinner teardownouter beforeEachouter test Couter afterEachouter teardown
0 0
- The test lifecycle
- Test lifecycle -- important chapter in test plan
- The JSF application lifecycle
- The Security Development Lifecycle
- The Application Lifecycle
- Managing the Activity Lifecycle
- Managing the Activity Lifecycle
- Manaing the Activity Lifecycle
- Managing the Activity Lifecycle
- 新书《The Security Developme LifeCycle》
- Introduction to the Build Lifecycle
- (2)Managing the Activity Lifecycle
- android-Managing the Activity Lifecycle
- Managing the Activity Lifecycle笔记
- lifecycle
- LifeCycle
- Lifecycle
- Understanding the Request Processing Lifecycle Phases
- Does OS X not support epoll function?
- android5.1添加Email分享,bluetooth分享
- [二分答案 单调队列] BZOJ 3316 JC loves Mkk
- iOS开发小记:关于环信Demo3.0的使用总结以及昵称和头像问题的研究与解决
- 字符串转换为整数
- The test lifecycle
- 【bzoj4084】[Sdoi2015]bigyration hash
- 考研中的算法时间复杂度求解
- bootstrap左侧栏样式
- Win Server 系统远程桌面连接失败解决办法
- JS获取节点的兄弟,父级,子级元素
- 关于CocoaPods的安装总结
- phpMyAdmin配置文件config.inc.php详解
- libevent入门小例子