Call the testapprun from grunt

This commit is contained in:
Erjan Gavalji
2015-10-15 17:45:49 +03:00
parent f04fc617a0
commit 2f7329ca6f

View File

@ -365,31 +365,9 @@ module.exports = function(grunt) {
mochaNode: { mochaNode: {
cmd: "grunt simplemocha:node" cmd: "grunt simplemocha:node"
}, },
setupTestsApp: { runTestsApp: {
cmd: "./runtestsapp.sh" 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: { multidest: {
copyLicenseFiles: { copyLicenseFiles: {
@ -584,6 +562,6 @@ module.exports = function(grunt) {
]); ]);
grunt.registerTask("testsapp", [ grunt.registerTask("testsapp", [
"exec:setupTestsApp" "exec:runTestsApp"
]); ]);
}; };