Titanium JIRA Archive
Alloy (ALOY)

[ALOY-538] Create "alloy test" command

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sAlloy 1.1.0
Fix Version/sn/a
ComponentsTooling
Labelsnotable
ReporterTony Lukasavage
AssigneeUnknown
Created2013-02-26T15:06:25.000+0000
Updated2018-03-07T22:26:09.000+0000

Description

description

"jake" is included in the package.json as a dependency of Alloy. While jake is used to run the test scripts, it needs to be installed as "sudo npm install -g jake". The "jake" module that is local to the alloy installation is never actually used and should thus be removed from the dependency listing. We should instead include the "devDependencies" key in the package.json which would include jake and a few others. To make it easy for developers to access jake, which would then be buried alloy's global location's node_modules folder, something like this on mac:
/usr/local/lib/node_modules/alloy/node_modules/.bin/jake
We should create an "alloy test" command that can do what the jake calls were able to do. This will make it easier and allow us to give a uniform interface for testing and running test apps.

proposed syntax

run all tests

alloy test 

or

alloy test --spec all

or just

npm test

run specific test by spec name

alloy test --spec SPEC_NAME

ex. alloy test --spec compile

run test app

alloy test --testapp TEST_APP_DIR [options]

ex. alloy test --app models/todo

ex. alloy test --app ui/tabbedbar --platform ios

ex. alloy test --app ui/android_menu --platform android

Comments

No comments

JSON Source