mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Call the commands to run the tests
This commit is contained in:
9
expect.exp
Executable file
9
expect.exp
Executable file
@ -0,0 +1,9 @@
|
||||
#! /usr/bin/expect
|
||||
|
||||
#exp_internal 1
|
||||
|
||||
set timeout 600
|
||||
|
||||
spawn grunt
|
||||
expect "TypeScript compilation complete"
|
||||
send \003
|
26
gruntfile.js
26
gruntfile.js
@ -364,7 +364,27 @@ module.exports = function(grunt) {
|
||||
},
|
||||
mochaNode: {
|
||||
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: {
|
||||
copyLicenseFiles: {
|
||||
@ -557,4 +577,8 @@ module.exports = function(grunt) {
|
||||
"env:nodeTests",
|
||||
"exec:mochaNode", //spawn a new process to use the new NODE_PATH
|
||||
]);
|
||||
|
||||
grunt.registerTask("testsapp", [
|
||||
"exec:..."
|
||||
]);
|
||||
};
|
||||
|
Reference in New Issue
Block a user