Call the commands to run the tests

This commit is contained in:
Erjan Gavalji
2015-10-06 13:14:05 +03:00
parent d5d25513d9
commit 7c691a9365
2 changed files with 34 additions and 1 deletions

9
expect.exp Executable file
View File

@ -0,0 +1,9 @@
#! /usr/bin/expect
#exp_internal 1
set timeout 600
spawn grunt
expect "TypeScript compilation complete"
send \003

View File

@ -364,7 +364,27 @@ module.exports = function(grunt) {
}, },
mochaNode: { mochaNode: {
cmd: "grunt simplemocha:node" cmd: "grunt simplemocha:node"
} },
// setupTestsApp: {
////TODO: TNS PATH MIGHT GET PASSED FROM OUTSIDE!
// cmd: [
// "pkill emulator64-arm && true",
// "emulator -avd Api19 -no-skin -no-audio -no-window &",
// "tns create TestsApp",
// "cd TestsApp",
// "rm app/*.*",
// "cp -r " + pathModule.join(localCfg.outAppsDir, "tests") + "/* ./app/",
// "tns platform add android",
// DO THE REPLACEMENTS IN THE Info.plist and AndroidManifest.xml
// "tns build android",
//
// "adb kill-server",
// "adb start-server",
//
// "adb install ./platforms/android/build/outputs/apk/TestsApp-debug.apk",
// "adb shell am start -n org.nativescript.TestsApp/com.tns.NativeScriptActivity",
// "expect -c '
// }
}, },
multidest: { multidest: {
copyLicenseFiles: { copyLicenseFiles: {
@ -557,4 +577,8 @@ module.exports = function(grunt) {
"env:nodeTests", "env:nodeTests",
"exec:mochaNode", //spawn a new process to use the new NODE_PATH "exec:mochaNode", //spawn a new process to use the new NODE_PATH
]); ]);
grunt.registerTask("testsapp", [
"exec:..."
]);
}; };