[TIMOB-20148] Improvements on tio2 unit testing
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2015-12-15T19:56:50.000+0000 |
Updated | 2018-02-28T19:55:25.000+0000 |
Description
The possibilities of our new ti2 unit tests are GREAT. Here are some thoughts on how we could improve the structure of our unit tests to keep it clean over the next years:
- Folder structure like done in the docs:
/Ti/UI/Label.js
instead of ti.ui.label.test.js
- Require tests automatically instead of linking every test manually in the app.js
- Place asset files (images, videos, text files, etc.) in an appropiate folder structure e.g. /assets/images/
and /assets/audio/
etc.
The current structure can be found [here](https://github.com/appcelerator/titanium_mobile/tree/master/ti_mocha_tests).
No comments