1
1
'''
2
- Tests for transpilation of typescript in context of Android
2
+ Tests for transpilation of typescript in context
3
3
'''
4
4
5
5
# C0103 - Invalid %s name "%s"
6
6
# C0111 - Missing docstring
7
7
# R0201 - Method could be a function
8
8
# R0904 - Too many public methods
9
-
10
- # TODO:
11
- # pylint: disable=
9
+ # pylint: disable=C0111, R0201
12
10
13
11
import platform , unittest
14
- # import os
15
12
16
13
from helpers ._os_lib import cleanup_folder , \
17
14
file_exists , file_with_extension_exists , is_empty , run_aut
@@ -30,11 +27,11 @@ def setUp(self):
30
27
print ""
31
28
32
29
cleanup_folder ('TNS_App' )
33
- # TODO:
34
- # def tearDown(self):
35
- # cleanup_folder('TNS_App')
36
30
37
- def test_001 (self ):
31
+ def tearDown (self ):
32
+ cleanup_folder ('TNS_App' )
33
+
34
+ def test_001_transpilation_ts (self ):
38
35
create_project (proj_name = "TNS_App" , copy_from = "template-hello-world-ts" )
39
36
platform_add (platform = "android" , framework_path = ANDROID_RUNTIME_PATH , path = "TNS_App" )
40
37
@@ -78,7 +75,7 @@ def test_001(self):
78
75
path = "TNS_App" ,
79
76
symlink = True )
80
77
81
- output = build (platform = "ios" , path = "TNS_App" )
78
+ output = prepare (platform = "ios" , path = "TNS_App" )
82
79
assert "Executing before-prepare hook" in output
83
80
assert "Found peer TypeScript" in output
84
81
assert not "error" in output
@@ -92,6 +89,7 @@ def test_001(self):
92
89
"TNS_App/platforms/ios/TNSApp/app" , ".ts" )
93
90
assert not file_with_extension_exists (
94
91
"TNS_App/platforms/ios/TNSApp/app/tns_modules" , ".ts" )
92
+ build (platform = "ios" , path = "TNS_App" )
95
93
96
94
# output = run_aut(TNS_PATH + " prepare android --path TNS_App")
97
95
# assert "Project successfully prepared" in output
0 commit comments