pub struct BuildResult {
pub platform: Target,
pub app_path: PathBuf,
pub test_suite_path: Option<PathBuf>,
}Expand description
Result of a successful build operation.
Contains paths to the built artifacts, which can be used for deployment to BrowserStack or local testing.
§Example
ⓘ
use mobench_sdk::builders::AndroidBuilder;
let result = builder.build(&config)?;
println!("App built at: {:?}", result.app_path);
if let Some(test_suite) = result.test_suite_path {
println!("Test suite at: {:?}", test_suite);
}Fields§
§platform: TargetPlatform that was built.
app_path: PathBufPath to the main app artifact.
- Android: Path to the APK file
- iOS: Path to the xcframework directory
test_suite_path: Option<PathBuf>Path to the test suite artifact, if applicable.
- Android: Path to the androidTest APK (for Espresso)
- iOS: Path to the XCUITest runner zip
Trait Implementations§
Source§impl Clone for BuildResult
impl Clone for BuildResult
Source§fn clone(&self) -> BuildResult
fn clone(&self) -> BuildResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuildResult
impl RefUnwindSafe for BuildResult
impl Send for BuildResult
impl Sync for BuildResult
impl Unpin for BuildResult
impl UnwindSafe for BuildResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more