I am building a web app using BackboneJS and RequireJS and need to implement some form of unit testing for UI interaction and data retrieval via AJAX. I have come across QUnit and Jasmine but don t really know how I can integrate this into my app.
如果我正在测试诸如:
- Is the user logged in alright?
- Has the data been received from the server ok?
- Does clicking a button trigger the expected response?
- Do click events work on dynamically loaded html content?
- Does the app respond correctly to changes in hash/push-state urls?
我想,这一试验必须直接纳入我的手头,以便接触具体的联合材料目标,与届会的具体数据合作,并应对推力状态的变化。
How can I integrate QUnit or Jasmine (or other suggestions) into my modular app to unit test such features?