Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3196] Anvil: Ability to run test suites against a particular version of Titanium Mobile SDK

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-03-27T00:23:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Titanium SDK & CLI
Labelsanvil
ReporterBill Dawson
AssigneeShak Hossain
Created2013-03-18T12:24:17.000+0000
Updated2016-03-08T07:57:36.000+0000

Description

Currently the Anvil test framework only runs test against the latest version of the SDK installed on your machine. It would be very useful, particularly for module developers who need to support their modules on a variety of SDK versions, to target a specific SDK version for the test run.

Comments

  1. Bill Dawson 2013-03-18

    I will have a test case and Pull Request here shortly.
  2. Bill Dawson 2013-03-18

    Test Case

    * In Terminal (command prompt, whatever) go to anvil/driver under the titanium mobile source folder. * Enter
       node driver.js
       
    * Because you have not requested a specific Titanium SDK version, you should see "using Titanium SDK version xx.xx.xx", where xx.xx.xx is the latest version of the Titanium SDK installed on your machine. (Note that "latest" in Anvil terms is the version whose directory has the latest modification date in the file system.) * Ctrl-C out of the Anvil interactive mode, and re-enter but this time using...
       node driver.js --sdk-version=XX...
       
    ...but of course substitute "XX..." with some older version of Titanium, such as 3.0.2.GA. * Because you specified a version, the "using Titanium SDK version ..." message should now show the version you specified.
  3. Bill Dawson 2013-03-18

    A Pull Request has been submitted: https://github.com/appcelerator/titanium_mobile/pull/3978

JSON Source