@@ -104,15 +104,11 @@ def test_204_build_app_with_plugin_inside_project(self):
104
104
105
105
current_dir = os .getcwd ()
106
106
os .chdir (os .path .join (current_dir , self .app_name ))
107
- output = Tns .run_tns_command ( "plugin add tns-plugin" , tns_path = os .path .join (".." , TNS_PATH ))
107
+ output = Tns .plugin_add ( name = " tns-plugin" , tns_path = os .path .join (".." , TNS_PATH ), assert_success = False )
108
108
os .chdir (current_dir )
109
109
assert "Successfully installed plugin tns-plugin" in output
110
110
111
- output = Tns .build_ios (attributes = {"--path" : self .app_name })
112
- assert successfully_prepared in output
113
- assert "** BUILD SUCCEEDED **" in output
114
- assert error not in output .lower ()
115
- assert "malformed" not in output
111
+ Tns .build_ios (attributes = {"--path" : self .app_name })
116
112
117
113
def test_300_build_app_with_plugin_outside (self ):
118
114
Tns .create_app (self .app_name )
@@ -135,7 +131,7 @@ def test_301_build_app_for_both_platforms(self):
135
131
assert File .exists (self .app_name + "/node_modules/tns-plugin/test2.ios.xml" )
136
132
137
133
Tns .build_ios (attributes = {"--path" : self .app_name })
138
- Tns .build_android (attributes = {"--path " : self .app_name })
134
+ Tns .build_android (attributes = {"--path" : self .app_name })
139
135
140
136
assert File .exists (self .app_name + "/platforms/android/build/outputs/apk/TNSApp-debug.apk" )
141
137
assert File .exists (self .app_name + "/platforms/android/src/main/assets/app/tns_modules/tns-plugin/index.js" )
0 commit comments