mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Attempt fixing the slow run by changing the main page and removing the noskin in the emulator. Time the expect run
This commit is contained in:
@ -7,15 +7,12 @@ trace.enable();
|
|||||||
trace.addCategories(trace.categories.Test + "," + trace.categories.Error);
|
trace.addCategories(trace.categories.Test + "," + trace.categories.Error);
|
||||||
|
|
||||||
export function createPage() {
|
export function createPage() {
|
||||||
// tests.runAll();
|
|
||||||
|
|
||||||
var page = new Page();
|
var page = new Page();
|
||||||
page.on("navigatedTo", function() {
|
var navigatedToHandler = function() {
|
||||||
setTimeout(function() {
|
|
||||||
tests.runAll();
|
tests.runAll();
|
||||||
}, 3000);
|
page.off("navigatedTo", navigatedToHandler);
|
||||||
});
|
};
|
||||||
// page.content = new GridLayout();
|
page.on("navigatedTo", navigatedToHandler);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#send \003
|
#send \003
|
||||||
|
|
||||||
|
|
||||||
set timeout 600
|
set timeout 1200
|
||||||
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
||||||
log_file -noappend ./__TESTRESULT__.txt
|
log_file -noappend ./__TESTRESULT__.txt
|
||||||
spawn adb logcat
|
spawn adb logcat
|
||||||
|
@ -13,7 +13,8 @@ cd $workingdir
|
|||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Starting the emulator..."
|
echo "Starting the emulator..."
|
||||||
time emulator -avd Api19 -no-skin -no-audio & # -gpu on
|
#time emulator -avd Api19 -no-skin -no-audio & # -gpu on
|
||||||
|
time emulator -avd Api19 -no-audio & # -gpu on
|
||||||
#emulator -avd Api19 -no-skin -no-audio -no-window &
|
#emulator -avd Api19 -no-skin -no-audio -no-window &
|
||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
@ -66,4 +67,4 @@ cd $startdir
|
|||||||
|
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo "Waiting for the tests to finish executing..."
|
echo "Waiting for the tests to finish executing..."
|
||||||
./expect.exp
|
time ./expect.exp
|
||||||
|
Reference in New Issue
Block a user