/// Launches the test and returns an encapsulated object.
Launches the test and returns an encapsulated object.
Launches the test and returns an encapsulated object .
pub async fn new(opts: SuiteInstanceOpts<'_>) -> Result<Self, anyhow::Error> {
        if !opts.test_url.ends_with(".cm") {
            return Err(anyhow::anyhow!(
                "Tried to run a component as a v2 test that doesn't have a .cm extension"
            ));
        }
        let (suite, controller, log_stream) = Self::launch_test_suite(opts).await?;
        Ok(Self { suite, controller, log_stream: Some(log_stream) })
    }
pub async fn new ( opts : SuiteInstanceOpts < ' _ > ) -> Result < Self , anyhow :: Error > { if ! opts . test_url . ends_with ( " " ) { return Err ( anyhow :: anyhow ! ( " " ) ) ; } let ( suite , controller , log_stream ) = Self :: launch_test_suite ( opts ) . await ? ; Ok ( Self { suite , controller , log_stream : Some ( log_stream ) } ) }
Launches the test and returns an encapsulated object.
Launches the test and returns an encapsulated object .
opts
SuiteInstanceOpts<'_>