[TIMOB-20624] Parity: Combine unit tests for SDKs into common suite/repo
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-06-14T14:30:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.0.0 |
Components | Android, iOS, Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2016-03-25T13:14:47.000+0000 |
Updated | 2016-10-18T16:30:10.000+0000 |
Description
Windows SDK uses a mocha test suite for unit testing it's APIs, currently living at https://github.com/appcelerator/titanium_mobile_windows/tree/master/Examples/NMocha/src/Assets
iOS/Android use a suite living at https://github.com/appcelerator/titanium_mobile/tree/master/ti_mocha_tests
We should combine our test suites into a common repository so that any new tests we add will be performed across all the OSes and we can easily pick up parity issues. It would involve updating our build scripts to grab the test suite from it's new location, and would likely involve more explicit attention to party issues or OS specific tests. (Meaning we'll need to know if a test case isn't intended to work on a particular platform and would have to code it into the test to skip it)
There is now a common suite for iOS/Android that passes on Jenkins. Next step is to hook it up as a PR builder for Github PRs; to back port to Windows and ensure it all passes there as well; and to add some mechanism for titanium_mobile or titanium_mobile_windows to introduce local changes to the test suite that get run so we can check in unit tests as part of PRs.
Closing as this has been implemented