Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27129] Migrate unit testing suite to Karma and stock mocha/should.js

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2019-06-04T18:52:48.000+0000
Updated2020-01-22T19:53:11.000+0000

Description

Our [titanium-mobile-mocha-suite](https://github.com/appcelerator/titanium-mobile-mocha-suite) is currently using a lot of custom tooling to get unit testing to work. This includes custom versions of mocha, reporters and assertion libraries. With our latest efforts to make our runtime more node compatible and the new [karma-titanium-launcher](https://github.com/appcelerator/karma-titanium-launcher) we can move away from custom built testing tools and use the stock version as is. This requires a migration of our unit testing suite to use Karma and would need the following changes: - Add Karma and the required plugins for mocha and should.js - Apply required changes to the test files so they are compatible with Karma - Modify the existing [test.js](https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/scripts/test.js) to let Karma handle the whole unit testing process. - Adopt the existing customizations made to mocha and should.js and apply them to the Karma environment

Comments

No comments

JSON Source