Example #1
0
 async def run_with_client(self, args: Namespace, client: Client) -> None:
     async for install_response in client.install_xctest(
             args.test_bundle_path):
         if install_response.progress != 0.0 and not args.json:
             print("Installed {install_response.progress}%")
         elif args.json:
             print(
                 json.dumps({
                     "installedTestBundleId": install_response.name,
                     "uuid": install_response.uuid,
                 }))
         else:
             print(
                 f"Installed: {install_response.name} {install_response.uuid}"
             )
Example #2
0
 async def install_bundles(self, args: Namespace, client: Client) -> None:
     async for test in client.install_xctest(args.test_bundle_id):
         args.test_bundle_id = test.name