[TIMOB-26660] Support native modules in Karma Titanium Launcher
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Closed |
Resolution | Done |
Resolution Date | 2019-01-15T14:01:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Tooling |
Labels | karma |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2018-12-17T15:06:36.000+0000 |
Updated | 2019-01-15T14:01:38.000+0000 |
Description
[karma-titanium-launcher](https://github.com/appcelerator/karma-titanium-launcher) currently supports testing for Apps and JS modules. Covering native modules is the last missing piece for a complete unit testing environment.
The workflow for unit testing of native modules should be as follows:
* Build the module for the current platform we are testing
* Create a temporary project serving as the test runner and integrate the built module into that project
* Run the test runner and spit out results
* Tests can be configured as usual with the Karma config. For example, tests for all platform can reside in
<project-dir>/test
with additional tests for each platform in the respective platform folder, i.e. <project-dir>/android/test
.
No comments