Skip to content

Commit

Permalink
Try fix Book tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jun 14, 2024
1 parent a9d032a commit 2b42bff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion book/src/output/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use cucumber::{writer, World as _};
#
# #[tokio::main]
# async fn main() -> io::Result<()> {
let file = fs::File::create(dbg!(format!("{}/report.json", env!("OUT_DIR"))))?;
let file = fs::File::create(format!("{}/report.json", env!("OUT_DIR")))?;
World::cucumber()
.with_writer(writer::Json::new(file))
.run("tests/features/book")
Expand Down
4 changes: 3 additions & 1 deletion book/src/output/junit.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ use cucumber::{writer, World as _};
#
# #[tokio::main]
# async fn main() -> io::Result<()> {
let file = fs::File::create(dbg!(format!("{}/junit.xml", env!("OUT_DIR"))))?;
dbg!(std::env::current_dir()?.display());
dbg!(fs::canonicalize(format!("{}/junit.xml", env!("OUT_DIR")))?);
let file = fs::File::create(format!("{}/junit.xml", env!("OUT_DIR")))?;
World::cucumber()
.with_writer(writer::JUnit::new(file, 0))
.run("tests/features/book")
Expand Down
14 changes: 7 additions & 7 deletions book/src/output/multiple.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ World::cucumber()
writer::Coloring::Auto,
writer::Verbosity::Default,
)
.tee::<World, _>(writer::Basic::raw(
file,
writer::Coloring::Never,
2,
))
.summarized()
.normalized(),
.tee::<World, _>(writer::Basic::raw(
file,
writer::Coloring::Never,
2,
))
.summarized()
.normalized(),
)
.with_cli(cli) // Supply the parsed `cli::Opts`.
.run_and_exit("tests/features/book")
Expand Down

0 comments on commit 2b42bff

Please sign in to comment.