Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4646] Code Coverage tool for unit test cases ?

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2016-11-30T11:31:14.000+0000
Affected Version/sAppcelerator Studio 4.4.2
Fix Version/sn/a
ComponentsDocumentation, Studio, Titanium SDK & CLI
Labelsn/a
ReporterBhushankumar pawar
AssigneeShak Hossain
Created2016-11-30T09:01:41.000+0000
Updated2016-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.

Comments

  1. Hans Knöchel 2016-11-30

    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!
  2. Bhushankumar pawar 2016-12-01

    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).

JSON Source