[AC-4646] Code Coverage tool for unit test cases ?
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2016-11-30T11:31:14.000+0000 |
Affected Version/s | Appcelerator Studio 4.4.2 |
Fix Version/s | n/a |
Components | Documentation, Studio, Titanium SDK & CLI |
Labels | n/a |
Reporter | Bhushankumar pawar |
Assignee | Shak Hossain |
Created | 2016-11-30T09:01:41.000+0000 |
Updated | 2016-12-01T06:39:12.000+0000 |
Description
We are writing Unit test cases for Appcelerator app using Ti mocha and chai, Is there any tool which used for code coverage of unit test cases.
In our SDK, we calculate the coverage manually, based on all API namespaces vs. tested API's. I'm not aware of any client-side coverage frameworks for Titanium but there might be general JS-libs that you could apply as well. Also feel free to ask the community for tips on [Ti.Slack](http://tislack.org). Thx!
We tried Istanbul to check unit test cases coverage but it's giving an error For Ti & $
Ti not found
$ not found
(We used $.UI_ComponentID).