mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
Call the testapprun from grunt
This commit is contained in:
26
gruntfile.js
26
gruntfile.js
@ -365,31 +365,9 @@ module.exports = function(grunt) {
|
||||
mochaNode: {
|
||||
cmd: "grunt simplemocha:node"
|
||||
},
|
||||
setupTestsApp: {
|
||||
runTestsApp: {
|
||||
cmd: "./runtestsapp.sh"
|
||||
}
|
||||
// setupTestsApp: {
|
||||
////TODO: TNS PATH MIGHT GET PASSED FROM OUTSIDE!
|
||||
// cmd: [
|
||||
// 'pkill ".*emulator64-arm" && true',
|
||||
// "emulator -avd Api19 -no-skin -no-audio &",
|
||||
//// "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",
|
||||
////TODO: 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 '
|
||||
// ].join(" && ")
|
||||
// }
|
||||
},
|
||||
multidest: {
|
||||
copyLicenseFiles: {
|
||||
@ -584,6 +562,6 @@ module.exports = function(grunt) {
|
||||
]);
|
||||
|
||||
grunt.registerTask("testsapp", [
|
||||
"exec:setupTestsApp"
|
||||
"exec:runTestsApp"
|
||||
]);
|
||||
};
|
||||
|
Reference in New Issue
Block a user