Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
JUnit XML reportcucumber
crate provides an ability to output tests result as a JUnit XML report.
This requires output-junit
feature to be enabled in Cargo.toml
:
cucumber = { version = "0.20", features = ["output-junit"] }
And configuring output to writer::JUnit
:
extern crate cucumber; extern crate tokio; use std::{fs, io}; use cucumber::{World as _, writer}; #[derive(Debug, Default, cucumber::World)] struct World; #[tokio::main] async fn main() -> io::Result<()> { let file = fs::File::create(format!("{}/junit.xml", env!("OUT_DIR")))?; World::cucumber() .with_writer(writer::JUnit::new(file, 0)) .run("tests/features/book") .await; Ok(()) }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4