mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +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);
|
||||
|
||||
export function createPage() {
|
||||
// tests.runAll();
|
||||
|
||||
var page = new Page();
|
||||
page.on("navigatedTo", function() {
|
||||
setTimeout(function() {
|
||||
var navigatedToHandler = function() {
|
||||
tests.runAll();
|
||||
}, 3000);
|
||||
});
|
||||
// page.content = new GridLayout();
|
||||
page.off("navigatedTo", navigatedToHandler);
|
||||
};
|
||||
page.on("navigatedTo", navigatedToHandler);
|
||||
return page;
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#send \003
|
||||
|
||||
|
||||
set timeout 600
|
||||
set timeout 1200
|
||||
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
|
||||
log_file -noappend ./__TESTRESULT__.txt
|
||||
spawn adb logcat
|
||||
|
@ -13,7 +13,8 @@ cd $workingdir
|
||||
|
||||
echo "------------------------------------------------"
|
||||
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 &
|
||||
|
||||
echo "------------------------------------------------"
|
||||
@ -66,4 +67,4 @@ cd $startdir
|
||||
|
||||
echo "------------------------------------------------"
|
||||
echo "Waiting for the tests to finish executing..."
|
||||
./expect.exp
|
||||
time ./expect.exp
|
||||
|
Reference in New Issue
Block a user