pub async fn run(mut self) -> crate::runner::RunResult {
        let runner = crate::runner::Runner::new(
            self.steps.steps,
            std::rc::Rc::new(self.features),
            self.step_timeout,
            self.enable_capture,
            self.scenario_filter,
        );
        let mut stream = runner.run();

        while let Some(event) = stream.next().await {
            self.event_handler.handle_event(&event);

            if let crate::event::CucumberEvent::Finished(result) = event {
                return result;
            }
        }

        unreachable!("CucumberEvent::Finished must be fired")
    }
/// Run and report number of errors if any
Run and report number of errors if any
Run and report number of errors if any
pub async fn run(mut self) -> crate::runner::RunResult {
        let runner = crate::runner::Runner::new(
            self.steps.steps,
            std::rc::Rc::new(self.features),
            self.step_timeout,
            self.enable_capture,
            self.scenario_filter,
        );
        let mut stream = runner.run();
        while let Some(event) = stream.next().await {
            self.event_handler.handle_event(&event);
            if let crate::event::CucumberEvent::Finished(result) = event {
                return result;
            }
        }
        unreachable!("CucumberEvent::Finished must be fired")
    }
pub async fn run ( mut self ) -> crate :: runner :: RunResult { let runner = crate :: runner :: Runner :: new ( self . steps . steps , std :: rc :: Rc :: new ( self . features ) , self . step_timeout , self . enable_capture , self . scenario_filter , ) ; let mut stream = runner . run ( ) ; while let Some ( event ) = stream . next ( ) . await { self . event_handler . handle_event ( & event ) ; if let crate :: event :: CucumberEvent :: Finished ( result ) = event { return result ; } } unreachable ! ( " " ) }
Run and report number of errors if any
Run and report number of errors if any
mut self
mut self