Skip to content

Commit 2df5ca1

Browse files
change app size (#369)
1 parent 7734084 commit 2df5ca1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/perf/app_size/test_app_size.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def setUpClass(cls):
4545

4646
def test_001_js_app_app_resources(self):
4747
folder = os.path.join(TnsPaths.get_app_path(app_name=self.js_app), 'app')
48-
assert PerfUtils.is_value_in_range(actual=Folder.get_size(folder), expected=2991548, tolerance=0.1)
48+
assert PerfUtils.is_value_in_range(actual=Folder.get_size(folder), expected=1267420, tolerance=0.1)
4949

5050
def test_002_js_app_node_modules(self):
5151
folder = os.path.join(TnsPaths.get_app_path(app_name=self.js_app), 'node_modules')
@@ -75,11 +75,11 @@ def test_003_js_app_apk(self):
7575
@unittest.skipIf(Settings.HOST_OS != OSType.OSX, 'iOS tests can be executed only on macOS.')
7676
def test_102_js_app_ipa(self):
7777
ipa = TnsPaths.get_ipa_path(app_name=self.js_app, release=True, for_device=True)
78-
assert PerfUtils.is_value_in_range(actual=File.get_size(ipa), expected=16001936, tolerance=0.05)
78+
assert PerfUtils.is_value_in_range(actual=File.get_size(ipa), expected=13376474, tolerance=0.05)
7979

8080
def test_100_ng_app_app_resources(self):
8181
app_folder = os.path.join(TnsPaths.get_app_path(app_name=self.ng_app), 'App_Resources')
82-
assert PerfUtils.is_value_in_range(actual=Folder.get_size(app_folder), expected=2986244, tolerance=0.1)
82+
assert PerfUtils.is_value_in_range(actual=Folder.get_size(app_folder), expected=1262116, tolerance=0.1)
8383

8484
def test_101_ng_app_node_modules(self):
8585
app_folder = os.path.join(TnsPaths.get_app_path(app_name=self.ng_app), 'node_modules')
@@ -104,4 +104,4 @@ def test_102_ng_app_apk(self):
104104
@unittest.skipIf(Settings.HOST_OS != OSType.OSX, 'iOS tests can be executed only on macOS.')
105105
def test_102_ng_app_ipa(self):
106106
ipa = TnsPaths.get_ipa_path(app_name=self.ng_app, release=True, for_device=True)
107-
assert PerfUtils.is_value_in_range(actual=File.get_size(ipa), expected=16226626, tolerance=0.05)
107+
assert PerfUtils.is_value_in_range(actual=File.get_size(ipa), expected=13561763, tolerance=0.05)

0 commit comments

Comments
 (0)