From d40d5d50d23529998a9f6541ff301f7fbfb5ef42 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 18 Mar 2024 21:09:54 +0000 Subject: [PATCH 001/224] wasm-bindgen-test-runner: Added feature test Outputs test file missing error to invocation without_arguments. --- Cargo.toml | 2 ++ .../__features__/invocation/mod.rs | 1 + .../invocation/without_arguments/mod.rs | 1 + ...outputs_test_file_missing_error_feature.rs | 13 +++++++++++++ .../__features__/mod.rs | 1 + .../__steps__/context.rs | 19 +++++++++++++++++++ .../wasm_bindgen_test_runner/__steps__/mod.rs | 5 +++++ .../__steps__/standard_error/mod.rs | 3 +++ .../then_the_standard_error_should_have.rs | 10 ++++++++++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 3 +++ ...est_runner_is_invoked_without_arguments.rs | 9 +++++++++ tests/wasm_bindgen_test_runner/main.rs | 2 ++ 12 files changed, 69 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/context.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs create mode 100644 tests/wasm_bindgen_test_runner/main.rs diff --git a/Cargo.toml b/Cargo.toml index c06934617d1..aa546c24d82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,8 @@ xxx_debug_only_print_generated_code = [ ] [dependencies] +assert_cmd = "1.0" #not sure its the write place +predicates = "1.0.0" #not sure its the write place wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.92" } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs new file mode 100644 index 00000000000..b75c3c9c79a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs @@ -0,0 +1 @@ +mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs new file mode 100644 index 00000000000..b3785100fff --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs @@ -0,0 +1 @@ +mod outputs_test_file_missing_error_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs new file mode 100644 index 00000000000..e324a9070dd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs @@ -0,0 +1,13 @@ +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_without_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_test_file_missing_error_feature() { + let mut context = Context::new(); + when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); + then_the_standard_error_should_have( + context, + "Error: must have a file to test as first argument", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/mod.rs b/tests/wasm_bindgen_test_runner/__features__/mod.rs new file mode 100644 index 00000000000..2f054bc37a7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/mod.rs @@ -0,0 +1 @@ +mod invocation; diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/tests/wasm_bindgen_test_runner/__steps__/context.rs new file mode 100644 index 00000000000..a83bb79e9b3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/context.rs @@ -0,0 +1,19 @@ +use std::process::Command; + +pub struct Context { + command: Option, +} + +impl Context { + pub fn new() -> Self { + Context { command: None } + } + + pub fn command_set(&mut self, command: Command) { + self.command = Some(command); + } + + pub fn into_command(self) -> Command { + self.command.unwrap() + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs new file mode 100644 index 00000000000..8e4391da2b8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -0,0 +1,5 @@ +pub mod standard_error; +mod context; +pub mod wasm_bindgen_test_runner; + +pub use context::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs new file mode 100644 index 00000000000..114b559cefd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs @@ -0,0 +1,3 @@ +mod then_the_standard_error_should_have; + +pub use then_the_standard_error_should_have::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs new file mode 100644 index 00000000000..88351f5ab7d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs @@ -0,0 +1,10 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use predicates::str; + +pub fn then_the_standard_error_should_have(context: Context, content: &str) { + context + .into_command() + .assert() + .stderr(str::contains(content)); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs new file mode 100644 index 00000000000..ea740ee56f1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -0,0 +1,3 @@ +mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; + +pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs new file mode 100644 index 00000000000..6d6e68ff0e4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs @@ -0,0 +1,9 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use std::process::Command; + +pub fn when_wasm_bindgen_test_runner_is_invoked_without_arguments(context: &mut Context) { + let aux = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + + context.command_set(aux); +} diff --git a/tests/wasm_bindgen_test_runner/main.rs b/tests/wasm_bindgen_test_runner/main.rs new file mode 100644 index 00000000000..6caa95407fd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/main.rs @@ -0,0 +1,2 @@ +mod __features__; +mod __steps__; From d5736d2b2b91e11f3831965e1153c6ba321c47f3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 18 Mar 2024 21:15:16 +0000 Subject: [PATCH 002/224] wasm-bindgen-test-runner: Added feature test Returns an error code to invocation without_arguments. --- .../__features__/invocation/without_arguments/mod.rs | 1 + .../without_arguments/returns_an_error_code_feature.rs | 10 ++++++++++ .../__steps__/error_code/mod.rs | 3 +++ .../then_an_error_code_should_have_been_returned.rs | 6 ++++++ tests/wasm_bindgen_test_runner/__steps__/mod.rs | 1 + 5 files changed, 21 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs index b3785100fff..32724fa9055 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs @@ -1 +1,2 @@ mod outputs_test_file_missing_error_feature; +mod returns_an_error_code_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs new file mode 100644 index 00000000000..f326651da90 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs @@ -0,0 +1,10 @@ +use crate::__steps__::error_code::then_an_error_code_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_without_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_an_error_code_feature() { + let mut context = Context::new(); + when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); + then_an_error_code_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs new file mode 100644 index 00000000000..2f6940b1f9e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs @@ -0,0 +1,3 @@ +mod then_an_error_code_should_have_been_returned; + +pub use then_an_error_code_should_have_been_returned::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs new file mode 100644 index 00000000000..7b34ea8a11b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs @@ -0,0 +1,6 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; + +pub fn then_an_error_code_should_have_been_returned(context: Context) { + context.into_command().assert().failure(); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index 8e4391da2b8..f6eb5956ada 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,3 +1,4 @@ +pub mod error_code; pub mod standard_error; mod context; pub mod wasm_bindgen_test_runner; From 8b964e8d181b6afeb0d7dd82cf7b25ddba783259 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 18 Mar 2024 22:48:24 +0000 Subject: [PATCH 003/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_empty_assembly. --- Cargo.toml | 6 +- .../__features__/invocation/mod.rs | 1 + .../invocation/with_an_empty_assembly/mod.rs | 1 + .../returns_success_feature.rs | 12 +++ .../given_there_is_an_empty_assembly.rs | 14 +++ .../__steps__/assembly/mod.rs | 3 + .../__steps__/context.rs | 15 ++- .../wasm_bindgen_test_runner/__steps__/mod.rs | 6 +- .../__steps__/project.rs | 99 +++++++++++++++++++ .../__steps__/success/mod.rs | 3 + .../then_success_should_have_been_returned.rs | 6 ++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 + ...est_runner_is_invoked_with_the_assembly.rs | 13 +++ 13 files changed, 177 insertions(+), 4 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/project.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/success/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs diff --git a/Cargo.toml b/Cargo.toml index aa546c24d82..7905ac1f497 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,8 +42,6 @@ xxx_debug_only_print_generated_code = [ ] [dependencies] -assert_cmd = "1.0" #not sure its the write place -predicates = "1.0.0" #not sure its the write place wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.92" } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } @@ -57,6 +55,10 @@ serde_derive = "1.0" wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' } wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' } +[dev-dependencies] +assert_cmd = "1.0" +predicates = "1.0.0" + [workspace] members = [ "benchmarks", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs index b75c3c9c79a..8de2a7f3e7f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs @@ -1 +1,2 @@ +mod with_an_empty_assembly; mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/returns_success_feature.rs new file mode 100644 index 00000000000..26a12965de0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_empty_assembly; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_empty_assembly(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs new file mode 100644 index 00000000000..eeb495894f4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs @@ -0,0 +1,14 @@ +use crate::__steps__::Context; +use crate::__steps__::Project; + +pub fn given_there_is_an_empty_assembly(context: &mut Context) { + let path = Project::new("empty_assembly") + .file( + "src/lib.rs", + r#" + "#, + ) + .build(); + + context.assembly_set(path) +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs new file mode 100644 index 00000000000..7e57b960647 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -0,0 +1,3 @@ +mod given_there_is_an_empty_assembly; + +pub use given_there_is_an_empty_assembly::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/tests/wasm_bindgen_test_runner/__steps__/context.rs index a83bb79e9b3..4ab1fb195fb 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/context.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/context.rs @@ -1,12 +1,25 @@ +use std::path::PathBuf; use std::process::Command; pub struct Context { + assembly: Option, command: Option, } impl Context { pub fn new() -> Self { - Context { command: None } + Context { + assembly: None, + command: None, + } + } + + pub fn assembly(&self) -> Option<&PathBuf> { + self.assembly.as_ref() + } + + pub fn assembly_set(&mut self, assembly: PathBuf) { + self.assembly = Some(assembly); } pub fn command_set(&mut self, command: Command) { diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index f6eb5956ada..c1331c7864d 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,6 +1,10 @@ +pub mod assembly; +mod context; pub mod error_code; +mod project; pub mod standard_error; -mod context; +pub mod success; pub mod wasm_bindgen_test_runner; pub use context::*; +pub use project::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/project.rs new file mode 100644 index 00000000000..5d6ce2241a3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/project.rs @@ -0,0 +1,99 @@ +use assert_cmd::prelude::*; +use predicates::str; +use std::env; +use std::fs; +use std::path::PathBuf; +use std::process::Command; + +fn target_dir() -> PathBuf { + let mut dir = env::current_exe().unwrap(); + dir.pop(); // current exe + if dir.ends_with("deps") { + dir.pop(); + } + dir.pop(); // debug and/or release + dir +} + +fn repo_root() -> PathBuf { + env::current_dir().unwrap() +} + +pub struct Project { + root: PathBuf, + name: &'static str, +} + +impl Project { + pub fn new(name: &'static str) -> Project { + let root = target_dir() + .join("wasm-bindgen-test-runner-tests") + .join(name); + drop(fs::remove_dir_all(&root)); + fs::create_dir_all(&root).unwrap(); + Project { root, name } + } + + pub fn file(&mut self, name: &str, contents: &str) -> &mut Project { + let dst = self.root.join(name); + fs::create_dir_all(dst.parent().unwrap()).unwrap(); + fs::write(&dst, contents).unwrap(); + self + } + + fn wasm_bindgen(&mut self, args: &str) -> (Command, PathBuf) { + let wasm = self.build(); + let output = self.root.join("pkg"); + fs::create_dir_all(&output).unwrap(); + let mut cmd = Command::cargo_bin("wasm-bindgen").unwrap(); + cmd.arg("--out-dir").arg(&output); + cmd.arg(&wasm); + for arg in args.split_whitespace() { + cmd.arg(arg); + } + (cmd, output) + } + + pub fn build(&mut self) -> PathBuf { + if !self.root.join("Cargo.toml").is_file() { + self.file( + "Cargo.toml", + &format!( + " + [package] + name = \"{}\" + authors = [] + version = \"1.0.0\" + edition = '2018' + + [dependencies] + wasm-bindgen = {{ path = '{}' }} + + [lib] + crate-type = ['cdylib'] + + [workspace] + ", + self.name, + repo_root().display(), + ), + ); + } + + let target_dir = target_dir(); + Command::new("cargo") + .current_dir(&self.root) + .arg("build") + .arg("--target") + .arg("wasm32-unknown-unknown") + .env("CARGO_TARGET_DIR", &target_dir) + .assert() + .success(); + + target_dir + .join("wasm32-unknown-unknown") + .join("debug") + .join(self.name) + .with_extension("wasm") + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/success/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/success/mod.rs new file mode 100644 index 00000000000..a0461886d72 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/success/mod.rs @@ -0,0 +1,3 @@ +mod then_success_should_have_been_returned; + +pub use then_success_should_have_been_returned::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs new file mode 100644 index 00000000000..2064faff04d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs @@ -0,0 +1,6 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; + +pub fn then_success_should_have_been_returned(context: Context) { + context.into_command().assert().success(); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index ea740ee56f1..1c036ea8294 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,3 +1,5 @@ +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly::*; pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs new file mode 100644 index 00000000000..9a02f9243cf --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs @@ -0,0 +1,13 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use std::process::Command; + +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(context: &mut Context) { + let mut aux = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + + if let Some(ref assembly) = context.assembly() { + aux.arg(assembly); + } + + context.command_set(aux); +} From f8b7b3d31a2471e6dcc6674eb1af7a0b0524096f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 21 Mar 2024 18:04:07 +0000 Subject: [PATCH 004/224] wasm-bindgen-test-runner: Added feature test Outputs no tests to run warning to invocation with_an_empty_assembly. --- .../invocation/with_an_empty_assembly/mod.rs | 1 + .../outputs_no_tests_to_run_warning_feature.rs | 12 ++++++++++++ tests/wasm_bindgen_test_runner/__steps__/mod.rs | 1 + .../__steps__/standard_output/mod.rs | 3 +++ .../then_the_standard_output_should_have.rs | 10 ++++++++++ 5 files changed, 27 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_tests_to_run_warning_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs index 25ee07c0dc5..c7accad4a1e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs @@ -1 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..bc66190e311 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_empty_assembly; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_empty_assembly(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "no tests to run!"); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index c1331c7864d..21c7d10ab4c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -3,6 +3,7 @@ mod context; pub mod error_code; mod project; pub mod standard_error; +pub mod standard_output; pub mod success; pub mod wasm_bindgen_test_runner; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs new file mode 100644 index 00000000000..075d8d1051b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs @@ -0,0 +1,3 @@ +mod then_the_standard_output_should_have; + +pub use then_the_standard_output_should_have::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs new file mode 100644 index 00000000000..64e5b5fda8e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs @@ -0,0 +1,10 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use predicates::str; + +pub fn then_the_standard_output_should_have(context: Context, content: &str) { + context + .into_command() + .assert() + .stdout(str::contains(content)); +} From 866d21ec5aa345a170234bac5d8eb4e9780fda4c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 21 Mar 2024 18:10:56 +0000 Subject: [PATCH 005/224] wasm-bindgen-test-runner: Added feature test Outputs no error to invocation with_an_empty_assembly. --- .../invocation/with_an_empty_assembly/mod.rs | 1 + .../outputs_no_error_feature.rs | 12 ++++++++++++ .../__steps__/standard_error/mod.rs | 2 ++ .../then_the_standard_error_should_be_empty.rs | 10 ++++++++++ 4 files changed, 25 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs index c7accad4a1e..ecb3f016be0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs @@ -1,2 +1,3 @@ +mod outputs_no_error_feature; mod outputs_no_tests_to_run_warning_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_error_feature.rs new file mode 100644 index 00000000000..c1d863927d9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_empty_assembly; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_empty_assembly(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs index 114b559cefd..14c7d5b9c66 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs @@ -1,3 +1,5 @@ +mod then_the_standard_error_should_be_empty; mod then_the_standard_error_should_have; +pub use then_the_standard_error_should_be_empty::*; pub use then_the_standard_error_should_have::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs new file mode 100644 index 00000000000..8fca6809806 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs @@ -0,0 +1,10 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use predicates::str; + +pub fn then_the_standard_error_should_be_empty(context: Context) { + context + .into_command() + .assert() + .stderr(str::is_empty()); +} From 6719fec341dfa74c009384f0ab93b1a3dfd466b2 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 27 Mar 2024 00:49:11 +0000 Subject: [PATCH 006/224] wasm-bindgen-test-runner: Updated tests to trigger build of wasm-bindgen-cli because of dependency of wasm-bindgen-test-runner. Updated assembly builder to avoid runner runtime conflicts. --- Cargo.toml | 2 ++ .../given_there_is_an_empty_assembly.rs | 2 +- .../__steps__/project.rs | 10 +++++-- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ .../wasm_bindgen_test_runner_command.rs | 30 +++++++++++++++++++ ...est_runner_is_invoked_with_the_assembly.rs | 6 ++-- ...est_runner_is_invoked_without_arguments.rs | 6 ++-- 7 files changed, 46 insertions(+), 12 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs diff --git a/Cargo.toml b/Cargo.toml index 7905ac1f497..e38f0fa0a4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,9 @@ wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' } [dev-dependencies] assert_cmd = "1.0" +lazy_static = "1.4.0" predicates = "1.0.0" +rand = "0.8.5" [workspace] members = [ diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs index eeb495894f4..e0fdc61660f 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs @@ -10,5 +10,5 @@ pub fn given_there_is_an_empty_assembly(context: &mut Context) { ) .build(); - context.assembly_set(path) + context.assembly_set(path); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/project.rs index 5d6ce2241a3..c35953cd478 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/project.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/project.rs @@ -1,5 +1,6 @@ use assert_cmd::prelude::*; use predicates::str; +use rand::Rng; use std::env; use std::fs; use std::path::PathBuf; @@ -21,14 +22,17 @@ fn repo_root() -> PathBuf { pub struct Project { root: PathBuf, - name: &'static str, + name: String, } impl Project { pub fn new(name: &'static str) -> Project { + let mut rng = rand::thread_rng(); + let name = format!("{}_{}", name, rng.gen_range(1000..9999)); let root = target_dir() .join("wasm-bindgen-test-runner-tests") - .join(name); + .join(&name); + println!("root: {:?}", root); drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); Project { root, name } @@ -93,7 +97,7 @@ impl Project { target_dir .join("wasm32-unknown-unknown") .join("debug") - .join(self.name) + .join(&self.name) .with_extension("wasm") } } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index 1c036ea8294..90d16b58ca3 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,5 +1,7 @@ +mod wasm_bindgen_test_runner_command; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; +pub use wasm_bindgen_test_runner_command::*; pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly::*; pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs new file mode 100644 index 00000000000..11289104bed --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs @@ -0,0 +1,30 @@ +use assert_cmd::cargo::{CargoError, CommandCargoExt}; +use lazy_static::lazy_static; +use std::process::Command; + +lazy_static! { + static ref COMMAND: Result = wasm_bindgen_test_runner_command_get(); +} + +fn wasm_bindgen_test_runner_command_get() -> Result { + let result = Command::cargo_bin("wasm-bindgen-test-runner"); + if result.is_ok() { + return result; + } + + println!("YO"); + + Command::new("cargo") + .args(&["build", "--package", "wasm-bindgen-cli"]) + .output() + .expect("Failed to build wasm-bindgen-cli"); + + Command::cargo_bin("wasm-bindgen-test-runner") +} + +pub fn wasm_bindgen_test_runner_command() -> Command { + if COMMAND.is_ok() { + return Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + } + panic!("Failed to find wasm-bindgen-test-runner binary") +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs index 9a02f9243cf..0c997f4f7ba 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs @@ -1,9 +1,7 @@ -use crate::__steps__::Context; -use assert_cmd::prelude::*; -use std::process::Command; +use crate::__steps__::{Context, wasm_bindgen_test_runner::wasm_bindgen_test_runner_command}; pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(context: &mut Context) { - let mut aux = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + let mut aux = wasm_bindgen_test_runner_command(); if let Some(ref assembly) = context.assembly() { aux.arg(assembly); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs index 6d6e68ff0e4..ecff742402c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs @@ -1,9 +1,7 @@ -use crate::__steps__::Context; -use assert_cmd::prelude::*; -use std::process::Command; +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; pub fn when_wasm_bindgen_test_runner_is_invoked_without_arguments(context: &mut Context) { - let aux = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + let aux = wasm_bindgen_test_runner_command(); context.command_set(aux); } From 84a360c1166870435a47e434369a261143a25eae Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 27 Mar 2024 23:19:07 +0000 Subject: [PATCH 007/224] wasm-bindgen-test-runner: Updated assembly creator to edition 2021. --- tests/wasm_bindgen_test_runner/__steps__/project.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/project.rs index c35953cd478..834be68478f 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/project.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/project.rs @@ -68,7 +68,7 @@ impl Project { name = \"{}\" authors = [] version = \"1.0.0\" - edition = '2018' + edition = '2021' [dependencies] wasm-bindgen = {{ path = '{}' }} From 8c90631f71aa3d1f3bab058d01e42f654c6d5af7 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 27 Mar 2024 23:28:03 +0000 Subject: [PATCH 008/224] wasm-bindgen-test-runner: Moved tests invocation with_an_empty_assembly to invocation with_an_assembly empty. --- tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs | 2 +- .../{with_an_empty_assembly => with_an_assembly/empty}/mod.rs | 0 .../empty}/outputs_no_error_feature.rs | 0 .../empty}/outputs_no_tests_to_run_warning_feature.rs | 0 .../empty}/returns_success_feature.rs | 0 .../__features__/invocation/with_an_assembly/mod.rs | 1 + 6 files changed, 2 insertions(+), 1 deletion(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/{with_an_empty_assembly => with_an_assembly/empty}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/{with_an_empty_assembly => with_an_assembly/empty}/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/{with_an_empty_assembly => with_an_assembly/empty}/outputs_no_tests_to_run_warning_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/{with_an_empty_assembly => with_an_assembly/empty}/returns_success_feature.rs (100%) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs index 8de2a7f3e7f..82ae94e78af 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs @@ -1,2 +1,2 @@ -mod with_an_empty_assembly; +mod with_an_assembly; mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_tests_to_run_warning_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_empty_assembly/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs new file mode 100644 index 00000000000..d1b3dd39d78 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -0,0 +1 @@ +mod empty; From 2ee9f02442bfb1b26e98cb6709b9c3d3e36b1f91 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 28 Mar 2024 23:07:12 +0000 Subject: [PATCH 009/224] wasm-bindgen-test-runner: Updated to build the assembly with a proper cargo test command. --- Cargo.toml | 1 + .../__steps__/project.rs | 86 ++++++++++--------- 2 files changed, 45 insertions(+), 42 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e38f0fa0a4e..ecdd7da7438 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,6 +60,7 @@ assert_cmd = "1.0" lazy_static = "1.4.0" predicates = "1.0.0" rand = "0.8.5" +regex = "1.10.4" [workspace] members = [ diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/project.rs index 834be68478f..0589f435395 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/project.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/project.rs @@ -1,10 +1,11 @@ -use assert_cmd::prelude::*; use predicates::str; use rand::Rng; +use regex::Regex; use std::env; use std::fs; use std::path::PathBuf; use std::process::Command; +use std::process::Output; fn target_dir() -> PathBuf { let mut dir = env::current_exe().unwrap(); @@ -28,14 +29,19 @@ pub struct Project { impl Project { pub fn new(name: &'static str) -> Project { let mut rng = rand::thread_rng(); - let name = format!("{}_{}", name, rng.gen_range(1000..9999)); let root = target_dir() .join("wasm-bindgen-test-runner-tests") - .join(&name); - println!("root: {:?}", root); + .join(format!("{}_{}", name, rng.gen_range(1000..9999))); drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); - Project { root, name } + Project { + root, + name: name.to_string(), + } + } + + pub fn clean(&mut self) { + drop(fs::remove_dir_all(&self.root)); } pub fn file(&mut self, name: &str, contents: &str) -> &mut Project { @@ -45,59 +51,55 @@ impl Project { self } - fn wasm_bindgen(&mut self, args: &str) -> (Command, PathBuf) { - let wasm = self.build(); - let output = self.root.join("pkg"); - fs::create_dir_all(&output).unwrap(); - let mut cmd = Command::cargo_bin("wasm-bindgen").unwrap(); - cmd.arg("--out-dir").arg(&output); - cmd.arg(&wasm); - for arg in args.split_whitespace() { - cmd.arg(arg); - } - (cmd, output) - } - pub fn build(&mut self) -> PathBuf { if !self.root.join("Cargo.toml").is_file() { self.file( "Cargo.toml", &format!( - " - [package] - name = \"{}\" - authors = [] - version = \"1.0.0\" - edition = '2021' + "[package] +name = '{}' +authors = [] +version = '1.0.0' +edition = '2021' - [dependencies] - wasm-bindgen = {{ path = '{}' }} +[dev-dependencies] +wasm-bindgen-test = {{ path = '{}/crates/test' }} - [lib] - crate-type = ['cdylib'] +[patch.crates-io] +wasm-bindgen = {{ path = '{}' }} - [workspace] - ", +[workspace] +", self.name, repo_root().display(), + repo_root().display(), ), ); } - let target_dir = target_dir(); - Command::new("cargo") + let output = Command::new("cargo") .current_dir(&self.root) - .arg("build") + .arg("test") .arg("--target") .arg("wasm32-unknown-unknown") - .env("CARGO_TARGET_DIR", &target_dir) - .assert() - .success(); - - target_dir - .join("wasm32-unknown-unknown") - .join("debug") - .join(&self.name) - .with_extension("wasm") + .arg("--no-run") + .output() + .expect("Failed to build test assembly"); + + let assembly = extract_assembly_from_output(output); + + self.root.join(assembly) } } + +fn extract_assembly_from_output(output: Output) -> String { + let error_str = std::str::from_utf8(&output.stderr).unwrap(); + let last = error_str.lines().last().unwrap(); + + let re = Regex::new(r"\((.*?)\)").unwrap(); + let captures = re + .captures(last) + .expect("Failed to find generated assembly"); + + captures.get(1).unwrap().as_str().to_string() +} From 112cbdbfd555315d0fb7e50b3238952cdfb7bb95 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 28 Mar 2024 23:27:52 +0000 Subject: [PATCH 010/224] wasm-bindgen-test-runner: Clean up. --- .../wasm_bindgen_test_runner_command.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs index 11289104bed..0430fa19bfd 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs @@ -12,8 +12,6 @@ fn wasm_bindgen_test_runner_command_get() -> Result { return result; } - println!("YO"); - Command::new("cargo") .args(&["build", "--package", "wasm-bindgen-cli"]) .output() From dca7a18cf5630d2105a2ef27ccd0f9f2a6d0291a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 28 Mar 2024 23:36:41 +0000 Subject: [PATCH 011/224] wasm-bindgen-test-runner: Added test feature Returns Success to invocation with_an_assembly with_one_successful_test. --- .../invocation/with_an_assembly/mod.rs | 1 + .../with_one_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 12 +++++++++++ ...is_an_assembly_with_one_successful_test.rs | 20 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ 5 files changed, 36 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index d1b3dd39d78..79975cd71b1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1 +1,2 @@ mod empty; +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..d39fe20c7b3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs new file mode 100644 index 00000000000..205ded19822 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs @@ -0,0 +1,20 @@ +use crate::__steps__::Context; +use crate::__steps__::Project; + +pub fn given_there_is_an_assembly_with_one_successful_test(context: &mut Context) { + let path = Project::new("assembly_with_one_successful_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + "#, + ).build(); + + context.assembly_set(path); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 7e57b960647..fd28569d001 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,3 +1,5 @@ +mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_empty_assembly; +pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_empty_assembly::*; From 666315c838ad8e872c76ad61df6f6c484218f405 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 29 Mar 2024 19:12:23 +0000 Subject: [PATCH 012/224] wasm-bindgen-test-runner-test: Updated the assembly builder to target back the cargo target directory. --- tests/wasm_bindgen_test_runner/__steps__/project.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/project.rs index 0589f435395..86037eac5a8 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/project.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/project.rs @@ -83,6 +83,7 @@ wasm-bindgen = {{ path = '{}' }} .arg("--target") .arg("wasm32-unknown-unknown") .arg("--no-run") + .env("CARGO_TARGET_DIR", target_dir()) .output() .expect("Failed to build test assembly"); From aaff784e96120f3b938ad7bbd2fa1a392736ed34 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 29 Mar 2024 22:37:17 +0000 Subject: [PATCH 013/224] wasm-bindgen-test-runner-test: Added a sandbox to fake a directory structure to allow multiple instances of the runner using the same assembly to make the tests faster. --- ...is_an_assembly_with_one_successful_test.rs | 5 +- .../given_there_is_an_empty_assembly.rs | 19 +++++- .../__steps__/context.rs | 28 ++++---- ...an_error_code_should_have_been_returned.rs | 4 +- ...then_the_standard_error_should_be_empty.rs | 6 +- .../then_the_standard_error_should_have.rs | 7 +- .../then_the_standard_output_should_have.rs | 7 +- .../then_success_should_have_been_returned.rs | 4 +- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 + .../wasm_bindgen_test_runner/sandbox.rs | 66 +++++++++++++++++++ ...est_runner_is_invoked_with_the_assembly.rs | 10 ++- ...est_runner_is_invoked_without_arguments.rs | 4 +- 12 files changed, 122 insertions(+), 40 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs index 205ded19822..ff8dee7c0d8 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs @@ -1,8 +1,9 @@ use crate::__steps__::Context; use crate::__steps__::Project; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; pub fn given_there_is_an_assembly_with_one_successful_test(context: &mut Context) { - let path = Project::new("assembly_with_one_successful_test") + let assembly = Project::new("assembly_with_one_successful_test") .file( "src/lib.rs", r#"#[cfg(test)] @@ -16,5 +17,5 @@ fn pass() { "#, ).build(); - context.assembly_set(path); + context.sandbox_set(Sandbox::new(assembly)); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs index e0fdc61660f..e46f2e6dbc6 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs @@ -1,8 +1,17 @@ +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use crate::__steps__::Project; +use lazy_static::lazy_static; +use std::path::PathBuf; -pub fn given_there_is_an_empty_assembly(context: &mut Context) { - let path = Project::new("empty_assembly") +lazy_static! { + static ref PROJECT: (Project, PathBuf) = get_project(); +} + +fn get_project() -> (Project, PathBuf) { + let mut project = Project::new("empty_assembly"); + + let path = project .file( "src/lib.rs", r#" @@ -10,5 +19,9 @@ pub fn given_there_is_an_empty_assembly(context: &mut Context) { ) .build(); - context.assembly_set(path); + (project, path) +} + +pub fn given_there_is_an_empty_assembly(context: &mut Context) { + context.sandbox_set(Sandbox::new(PROJECT.1.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/tests/wasm_bindgen_test_runner/__steps__/context.rs index 4ab1fb195fb..e6c4bc380ff 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/context.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/context.rs @@ -1,32 +1,32 @@ -use std::path::PathBuf; -use std::process::Command; +use super::wasm_bindgen_test_runner::Sandbox; +use std::process::Output; pub struct Context { - assembly: Option, - command: Option, + output: Option>, + sandbox: Option, } impl Context { pub fn new() -> Self { Context { - assembly: None, - command: None, + output: None, + sandbox: None, } } - pub fn assembly(&self) -> Option<&PathBuf> { - self.assembly.as_ref() + pub fn into_output(self) -> Result { + self.output.unwrap() } - pub fn assembly_set(&mut self, assembly: PathBuf) { - self.assembly = Some(assembly); + pub fn output_set(&mut self, output: Result) { + self.output = Some(output); } - pub fn command_set(&mut self, command: Command) { - self.command = Some(command); + pub fn sandbox(&self) -> &Sandbox { + self.sandbox.as_ref().unwrap() } - pub fn into_command(self) -> Command { - self.command.unwrap() + pub fn sandbox_set(&mut self, sandbox: Sandbox) { + self.sandbox = Some(sandbox); } } diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs index 7b34ea8a11b..be04e14520d 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs @@ -2,5 +2,7 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; pub fn then_an_error_code_should_have_been_returned(context: Context) { - context.into_command().assert().failure(); + let output = context.into_output().expect("No output was produced"); + + output.assert().failure(); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs index 8fca6809806..9caa4112d91 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs @@ -3,8 +3,8 @@ use assert_cmd::prelude::*; use predicates::str; pub fn then_the_standard_error_should_be_empty(context: Context) { - context - .into_command() - .assert() + let output = context.into_output().expect("No output was produced"); + + output.assert() .stderr(str::is_empty()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs index 88351f5ab7d..20ad78a5391 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs @@ -3,8 +3,7 @@ use assert_cmd::prelude::*; use predicates::str; pub fn then_the_standard_error_should_have(context: Context, content: &str) { - context - .into_command() - .assert() - .stderr(str::contains(content)); + let output = context.into_output().expect("No output was produced"); + + output.assert().stderr(str::contains(content)); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs index 64e5b5fda8e..f8eca918b61 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs @@ -3,8 +3,7 @@ use assert_cmd::prelude::*; use predicates::str; pub fn then_the_standard_output_should_have(context: Context, content: &str) { - context - .into_command() - .assert() - .stdout(str::contains(content)); + let output = context.into_output().expect("No output was produced"); + + output.assert().stdout(str::contains(content)); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs index 2064faff04d..dfc829d7961 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs @@ -2,5 +2,7 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; pub fn then_success_should_have_been_returned(context: Context) { - context.into_command().assert().success(); + let output = context.into_output().expect("No output was produced"); + + output.assert().success(); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index 90d16b58ca3..23ac2061457 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,7 +1,9 @@ +mod sandbox; mod wasm_bindgen_test_runner_command; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; +pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly::*; pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs new file mode 100644 index 00000000000..301497204ec --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs @@ -0,0 +1,66 @@ +use rand::Rng; +use std::fs; +use std::path::PathBuf; + +pub struct Sandbox { + assembly: PathBuf, + original: PathBuf, + root: PathBuf, +} + +impl Sandbox { + pub fn new(original: PathBuf) -> Self { + let file_name = original.file_name().and_then(|s| s.to_str()).unwrap(); + + let mut rng = rand::thread_rng(); + + let root = original + .parent() // chop off file name + .and_then(|p| p.parent()) // chop off `deps` + .and_then(|p| p.parent()) // chop off `debug` + .and_then(|p| p.parent()) // chop off `wasm32-unknown-unknown` + .map(|p| p.join("wasm-bindgen-test-runner-tests")) + .map(|p| { + p.join(format!( + "sandbox-{}-{}", + file_name, + rng.gen_range(1000..9999) + )) + }) + .unwrap(); + + drop(fs::remove_dir_all(&root)); + + let target = root.join("debug").join("deps"); + + fs::create_dir_all(&target).unwrap(); + + let assembly = target.join(file_name); + + fs::copy(&original, &assembly).unwrap(); + + Self { + assembly, + original, + root, + } + } + + pub fn assembly(&self) -> &PathBuf { + &self.assembly + } + + pub fn original(&self) -> &PathBuf { + &self.original + } + + pub fn root(&self) -> &PathBuf { + &self.root + } +} + +impl Drop for Sandbox { + fn drop(&mut self) { + drop(fs::remove_dir_all(&self.root)); + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs index 0c997f4f7ba..3159c84da53 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs @@ -1,11 +1,9 @@ -use crate::__steps__::{Context, wasm_bindgen_test_runner::wasm_bindgen_test_runner_command}; +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(context: &mut Context) { - let mut aux = wasm_bindgen_test_runner_command(); + let mut command = wasm_bindgen_test_runner_command(); - if let Some(ref assembly) = context.assembly() { - aux.arg(assembly); - } + command.arg(context.sandbox().assembly()); - context.command_set(aux); + context.output_set(command.output()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs index ecff742402c..1a41de36274 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs @@ -1,7 +1,7 @@ use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; pub fn when_wasm_bindgen_test_runner_is_invoked_without_arguments(context: &mut Context) { - let aux = wasm_bindgen_test_runner_command(); + let mut command = wasm_bindgen_test_runner_command(); - context.command_set(aux); + context.output_set(command.output()); } From df363bd2b7815693ff158d35953922b6333e9493 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 29 Mar 2024 23:00:46 +0000 Subject: [PATCH 014/224] wasm-bindgen-test-runner-test: Updated a step to use the lazy_static caching of assembly building. --- ..._is_an_assembly_with_one_successful_test.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs index ff8dee7c0d8..e143183ef58 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs @@ -1,9 +1,17 @@ use crate::__steps__::Context; use crate::__steps__::Project; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use lazy_static::lazy_static; +use std::path::PathBuf; -pub fn given_there_is_an_assembly_with_one_successful_test(context: &mut Context) { - let assembly = Project::new("assembly_with_one_successful_test") +lazy_static! { + static ref PROJECT: (Project, PathBuf) = get_project(); +} + +fn get_project() -> (Project, PathBuf) { + let mut project = Project::new("assembly_with_one_successful_test"); + + let assembly = project .file( "src/lib.rs", r#"#[cfg(test)] @@ -17,5 +25,9 @@ fn pass() { "#, ).build(); - context.sandbox_set(Sandbox::new(assembly)); + (project, assembly) +} + +pub fn given_there_is_an_assembly_with_one_successful_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(PROJECT.1.clone())); } From f39650469229861e7646208d392abd99afa7b83a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 29 Mar 2024 23:04:24 +0000 Subject: [PATCH 015/224] wasm-bindgen-test-runner-test: Updated Project assembly builder to not generate random suffix for assembly directory name. --- tests/wasm_bindgen_test_runner/__steps__/project.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/project.rs index 86037eac5a8..ab32c047102 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/project.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/project.rs @@ -1,5 +1,4 @@ use predicates::str; -use rand::Rng; use regex::Regex; use std::env; use std::fs; @@ -28,10 +27,9 @@ pub struct Project { impl Project { pub fn new(name: &'static str) -> Project { - let mut rng = rand::thread_rng(); let root = target_dir() .join("wasm-bindgen-test-runner-tests") - .join(format!("{}_{}", name, rng.gen_range(1000..9999))); + .join(name); drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); Project { From b8c412b1545eb0f0fdafc97939fe5e228640fa0e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 29 Mar 2024 23:16:01 +0000 Subject: [PATCH 016/224] wasm-bindgen-test-runner-test: Renamed Project assembly builder to AssemblyBuilder. --- .../assembly_builder.rs} | 10 ++++---- ...is_an_assembly_with_one_successful_test.rs | 25 +++++++------------ .../given_there_is_an_empty_assembly.rs | 14 +++-------- .../__steps__/assembly/mod.rs | 2 ++ .../wasm_bindgen_test_runner/__steps__/mod.rs | 2 -- 5 files changed, 19 insertions(+), 34 deletions(-) rename tests/wasm_bindgen_test_runner/__steps__/{project.rs => assembly/assembly_builder.rs} (92%) diff --git a/tests/wasm_bindgen_test_runner/__steps__/project.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs similarity index 92% rename from tests/wasm_bindgen_test_runner/__steps__/project.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs index ab32c047102..930497846c3 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/project.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs @@ -20,19 +20,19 @@ fn repo_root() -> PathBuf { env::current_dir().unwrap() } -pub struct Project { +pub struct AssemblyBuilder { root: PathBuf, name: String, } -impl Project { - pub fn new(name: &'static str) -> Project { +impl AssemblyBuilder { + pub fn new(name: &'static str) -> AssemblyBuilder { let root = target_dir() .join("wasm-bindgen-test-runner-tests") .join(name); drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); - Project { + AssemblyBuilder { root, name: name.to_string(), } @@ -42,7 +42,7 @@ impl Project { drop(fs::remove_dir_all(&self.root)); } - pub fn file(&mut self, name: &str, contents: &str) -> &mut Project { + pub fn file(&mut self, name: &str, contents: &str) -> &mut Self { let dst = self.root.join(name); fs::create_dir_all(dst.parent().unwrap()).unwrap(); fs::write(&dst, contents).unwrap(); diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs index e143183ef58..1c846b4b9b3 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs @@ -1,20 +1,14 @@ -use crate::__steps__::Context; -use crate::__steps__::Project; +use super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; use lazy_static::lazy_static; use std::path::PathBuf; lazy_static! { - static ref PROJECT: (Project, PathBuf) = get_project(); -} - -fn get_project() -> (Project, PathBuf) { - let mut project = Project::new("assembly_with_one_successful_test"); - - let assembly = project - .file( - "src/lib.rs", - r#"#[cfg(test)] + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_successful_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] use wasm_bindgen_test::*; #[cfg(test)] @@ -23,11 +17,10 @@ fn pass() { assert_eq!(1, 1); } "#, - ).build(); - - (project, assembly) + ) + .build(); } pub fn given_there_is_an_assembly_with_one_successful_test(context: &mut Context) { - context.sandbox_set(Sandbox::new(PROJECT.1.clone())); + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs index e46f2e6dbc6..21991f2d567 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs @@ -1,27 +1,19 @@ +use super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; -use crate::__steps__::Project; use lazy_static::lazy_static; use std::path::PathBuf; lazy_static! { - static ref PROJECT: (Project, PathBuf) = get_project(); -} - -fn get_project() -> (Project, PathBuf) { - let mut project = Project::new("empty_assembly"); - - let path = project + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("empty_assembly") .file( "src/lib.rs", r#" "#, ) .build(); - - (project, path) } pub fn given_there_is_an_empty_assembly(context: &mut Context) { - context.sandbox_set(Sandbox::new(PROJECT.1.clone())); + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index fd28569d001..74436fc064b 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,5 +1,7 @@ +mod assembly_builder; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_empty_assembly; +pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_empty_assembly::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index 21c7d10ab4c..1f0114f0740 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,11 +1,9 @@ pub mod assembly; mod context; pub mod error_code; -mod project; pub mod standard_error; pub mod standard_output; pub mod success; pub mod wasm_bindgen_test_runner; pub use context::*; -pub use project::*; From d66848ec11e46fc16009dec3e1b7eb4fece27af1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 29 Mar 2024 23:28:16 +0000 Subject: [PATCH 017/224] wasm-bindgen-test-runner-test: Improved assembly naming from empty to without anything to be more consistent. --- .../__features__/invocation/with_an_assembly/mod.rs | 2 +- .../with_an_assembly/{empty => without_anything}/mod.rs | 0 .../{empty => without_anything}/outputs_no_error_feature.rs | 4 ++-- .../outputs_no_tests_to_run_warning_feature.rs | 4 ++-- .../{empty => without_anything}/returns_success_feature.rs | 4 ++-- ...mbly.rs => given_there_is_an_assembly_without_anything.rs} | 4 ++-- tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{empty => without_anything}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{empty => without_anything}/outputs_no_error_feature.rs (76%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{empty => without_anything}/outputs_no_tests_to_run_warning_feature.rs (76%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{empty => without_anything}/returns_success_feature.rs (75%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{given_there_is_an_empty_assembly.rs => given_there_is_an_assembly_without_anything.rs} (68%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index 79975cd71b1..680ac39c68c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1,2 +1,2 @@ -mod empty; +mod without_anything; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_error_feature.rs similarity index 76% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_error_feature.rs index c1d863927d9..4c45abbc111 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_error_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_empty_assembly; +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_no_tests_to_run_warning_feature() { let mut context = Context::new(); - given_there_is_an_empty_assembly(&mut context); + given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_error_should_be_empty(context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_tests_to_run_warning_feature.rs similarity index 76% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_tests_to_run_warning_feature.rs index bc66190e311..cc17773bef5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_tests_to_run_warning_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_empty_assembly; +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_no_tests_to_run_warning_feature() { let mut context = Context::new(); - given_there_is_an_empty_assembly(&mut context); + given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have(context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/returns_success_feature.rs similarity index 75% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/returns_success_feature.rs index 26a12965de0..d0b44b70fd9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/empty/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_empty_assembly; +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_empty_assembly(&mut context); + given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs similarity index 68% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs index 21991f2d567..29c62d35c0c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_empty_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs @@ -5,7 +5,7 @@ use lazy_static::lazy_static; use std::path::PathBuf; lazy_static! { - static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("empty_assembly") + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_without_anything") .file( "src/lib.rs", r#" @@ -14,6 +14,6 @@ lazy_static! { .build(); } -pub fn given_there_is_an_empty_assembly(context: &mut Context) { +pub fn given_there_is_an_assembly_without_anything(context: &mut Context) { context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 74436fc064b..4ac2661776b 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,7 +1,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_successful_test; -mod given_there_is_an_empty_assembly; +mod given_there_is_an_assembly_without_anything; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_successful_test::*; -pub use given_there_is_an_empty_assembly::*; +pub use given_there_is_an_assembly_without_anything::*; From 1233d190010cb9add3595c358b102286054b06ea Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:12:32 +0000 Subject: [PATCH 018/224] wasm-bindgen-test-runner-test: Added feature Outputs Successful Test Execution to invocation with_an_assembly with_one_successful_test. --- .../with_an_assembly/with_one_successful_test/mod.rs | 1 + .../outputs_successful_test_execution_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs index 25ee07c0dc5..eb328601797 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs @@ -1 +1,2 @@ +mod outputs_successful_test_execution_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs new file mode 100644 index 00000000000..1c3b85b9b08 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_successful_test_execution_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test\n\ntest assembly_with_one_successful_test::pass ... ok\n\ntest result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); +} From 30b52e289256d0f986e4783835ddfe7f8da3b3ba Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:15:50 +0000 Subject: [PATCH 019/224] wasm-bindgen-test-runner-test: Added feature Outputs no Error to with_an_assembly with_one_successful_test. --- .../with_an_assembly/with_one_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs index eb328601797..83a6a28d145 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs @@ -1,2 +1,3 @@ +mod outputs_no_error_feature; mod outputs_successful_test_execution_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..813aed231e2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_be_empty(context); +} From 535f7ec835b1a98364372ba66ca996963f1d1f14 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:28:27 +0000 Subject: [PATCH 020/224] wasm-bindgen-test-runner-test: Added feature Returns Failure to invocation with_an_assembly with_one_failing_test. --- .../invocation/with_an_assembly/mod.rs | 1 + .../with_one_failing_test/mod.rs | 1 + .../returns_success_feature.rs | 12 +++++++++ .../invocation/without_arguments/mod.rs | 2 +- ..._feature.rs => returns_failure_feature.rs} | 4 +-- ...re_is_an_assembly_with_one_failing_test.rs | 26 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ .../__steps__/error_code/mod.rs | 4 +-- ...then_failure_should_have_been_returned.rs} | 2 +- 9 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_success_feature.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/{returns_an_error_code_feature.rs => returns_failure_feature.rs} (68%) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_failing_test.rs rename tests/wasm_bindgen_test_runner/__steps__/error_code/{then_an_error_code_should_have_been_returned.rs => then_failure_should_have_been_returned.rs} (69%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index 680ac39c68c..f9a0ff7cc31 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1,2 +1,3 @@ mod without_anything; +mod with_one_failing_test; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..1d2dd3ccd88 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::error_code::then_failure_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_failure_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_failure_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs index 32724fa9055..92f557c888c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs @@ -1,2 +1,2 @@ mod outputs_test_file_missing_error_feature; -mod returns_an_error_code_feature; +mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs similarity index 68% rename from tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs index f326651da90..a904190ab94 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_an_error_code_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::error_code::then_an_error_code_should_have_been_returned; +use crate::__steps__::error_code::then_failure_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_without_arguments; use crate::__steps__::Context; @@ -6,5 +6,5 @@ use crate::__steps__::Context; fn returns_an_error_code_feature() { let mut context = Context::new(); when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); - then_an_error_code_should_have_been_returned(context); + then_failure_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_failing_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_failing_test.rs new file mode 100644 index 00000000000..71bb1ec4739 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_failing_test.rs @@ -0,0 +1,26 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_failing_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} + "#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_failing_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 4ac2661776b..e0e3b756b4c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,7 +1,9 @@ mod assembly_builder; +mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; pub use assembly_builder::*; +pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs index 2f6940b1f9e..f1df5dc51ad 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs @@ -1,3 +1,3 @@ -mod then_an_error_code_should_have_been_returned; +mod then_failure_should_have_been_returned; -pub use then_an_error_code_should_have_been_returned::*; +pub use then_failure_should_have_been_returned::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs similarity index 69% rename from tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs rename to tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs index be04e14520d..8b81dd15c56 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_an_error_code_should_have_been_returned.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs @@ -1,7 +1,7 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; -pub fn then_an_error_code_should_have_been_returned(context: Context) { +pub fn then_failure_should_have_been_returned(context: Context) { let output = context.into_output().expect("No output was produced"); output.assert().failure(); From 5074ddab49b4ba6ebc92038654e5b50cb9cb61ea Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:38:24 +0000 Subject: [PATCH 021/224] wasm-bindgen-test-runner-test: Added feature Outputs Assertion Error to invocation with_an_assembly with_one_failing_test. --- .../invocation/with_an_assembly/mod.rs | 2 +- .../with_an_assembly/with_one_failing_test/mod.rs | 1 + .../outputs_assertion_error_feature.rs | 15 +++++++++++++++ .../then_the_standard_error_should_be_empty.rs | 3 +-- 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index f9a0ff7cc31..50d539754c3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1,3 +1,3 @@ -mod without_anything; mod with_one_failing_test; mod with_one_successful_test; +mod without_anything; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index 25ee07c0dc5..e97bab451e5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1 +1,2 @@ +mod outputs_assertion_error_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs new file mode 100644 index 00000000000..210afdf2510 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_assertion_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_have( + context, + "assertion `left == right` failed\n left: 1\n right: 2", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs index 9caa4112d91..d63cc772f75 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs @@ -5,6 +5,5 @@ use predicates::str; pub fn then_the_standard_error_should_be_empty(context: Context) { let output = context.into_output().expect("No output was produced"); - output.assert() - .stderr(str::is_empty()); + output.assert().stderr(str::is_empty()); } From a1cbe06ae0c79b81c483d13e083eff45640c5d72 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:42:17 +0000 Subject: [PATCH 022/224] wasm-bindgen-test-runner-test: Added feature Outputs Failed Test Execution to invocation with_an_assembly with_one_failing_test. --- .../with_an_assembly/with_one_failing_test/mod.rs | 1 + .../outputs_failed_test_execution_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index e97bab451e5..d3ac3fd90b2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_assertion_error_feature; +mod outputs_failed_test_execution_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs new file mode 100644 index 00000000000..174332f3071 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_failed_test_execution_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test\n\ntest assembly_with_one_failing_test::fail ... FAIL\n\nfailures:\n\n---- assembly_with_one_failing_test::fail output ----"); +} From 62b8d06d3a0569066ba75275e17470202959380b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:46:10 +0000 Subject: [PATCH 023/224] wasm-bindgen-test-runner-test: Fixed feature name Returns Failure of invocation with_an_assembly with_one_failing_test. --- .../invocation/with_an_assembly/with_one_failing_test/mod.rs | 2 +- .../{returns_success_feature.rs => returns_failure_feature.rs} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/{returns_success_feature.rs => returns_failure_feature.rs} (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index d3ac3fd90b2..a8d1ac0fb71 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,3 +1,3 @@ mod outputs_assertion_error_feature; mod outputs_failed_test_execution_feature; -mod returns_success_feature; +mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_failure_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_failure_feature.rs From 7b86a4b400f4d4e21bf01684291a9d4da86aa91e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 21:50:27 +0000 Subject: [PATCH 024/224] wasm-bindgen-test-runner-test: Added feature Returns Failure to invocation with_an_assembly_with_one_successful_and_one_failing_test. --- .../invocation/with_an_assembly/mod.rs | 1 + .../mod.rs | 1 + .../returns_failure_feature.rs | 12 +++++++ ...ith_one_successful_and_one_failing_test.rs | 33 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ 5 files changed, 49 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/returns_failure_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index 50d539754c3..7840b3d221e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1,3 +1,4 @@ mod with_one_failing_test; +mod with_one_successful_and_one_failing_test; mod with_one_successful_test; mod without_anything; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..2ff95b99157 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1 @@ +mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/returns_failure_feature.rs new file mode 100644 index 00000000000..67ce5409b67 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/returns_failure_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::error_code::then_failure_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_failure_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_failure_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs new file mode 100644 index 00000000000..e546fda8635 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs @@ -0,0 +1,33 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_and_one_failing_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[cfg(test)] +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} + "#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_and_one_failing_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index e0e3b756b4c..6a7fbec51f2 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,9 +1,11 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; +mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; From 47692b41c0352f9fa2e5312ba1d70b003d7788e9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 22:37:31 +0000 Subject: [PATCH 025/224] wasm-bindgen-test-runner-test: Added feature Outputs the failed test execution with_an_assembly_with_one_successful_and_one_failing_test. --- .../with_one_successful_and_one_failing_test/mod.rs | 1 + .../outputs_the_failed_test_execution_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index 2ff95b99157..7638d7f3f61 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -1 +1,2 @@ +mod outputs_the_failed_test_execution_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs new file mode 100644 index 00000000000..d299240fb92 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_failed_test_execution_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "test assembly_with_one_successful_and_one_failing_test::fail ... FAIL"); +} From e66edc8368673bbfb1e22de7c430c2e276488741 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 22:39:15 +0000 Subject: [PATCH 026/224] wasm-bindgen-test-runner-test: Added feature Outputs the successful test execution with_an_assembly_with_one_successful_and_one_failing_test. --- .../with_one_successful_and_one_failing_test/mod.rs | 1 + .../outputs_the_successful_test_execution_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index 7638d7f3f61..7764fab266c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_the_failed_test_execution_feature; +mod outputs_the_successful_test_execution_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs new file mode 100644 index 00000000000..e27eaf5ba5a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_failed_test_execution_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "test assembly_with_one_successful_and_one_failing_test::pass ... ok"); +} From a5701db5356f3cea40da88b377d05e7ac193abd8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 22:43:57 +0000 Subject: [PATCH 027/224] wasm-bindgen-test-runner-test: Added feature Outputs its running 2 tests to invocation with_an_assembly with_one_successful_and_one_failing_test. --- .../with_one_successful_and_one_failing_test/mod.rs | 1 + .../outputs_its_running_2_tests_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index 7764fab266c..a7ae2bc235f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -1,3 +1,4 @@ +mod outputs_its_running_2_tests_feature; mod outputs_the_failed_test_execution_feature; mod outputs_the_successful_test_execution_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..d8e643c5c0e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_tests_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 2 tests"); +} From ec834d5496f96340f07d5d2ad9e718ebe465c32d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 22:50:10 +0000 Subject: [PATCH 028/224] wasm-bindgen-test-runner-test: Added feature Outputs the assembly test summary to invocation with_an_assembly with_one_successful_and_one_failing_test. --- .../with_one_successful_and_one_failing_test/mod.rs | 1 + .../outputs_the_assembly_test_summary_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index a7ae2bc235f..7b9ec0a61e1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -1,3 +1,4 @@ +mod outputs_the_assembly_test_summary_feature; mod outputs_its_running_2_tests_feature; mod outputs_the_failed_test_execution_feature; mod outputs_the_successful_test_execution_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..527c000317b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out"); +} From 5891b8b20e4bce6668d24fb58e1549283d41a434 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 22:58:01 +0000 Subject: [PATCH 029/224] wasm-bindgen-test-runner-test: Added feature Outputs the assembly failure summary to invocation with_an_assembly with_one_successful_and_one_failing_test. --- .../mod.rs | 3 ++- ...utputs_the_assembly_failure_summary_feature.rs | 15 +++++++++++++++ .../outputs_the_assembly_test_summary_feature.rs | 5 ++++- .../outputs_the_failed_test_execution_feature.rs | 5 ++++- ...tputs_the_successful_test_execution_feature.rs | 5 ++++- 5 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index 7b9ec0a61e1..abb1b01e0fc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -1,5 +1,6 @@ -mod outputs_the_assembly_test_summary_feature; mod outputs_its_running_2_tests_feature; +mod outputs_the_assembly_failure_summary_feature; +mod outputs_the_assembly_test_summary_feature; mod outputs_the_failed_test_execution_feature; mod outputs_the_successful_test_execution_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs new file mode 100644 index 00000000000..c15749172a3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_failure_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "failures:\n\n assembly_with_one_successful_and_one_failing_test::fail\n", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs index 527c000317b..82d034fec99 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs @@ -8,5 +8,8 @@ fn outputs_the_assembly_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have( + context, + "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out", + ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs index d299240fb92..49a872f0cbc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs @@ -8,5 +8,8 @@ fn outputs_the_failed_test_execution_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "test assembly_with_one_successful_and_one_failing_test::fail ... FAIL"); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_failing_test::fail ... FAIL", + ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs index e27eaf5ba5a..e385e8ca582 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs @@ -8,5 +8,8 @@ fn outputs_failed_test_execution_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "test assembly_with_one_successful_and_one_failing_test::pass ... ok"); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_failing_test::pass ... ok", + ); } From 3a7d0fe0bf2a1e0cd3da0ee93e854e753b8e3cec Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:08:38 +0000 Subject: [PATCH 030/224] wasm-bindgen-test-runner-test: Added feature Outputs the failed test assertion error to invocation with_an_assembly with_one_successful_and_one_failing_test. --- .../mod.rs | 1 + ...uts_the_failed_test_assertion_error_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index abb1b01e0fc..cf92a302cdb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -1,6 +1,7 @@ mod outputs_its_running_2_tests_feature; mod outputs_the_assembly_failure_summary_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_failed_test_assertion_error_feature; mod outputs_the_failed_test_execution_feature; mod outputs_the_successful_test_execution_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs new file mode 100644 index 00000000000..31189becd3e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_failed_test_assertion_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_have( + context, + "assertion `left == right` failed\n left: 1\n right: 2", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs index 813aed231e2..1c7e3202bda 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_no_tests_to_run_warning_feature() { +fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); From 0eeeb17a10d9225c150d8a504def8a055e3da73b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:10:57 +0000 Subject: [PATCH 031/224] wasm-bindgen-test-runner-test: Improved features names of invocation with_an_assembly with_one_successful_and_one_failing_test. --- .../with_one_successful_and_one_failing_test/mod.rs | 4 ++-- ..._feature.rs => outputs_the_failed_test_summary_feature.rs} | 2 +- ...ture.rs => outputs_the_successful_test_summary_feature.rs} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/{outputs_the_failed_test_execution_feature.rs => outputs_the_failed_test_summary_feature.rs} (93%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/{outputs_the_successful_test_execution_feature.rs => outputs_the_successful_test_summary_feature.rs} (93%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs index cf92a302cdb..e4b0a4ed3f8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -2,6 +2,6 @@ mod outputs_its_running_2_tests_feature; mod outputs_the_assembly_failure_summary_feature; mod outputs_the_assembly_test_summary_feature; mod outputs_the_failed_test_assertion_error_feature; -mod outputs_the_failed_test_execution_feature; -mod outputs_the_successful_test_execution_feature; +mod outputs_the_failed_test_summary_feature; +mod outputs_the_successful_test_summary_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs similarity index 93% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs index 49a872f0cbc..15b219b0ba7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_execution_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_the_failed_test_execution_feature() { +fn outputs_the_failed_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs similarity index 93% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs index e385e8ca582..3c6ad01f6f4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_execution_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_failed_test_execution_feature() { +fn outputs_failed_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); From 06d130e681137468fe9e7e23306e38b6730c23da Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:14:43 +0000 Subject: [PATCH 032/224] wasm-bindgen-test-runner-test: Added feature Outputs its running 1 test to invocation with_an_assembly with_one_successful_test. --- .../with_an_assembly/with_one_successful_test/mod.rs | 3 ++- ...ture.rs => outputs_its_running_1_test_feature.rs} | 4 ++-- .../outputs_successful_test_summary_feature.rs | 12 ++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/{outputs_successful_test_execution_feature.rs => outputs_its_running_1_test_feature.rs} (76%) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs index 83a6a28d145..75cf88aae91 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs @@ -1,3 +1,4 @@ +mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; -mod outputs_successful_test_execution_feature; +mod outputs_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs similarity index 76% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs index 1c3b85b9b08..388891c4830 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_execution_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -4,9 +4,9 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_successful_test_execution_feature() { +fn outputs_its_running_2_tests_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test\n\ntest assembly_with_one_successful_test::pass ... ok\n\ntest result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have(context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs new file mode 100644 index 00000000000..2f1560db25b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "test assembly_with_one_successful_test::pass ... ok\n\ntest result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); +} From e02ba2e515cfd631a856c3109a8b1def52ca51ba Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:18:50 +0000 Subject: [PATCH 033/224] wasm-bindgen-test-runner-test: Added feature Outputs the successful test summary to invocation with_an_assembly with_one_successful_test. --- .../with_one_successful_test/mod.rs | 3 ++- ... outputs_the_assembly_test_summary_feature.rs} | 7 +++++-- ...outputs_the_successful_test_summary_feature.rs | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/{outputs_successful_test_summary_feature.rs => outputs_the_assembly_test_summary_feature.rs} (69%) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs index 75cf88aae91..e47449a0ae8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; -mod outputs_successful_test_summary_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs similarity index 69% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 2f1560db25b..062a83acebf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -4,9 +4,12 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_successful_test_summary_feature() { +fn outputs_the_assembly_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "test assembly_with_one_successful_test::pass ... ok\n\ntest result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..b128ae5a091 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} From cc40b27345d5005ba937d9fca7a23d7d5ed596fa Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:20:58 +0000 Subject: [PATCH 034/224] wasm-bindgen-test-runner-test: Improved feature name Outputs the failed test assertion error to invocation with_an_assembly with_one_failing_test. --- .../invocation/with_an_assembly/with_one_failing_test/mod.rs | 2 +- ...re.rs => outputs_the_failed_test_assertion_error_feature.rs} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/{outputs_assertion_error_feature.rs => outputs_the_failed_test_assertion_error_feature.rs} (91%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index a8d1ac0fb71..fc78bf5b1f0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,3 +1,3 @@ -mod outputs_assertion_error_feature; +mod outputs_the_failed_test_assertion_error_feature; mod outputs_failed_test_execution_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs index 210afdf2510..adcad113fb4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_assertion_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_assertion_error_feature() { +fn outputs_the_failed_test_assertion_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); From 658519c08b1939ab97e0ca488678fd59905e1285 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:23:18 +0000 Subject: [PATCH 035/224] wasm-bindgen-test-runner-test: Improved feature name Outputs the failed test summary to invocation with_an_assembly with_one_failing_test. --- .../invocation/with_an_assembly/with_one_failing_test/mod.rs | 2 +- ...on_feature.rs => outputs_the_failed_test_summary_feature.rs} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/{outputs_failed_test_execution_feature.rs => outputs_the_failed_test_summary_feature.rs} (93%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index fc78bf5b1f0..64dbac155b3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,3 +1,3 @@ mod outputs_the_failed_test_assertion_error_feature; -mod outputs_failed_test_execution_feature; +mod outputs_the_failed_test_summary_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs similarity index 93% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs index 174332f3071..99b123e2b36 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_failed_test_execution_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_failed_test_execution_feature() { +fn outputs_the_failed_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); From e551c4b8553a8ad7b5487d9882db6d5eab31aa96 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:27:33 +0000 Subject: [PATCH 036/224] wasm-bindgen-test-runner-test: Added feature Outputs its running 1 test to invocation with_an_assembly with_one_failing_test. --- .../with_an_assembly/with_one_failing_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ .../outputs_the_failed_test_summary_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index 64dbac155b3..6a8b44e9c71 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,3 +1,4 @@ +mod outputs_its_running_1_test_feature; mod outputs_the_failed_test_assertion_error_feature; mod outputs_the_failed_test_summary_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..d9270eaa1e7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs index 99b123e2b36..d5a384be6a7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -8,5 +8,5 @@ fn outputs_the_failed_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test\n\ntest assembly_with_one_failing_test::fail ... FAIL\n\nfailures:\n\n---- assembly_with_one_failing_test::fail output ----"); + then_the_standard_output_should_have(context, "test assembly_with_one_failing_test::fail ... FAIL\n\nfailures:\n\n---- assembly_with_one_failing_test::fail output ----"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs index 388891c4830..b964b39781a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_its_running_2_tests_feature() { +fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); From 46e38764468d81baa0a920d749ecb8c659393cd1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:37:38 +0000 Subject: [PATCH 037/224] wasm-bindgen-test-runner-test: Added feature Outputs the assembly failure summary to invocation with_an_assembly with_one_failing_test. --- .../with_an_assembly/with_one_failing_test/mod.rs | 1 + ...utputs_the_assembly_failure_summary_feature.rs | 15 +++++++++++++++ .../outputs_the_failed_test_summary_feature.rs | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index 6a8b44e9c71..1add85c2e36 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; +mod outputs_the_assembly_failure_summary_feature; mod outputs_the_failed_test_assertion_error_feature; mod outputs_the_failed_test_summary_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs new file mode 100644 index 00000000000..c4801881052 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_failure_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "failures:\n\n assembly_with_one_failing_test::fail", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs index d5a384be6a7..06cff29711b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -8,5 +8,5 @@ fn outputs_the_failed_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "test assembly_with_one_failing_test::fail ... FAIL\n\nfailures:\n\n---- assembly_with_one_failing_test::fail output ----"); + then_the_standard_output_should_have(context, "test assembly_with_one_failing_test::fail ... FAIL"); } From 9d80dacca58646b2b370362f21237ae11c71fc5a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 30 Mar 2024 23:40:11 +0000 Subject: [PATCH 038/224] wasm-bindgen-test-runner-test: Added feature Outputs the assembly test summary to invocation with_an_assembly with_one_failing_test. --- .../with_an_assembly/with_one_failing_test/mod.rs | 1 + .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index 1add85c2e36..b105e96ecbc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; +mod outputs_the_assembly_test_summary_feature; mod outputs_the_assembly_failure_summary_feature; mod outputs_the_failed_test_assertion_error_feature; mod outputs_the_failed_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..910af5cd6e8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out", + ); +} From 9b6607d341e6c624b04d4315fcaf4bba26d17477 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Apr 2024 20:41:40 +0100 Subject: [PATCH 039/224] wasm-bindgen-test-runner: Started to add support for proper arguments handling. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 38 ++++++++++++++++--- .../invocation/without_arguments/mod.rs | 2 +- ...utputs_invalid_arguments_error_feature.rs} | 5 +-- ...n_test_runner_usage_information_feature.rs | 15 ++++++++ 4 files changed, 49 insertions(+), 11 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/{outputs_test_file_missing_error_feature.rs => outputs_invalid_arguments_error_feature.rs} (75%) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 06d386119ed..e73ff566e15 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -12,7 +12,9 @@ //! and source code. use anyhow::{anyhow, bail, Context}; +use docopt::Docopt; use log::error; +use serde::Deserialize; use std::env; use std::fs; use std::path::PathBuf; @@ -65,16 +67,40 @@ impl Drop for TmpDirDeleteGuard { } } +const USAGE: &str = " +Execute all wasm bindgen unit and integration tests and build examples of a local package + +Usage: + wasm-bindgen-test-runner [options] + wasm-bindgen-test-runner -h | --help + wasm-bindgen-test-runner -V | --version + +Options: + -h --help Show this screen. + -V --version Print the version number of wasm-bindgen-test-runner + +Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html +"; + +#[derive(Debug, Deserialize)] +struct Args { + arg_input: Option, + flag_version: bool, +} + fn main() -> anyhow::Result<()> { env_logger::init(); - let mut args = env::args_os().skip(1); + let args = env::args_os().skip(2); + let args_: Args = Docopt::new(USAGE) + .and_then(|d| d.deserialize()) + .unwrap_or_else(|e| e.exit()); + let shell = shell::Shell::new(); - // Currently no flags are supported, and assume there's only one argument - // which is the wasm file to test. This'll want to improve over time! - let wasm_file_to_test = match args.next() { - Some(file) => PathBuf::from(file), - None => bail!("must have a file to test as first argument"), + let wasm_file_to_test: PathBuf = if let Some(input) = args_.arg_input { + input + } else { + bail!("must have a file to test as first argument"); }; let file_name = wasm_file_to_test diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs index 92f557c888c..db1388ec350 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs @@ -1,2 +1,2 @@ -mod outputs_test_file_missing_error_feature; +mod outputs_invalid_arguments_error_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs similarity index 75% rename from tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs index e324a9070dd..425369a347f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_test_file_missing_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs @@ -6,8 +6,5 @@ use crate::__steps__::Context; fn outputs_test_file_missing_error_feature() { let mut context = Context::new(); when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); - then_the_standard_error_should_have( - context, - "Error: must have a file to test as first argument", - ); + then_the_standard_error_should_have(context, "Invalid arguments."); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs new file mode 100644 index 00000000000..f3c56f7328e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_without_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); + then_the_standard_error_should_have( + context, + "Usage:\n wasm-bindgen-test-runner [options] \n wasm-bindgen-test-runner -h | --help\n wasm-bindgen-test-runner -V | --version", + ); +} From ea2b0aa080e8b1a8eb9747665804d2794bacfcd5 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Apr 2024 20:46:08 +0100 Subject: [PATCH 040/224] wasm-bindgen-test-runner: Started to add support for proper arguments handling. --- .../__features__/invocation/without_arguments/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs index db1388ec350..34fb4fe6ffa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs @@ -1,2 +1,3 @@ mod outputs_invalid_arguments_error_feature; +mod outputs_the_wasm_bindgen_test_runner_usage_information_feature; mod returns_failure_feature; From 93fd7804b7e7fba0adf6998b2b19f46373d2aeec Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Apr 2024 20:47:11 +0100 Subject: [PATCH 041/224] wasm-bindgen-test-runner: Added test feature Outputs the wasm-bindgen-test-runner help information to --help and -h. --- .../__features__/invocation/mod.rs | 1 + .../invocation/options/__help/mod.rs | 1 + ...en_test_runner_help_information_feature.rs | 27 +++++++++++++++++++ .../__features__/invocation/options/_h/mod.rs | 1 + ...en_test_runner_help_information_feature.rs | 27 +++++++++++++++++++ .../__features__/invocation/options/mod.rs | 2 ++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ ...est_runner_is_invoked_with_the_argument.rs | 9 +++++++ 8 files changed, 70 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs index 82ae94e78af..9f56a85d115 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs @@ -1,2 +1,3 @@ +mod options; mod with_an_assembly; mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs new file mode 100644 index 00000000000..9b1980264fc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs @@ -0,0 +1 @@ +mod outputs_the_wasm_bindgen_test_runner_help_information_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs new file mode 100644 index 00000000000..4ada7b78076 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -0,0 +1,27 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--help"); + then_the_standard_output_should_have( + context, + r#"Execute all wasm bindgen unit and integration tests and build examples of a local package + +Usage: + wasm-bindgen-test-runner [options] + wasm-bindgen-test-runner -h | --help + wasm-bindgen-test-runner -V | --version + +Options: + -h --help Show this screen. + -V --version Print the version number of wasm-bindgen-test-runner + +Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html +"#, + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs new file mode 100644 index 00000000000..9b1980264fc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs @@ -0,0 +1 @@ +mod outputs_the_wasm_bindgen_test_runner_help_information_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs new file mode 100644 index 00000000000..315042510bd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -0,0 +1,27 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-h"); + then_the_standard_output_should_have( + context, + r#"Execute all wasm bindgen unit and integration tests and build examples of a local package + +Usage: + wasm-bindgen-test-runner [options] + wasm-bindgen-test-runner -h | --help + wasm-bindgen-test-runner -V | --version + +Options: + -h --help Show this screen. + -V --version Print the version number of wasm-bindgen-test-runner + +Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html +"#, + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs new file mode 100644 index 00000000000..3c806169c13 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs @@ -0,0 +1,2 @@ +mod __help; +mod _h; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index 23ac2061457..e691b4bd420 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,9 +1,11 @@ mod sandbox; mod wasm_bindgen_test_runner_command; +mod when_wasm_bindgen_test_runner_is_invoked_with_the_argument; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_argument::*; pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly::*; pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs new file mode 100644 index 00000000000..2f872518875 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs @@ -0,0 +1,9 @@ +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; + +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_argument(context: &mut Context, argument: &str) { + let mut command = wasm_bindgen_test_runner_command(); + + command.arg(argument); + + context.output_set(command.output()); +} From 37dc4c23b0c0dfdcd70b84028de4ff1c51fe5c4d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Apr 2024 20:49:34 +0100 Subject: [PATCH 042/224] wasm-bindgen-test-runner: Added test feature Returns Success to --help and -h. --- .../__features__/invocation/options/__help/mod.rs | 1 + .../options/__help/returns_success_feature.rs | 12 ++++++++++++ .../__features__/invocation/options/_h/mod.rs | 1 + .../invocation/options/_h/returns_success_feature.rs | 12 ++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs index 9b1980264fc..1e1b94d44eb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs @@ -1 +1,2 @@ mod outputs_the_wasm_bindgen_test_runner_help_information_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs new file mode 100644 index 00000000000..37a6b9ee251 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--help"); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs index 9b1980264fc..1e1b94d44eb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs @@ -1 +1,2 @@ mod outputs_the_wasm_bindgen_test_runner_help_information_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs new file mode 100644 index 00000000000..719b64d7865 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-h"); + then_success_should_have_been_returned(context); +} From fe78bd01e962b9bffc3daa565e134f463e3faf3c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Apr 2024 21:05:48 +0100 Subject: [PATCH 043/224] wasm-bindgen-test: Added feature support and test Outputs the wasm-bindgen-test-runner version information to --version and -V. --- .../cli/src/bin/wasm-bindgen-test-runner/main.rs | 8 ++++++++ .../invocation/options/__version/mod.rs | 1 + ...gen_test_runner_version_information_feature.rs | 15 +++++++++++++++ .../__features__/invocation/options/_v/mod.rs | 1 + ...gen_test_runner_version_information_feature.rs | 15 +++++++++++++++ .../__features__/invocation/options/mod.rs | 2 ++ .../with_an_assembly/with_one_failing_test/mod.rs | 2 +- .../outputs_the_failed_test_summary_feature.rs | 5 ++++- ...en_test_runner_is_invoked_with_the_argument.rs | 5 ++++- 9 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index e73ff566e15..96e9a233ab3 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -95,6 +95,14 @@ fn main() -> anyhow::Result<()> { .and_then(|d| d.deserialize()) .unwrap_or_else(|e| e.exit()); + if args_.flag_version { + println!( + "wasm-bindgen-test-runner {}", + wasm_bindgen_shared::version() + ); + return Ok(()); + } + let shell = shell::Shell::new(); let wasm_file_to_test: PathBuf = if let Some(input) = args_.arg_input { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs new file mode 100644 index 00000000000..76437457968 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs @@ -0,0 +1 @@ +mod outputs_the_wasm_bindgen_test_runner_version_information_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs new file mode 100644 index 00000000000..13d8ba4eec1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn outputs_the_wasm_bindgen_test_runner_version_information_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--version"); + then_the_standard_output_should_have( + context, + &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs new file mode 100644 index 00000000000..76437457968 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs @@ -0,0 +1 @@ +mod outputs_the_wasm_bindgen_test_runner_version_information_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs new file mode 100644 index 00000000000..a56f291e061 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn outputs_the_wasm_bindgen_test_runner_version_information_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-V"); + then_the_standard_output_should_have( + context, + &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs index 3c806169c13..7ecd3f18e40 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs @@ -1,2 +1,4 @@ mod __help; +mod __version; mod _h; +mod _v; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs index b105e96ecbc..a1167f8d4ad 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs @@ -1,6 +1,6 @@ mod outputs_its_running_1_test_feature; -mod outputs_the_assembly_test_summary_feature; mod outputs_the_assembly_failure_summary_feature; +mod outputs_the_assembly_test_summary_feature; mod outputs_the_failed_test_assertion_error_feature; mod outputs_the_failed_test_summary_feature; mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs index 06cff29711b..8e81cbff2c2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -8,5 +8,8 @@ fn outputs_the_failed_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "test assembly_with_one_failing_test::fail ... FAIL"); + then_the_standard_output_should_have( + context, + "test assembly_with_one_failing_test::fail ... FAIL", + ); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs index 2f872518875..eb141947fb6 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs @@ -1,6 +1,9 @@ use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; -pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_argument(context: &mut Context, argument: &str) { +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_argument( + context: &mut Context, + argument: &str, +) { let mut command = wasm_bindgen_test_runner_command(); command.arg(argument); From f39636e9e6b89a6fe1a531c9af2667079a89fd83 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Apr 2024 21:07:57 +0100 Subject: [PATCH 044/224] wasm-bindgen-test-runner: Added test feature Returns Success to invocation with option --version and -V. --- .../__features__/invocation/options/__version/mod.rs | 1 + .../options/__version/returns_success_feature.rs | 12 ++++++++++++ .../__features__/invocation/options/_v/mod.rs | 1 + .../invocation/options/_v/returns_success_feature.rs | 12 ++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs index 76437457968..bb037e0f91c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs @@ -1 +1,2 @@ mod outputs_the_wasm_bindgen_test_runner_version_information_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs new file mode 100644 index 00000000000..afeaf454795 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--version"); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs index 76437457968..bb037e0f91c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs @@ -1 +1,2 @@ mod outputs_the_wasm_bindgen_test_runner_version_information_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs new file mode 100644 index 00000000000..b5451536073 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-V"); + then_success_should_have_been_returned(context); +} From a1d6b41bc2f48286d1c34789f1102bb0fb06144e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 18:47:00 +0100 Subject: [PATCH 045/224] wasm-bindgen-test-runner: Added commas to the help display. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 4 ++-- ...s_the_wasm_bindgen_test_runner_help_information_feature.rs | 4 ++-- ...s_the_wasm_bindgen_test_runner_help_information_feature.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 96e9a233ab3..dc8d28b88e9 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -76,8 +76,8 @@ Usage: wasm-bindgen-test-runner -V | --version Options: - -h --help Show this screen. - -V --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 4ada7b78076..46186995688 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -18,8 +18,8 @@ Usage: wasm-bindgen-test-runner -V | --version Options: - -h --help Show this screen. - -V --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 315042510bd..62cf7a67bbb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -18,8 +18,8 @@ Usage: wasm-bindgen-test-runner -V | --version Options: - -h --help Show this screen. - -V --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, From d88b112c79ed700034de6c1714a6105cdf876616 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:05:41 +0100 Subject: [PATCH 046/224] wasm-bindgen-test-runner: Started to add support for --list --format terse and --list --format terse --ignored. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 88 ++++++++++++------- 1 file changed, 57 insertions(+), 31 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index dc8d28b88e9..9fc4f767fe3 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -71,13 +71,18 @@ const USAGE: &str = " Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] + wasm-bindgen-test-runner [options] [arguments] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner + +Arguments: + --list List all tests that would be run + --format TARGET Format of the tests listing output, valid values are [terse, json] + --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "; @@ -85,6 +90,9 @@ Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-t #[derive(Debug, Deserialize)] struct Args { arg_input: Option, + flag_ignored: bool, + flag_list: bool, + flag_target: Option, flag_version: bool, } @@ -103,8 +111,6 @@ fn main() -> anyhow::Result<()> { return Ok(()); } - let shell = shell::Shell::new(); - let wasm_file_to_test: PathBuf = if let Some(input) = args_.arg_input { input } else { @@ -116,32 +122,6 @@ fn main() -> anyhow::Result<()> { .and_then(|s| s.to_str()) .context("file to test is not a valid file, can't extract file name")?; - // wasm_file_to_test may be - // - a cargo-like directory layout and generate output at - // `target/wasm32-unknown-unknown/...` - // - a tmp directory, generated by rustdoc - // we would like a directory we have write access to. if we assume cargo-like directories, - // we end up with the path `/wbg-out` - let wasm_file_str = wasm_file_to_test.to_string_lossy(); - let tmpdir = - if wasm_file_str.starts_with("/tmp/rustdoc") || wasm_file_str.starts_with("/var/folders") { - wasm_file_to_test.parent() // chop off the file name and give us the /tmp/rustdoc directory - } else { - wasm_file_to_test - .parent() // chop off file name - .and_then(|p| p.parent()) // chop off `deps` - .and_then(|p| p.parent()) // chop off `debug` - } - .map(|p| p.join(format!("wbg-tmp-{}", file_name))) - .ok_or_else(|| anyhow!("file to test doesn't follow the expected Cargo conventions"))?; - - // Make sure there's no stale state from before - drop(fs::remove_dir_all(&tmpdir)); - fs::create_dir(&tmpdir).context("creating temporary directory")?; - let _guard = TmpDirDeleteGuard(tmpdir.clone()); - - let module = "wasm-bindgen-test"; - // Collect all tests that the test harness is supposed to run. We assume // that any exported function with the prefix `__wbg_test` is a test we need // to execute. @@ -157,6 +137,25 @@ fn main() -> anyhow::Result<()> { tests.push(export.name.to_string()); } + if args_.flag_list { + if tests.is_empty() { + return Ok(()); + } + + if args_.flag_ignored { + return Ok(()); + } + + for test in tests { + let test = test.trim_start_matches("__wbgt_"); + let last = test.rfind('_').unwrap_or_else(|| test.len()); + let test = &test[..last]; + println!("{}: test", test); + } + + return Ok(()); + } + // Right now there's a bug where if no tests are present then the // `wasm-bindgen-test` runtime support isn't linked in, so just bail out // early saying everything is ok. @@ -231,6 +230,7 @@ fn main() -> anyhow::Result<()> { } // Make the generated bindings available for the tests to execute against. + let shell = shell::Shell::new(); shell.status("Executing bindgen..."); let mut b = Bindgen::new(); match test_mode { @@ -252,6 +252,32 @@ fn main() -> anyhow::Result<()> { b.split_linked_modules(true); } + // wasm_file_to_test may be + // - a cargo-like directory layout and generate output at + // `target/wasm32-unknown-unknown/...` + // - a tmp directory, generated by rustdoc + // we would like a directory we have write access to. if we assume cargo-like directories, + // we end up with the path `/wbg-out` + let wasm_file_str = wasm_file_to_test.to_string_lossy(); + let tmpdir = + if wasm_file_str.starts_with("/tmp/rustdoc") || wasm_file_str.starts_with("/var/folders") { + wasm_file_to_test.parent() // chop off the file name and give us the /tmp/rustdoc directory + } else { + wasm_file_to_test + .parent() // chop off file name + .and_then(|p| p.parent()) // chop off `deps` + .and_then(|p| p.parent()) // chop off `debug` + } + .map(|p| p.join(format!("wbg-tmp-{}", file_name))) + .ok_or_else(|| anyhow!("file to test doesn't follow the expected Cargo conventions"))?; + + // Make sure there's no stale state from before + drop(fs::remove_dir_all(&tmpdir)); + fs::create_dir(&tmpdir).context("creating temporary directory")?; + let _guard = TmpDirDeleteGuard(tmpdir.clone()); + + let module = "wasm-bindgen-test"; + b.debug(debug) .input_module(module, wasm) .keep_debug(false) From 38feb8e0c98bbe76f05a37ef92a7808604445122 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:09:46 +0100 Subject: [PATCH 047/224] wasm-bindgen-test-runner: Updated existing features to match improvements towards support --list --format terse and --list format terse --ignored. --- ...indgen_test_runner_help_information_feature.rs | 15 ++++++++++----- .../options/__help/returns_success_feature.rs | 4 ++-- ...gen_test_runner_version_information_feature.rs | 4 ++-- .../options/__version/returns_success_feature.rs | 4 ++-- ...indgen_test_runner_help_information_feature.rs | 15 ++++++++++----- .../options/_h/returns_success_feature.rs | 4 ++-- ...gen_test_runner_version_information_feature.rs | 4 ++-- .../options/_v/returns_success_feature.rs | 4 ++-- ...ndgen_test_runner_usage_information_feature.rs | 5 ++++- .../__steps__/wasm_bindgen_test_runner/mod.rs | 6 ++++-- ...gen_test_runner_is_invoked_with_the_option.rs} | 2 +- 11 files changed, 41 insertions(+), 26 deletions(-) rename tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/{when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs => when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs} (80%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 46186995688..53c57d2e6b4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -1,25 +1,30 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--help"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--help"); then_the_standard_output_should_have( context, r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] + wasm-bindgen-test-runner [options] [arguments] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner + +Arguments: + --list List all tests that would be run + --format TARGET Format of the tests listing output, valid values are [terse, json] + --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs index 37a6b9ee251..a518ca2ae1e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs @@ -1,12 +1,12 @@ use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::success::then_success_should_have_been_returned; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--help"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--help"); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs index 13d8ba4eec1..1d7841eca0c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs @@ -1,13 +1,13 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn outputs_the_wasm_bindgen_test_runner_version_information_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--version"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--version"); then_the_standard_output_should_have( context, &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs index afeaf454795..b88cf473084 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs @@ -1,12 +1,12 @@ use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::success::then_success_should_have_been_returned; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "--version"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--version"); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 62cf7a67bbb..93ff22345d4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -1,25 +1,30 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-h"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-h"); then_the_standard_output_should_have( context, r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] + wasm-bindgen-test-runner [options] [arguments] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner + +Arguments: + --list List all tests that would be run + --format TARGET Format of the tests listing output, valid values are [terse, json] + --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs index 719b64d7865..5e48f77c99c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs @@ -1,12 +1,12 @@ use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::success::then_success_should_have_been_returned; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-h"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-h"); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs index a56f291e061..21f7fcc7cb5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs @@ -1,13 +1,13 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn outputs_the_wasm_bindgen_test_runner_version_information_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-V"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-V"); then_the_standard_output_should_have( context, &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs index b5451536073..39e0fa9468f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs @@ -1,12 +1,12 @@ use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; use crate::__steps__::success::then_success_should_have_been_returned; -use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_argument; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); - when_wasm_bindgen_test_runner_is_invoked_with_the_argument(&mut context, "-V"); + when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-V"); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs index f3c56f7328e..46af43940c9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -10,6 +10,9 @@ fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); then_the_standard_error_should_have( context, - "Usage:\n wasm-bindgen-test-runner [options] \n wasm-bindgen-test-runner -h | --help\n wasm-bindgen-test-runner -V | --version", + r#"Usage: + wasm-bindgen-test-runner [options] [arguments] + wasm-bindgen-test-runner -h | --help + wasm-bindgen-test-runner -V | --version"#, ); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index e691b4bd420..eeb2dfdf45e 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,11 +1,13 @@ mod sandbox; mod wasm_bindgen_test_runner_command; -mod when_wasm_bindgen_test_runner_is_invoked_with_the_argument; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; -pub use when_wasm_bindgen_test_runner_is_invoked_with_the_argument::*; pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly::*; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments::*; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_option::*; pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs similarity index 80% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs rename to tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs index eb141947fb6..45fda809441 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_argument.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs @@ -1,6 +1,6 @@ use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; -pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_argument( +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_option( context: &mut Context, argument: &str, ) { From a0624d11036f116b22d99237b73fa35fa1633560 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:19:53 +0100 Subject: [PATCH 048/224] wasm-bindgen-test-runner: Added test feature Outputs nothing to invocation with_an_assembly with_arguments --list --format terse. --- .../invocation/with_an_assembly/mod.rs | 1 + .../__list/__format_terse/default/mod.rs | 1 + .../default/with_an_assembly/mod.rs | 2 ++ .../with_an_assembly/without_tests/mod.rs | 2 ++ .../without_tests/outputs_nothing_feature.rs | 15 +++++++++ .../__list/__format_terse/mod.rs | 2 ++ .../with_arguments/__list/mod.rs | 1 + .../with_an_assembly/with_arguments/mod.rs | 1 + .../__steps__/standard_output/mod.rs | 2 ++ ...hen_the_standard_output_should_be_empty.rs | 9 ++++++ .../wasm_bindgen_test_runner/context.rs | 32 +++++++++++++++++++ ...ked_with_the_assembly_and_the_arguments.rs | 13 ++++++++ 12 files changed, 81 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/outputs_nothing_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index 7840b3d221e..978b9e93fba 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1,3 +1,4 @@ +mod with_arguments; mod with_one_failing_test; mod with_one_successful_and_one_failing_test; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs new file mode 100644 index 00000000000..d53af02e694 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -0,0 +1 @@ +mod with_an_assembly; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs new file mode 100644 index 00000000000..a5dd0900e8f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs @@ -0,0 +1,2 @@ +mod with_one_successful_and_one_failing_test; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/mod.rs new file mode 100644 index 00000000000..78d02776662 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/mod.rs @@ -0,0 +1,2 @@ +mod outputs_nothing_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/outputs_nothing_feature.rs new file mode 100644 index 00000000000..b93cfe11504 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/outputs_nothing_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs new file mode 100644 index 00000000000..e505b9b3dfd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs @@ -0,0 +1,2 @@ +mod __ignored; +mod default; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs new file mode 100644 index 00000000000..e418dac0297 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs @@ -0,0 +1 @@ +mod __format_terse; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs new file mode 100644 index 00000000000..30c5e7fc170 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs @@ -0,0 +1 @@ +mod __list; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs index 075d8d1051b..9e6f2897755 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs @@ -1,3 +1,5 @@ +mod then_the_standard_output_should_be_empty; mod then_the_standard_output_should_have; +pub use then_the_standard_output_should_be_empty::*; pub use then_the_standard_output_should_have::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs new file mode 100644 index 00000000000..2371d590942 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs @@ -0,0 +1,9 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use predicates::str; + +pub fn then_the_standard_output_should_be_empty(context: Context) { + let output = context.into_output().expect("No output was produced"); + + output.assert().stdout(str::is_empty()); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs new file mode 100644 index 00000000000..e6c4bc380ff --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs @@ -0,0 +1,32 @@ +use super::wasm_bindgen_test_runner::Sandbox; +use std::process::Output; + +pub struct Context { + output: Option>, + sandbox: Option, +} + +impl Context { + pub fn new() -> Self { + Context { + output: None, + sandbox: None, + } + } + + pub fn into_output(self) -> Result { + self.output.unwrap() + } + + pub fn output_set(&mut self, output: Result) { + self.output = Some(output); + } + + pub fn sandbox(&self) -> &Sandbox { + self.sandbox.as_ref().unwrap() + } + + pub fn sandbox_set(&mut self, sandbox: Sandbox) { + self.sandbox = Some(sandbox); + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs new file mode 100644 index 00000000000..1102bfec5b0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs @@ -0,0 +1,13 @@ +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; + +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + context: &mut Context, + arguments: &str, +) { + let mut command = wasm_bindgen_test_runner_command(); + + command.arg(context.sandbox().assembly()); + command.args(arguments.split_whitespace()); + + context.output_set(command.output()); +} From 165eb071efe54d6efd9fc5b55585ee2cd2973940 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:20:34 +0100 Subject: [PATCH 049/224] wasm-bindgen-test-runner: Added test feature Returns Success to invocation with_an_assembly with_arguments --list --format terse. --- .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..243d442c27d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From d88aeea7cbf69dc55fd4bf435aa35364b7c639b1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:21:31 +0100 Subject: [PATCH 050/224] wasm-bindgen-test-runner: Added test feature Outputs nothing to invocation with_an_assembly with_arguments --list --format terse --disabled. --- .../__list/__format_terse/__ignored/mod.rs | 1 + .../__ignored/without_anything/mod.rs | 2 ++ .../without_anything/outputs_nothing_feature.rs | 15 +++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs new file mode 100644 index 00000000000..0ed89cbc464 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -0,0 +1 @@ +mod without_anything; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/mod.rs new file mode 100644 index 00000000000..78d02776662 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/mod.rs @@ -0,0 +1,2 @@ +mod outputs_nothing_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/outputs_nothing_feature.rs new file mode 100644 index 00000000000..0d336288316 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/outputs_nothing_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_be_empty(context); +} From 2c02d518e7e2463c19f8147520e50d8d7ecbd3fd Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:22:14 +0100 Subject: [PATCH 051/224] wasm-bindgen-test-runner: Added test feature Returns success to invocation with_an_assembly with_arguments --list --format terse --disabled. --- .../without_anything/returns_success_feature.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/returns_success_feature.rs new file mode 100644 index 00000000000..c2503dfd031 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 7153ea6c80ab5adff445a41df0e76b5ef61ac9f3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:23:46 +0100 Subject: [PATCH 052/224] wasm-bindgen-test-runner: Added test feature Outputs nothing to invocation with_an_assembly with_arguments --list --format terse with_one_successful_and_one_failing_test. --- .../mod.rs | 2 ++ ...s_all_tests_in_the_terse_format_feature.rs | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..2fe6eb0f83f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1,2 @@ +mod outputs_all_tests_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..04bba31dfbb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_all_tests_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"pass: test +fail: test"#, + ); +} From 691150ed7f85a89221800eca893dda396d2b4267 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:24:23 +0100 Subject: [PATCH 053/224] wasm-bindgen-test-runner: Added test feature Returns Success to invocation with_an_assembly with_arguments --list --format terse with_one_successful_and_one_failing_test. --- .../returns_success_feature.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..26b52ac43bb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From b9305627bd5be80c5af45cb011db73951760d735 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:26:40 +0100 Subject: [PATCH 054/224] wasm-bindgen-test-runner: Improved some test features directories. --- .../__features__/invocation/with_an_assembly/mod.rs | 2 +- .../with_arguments/__list/__format_terse/__ignored/mod.rs | 2 +- .../__ignored/{without_anything => without_tests}/mod.rs | 0 .../outputs_nothing_feature.rs | 0 .../returns_success_feature.rs | 0 .../with_arguments/__list/__format_terse/default/mod.rs | 3 ++- .../__list/__format_terse/default/with_an_assembly/mod.rs | 2 -- .../with_one_successful_and_one_failing_test/mod.rs | 0 .../outputs_all_tests_in_the_terse_format_feature.rs | 0 .../returns_success_feature.rs | 0 .../default/{with_an_assembly => }/without_tests/mod.rs | 0 .../without_tests/outputs_nothing_feature.rs | 0 .../without_tests/returns_success_feature.rs | 0 .../{without_anything => without_tests}/mod.rs | 0 .../outputs_no_error_feature.rs | 0 .../outputs_no_tests_to_run_warning_feature.rs | 0 .../returns_success_feature.rs | 0 17 files changed, 4 insertions(+), 5 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{without_anything => without_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{without_anything => without_tests}/outputs_nothing_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{without_anything => without_tests}/returns_success_feature.rs (100%) delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{with_an_assembly => }/with_one_successful_and_one_failing_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{with_an_assembly => }/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{with_an_assembly => }/with_one_successful_and_one_failing_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{with_an_assembly => }/without_tests/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{with_an_assembly => }/without_tests/outputs_nothing_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{with_an_assembly => }/without_tests/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{without_anything => without_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{without_anything => without_tests}/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{without_anything => without_tests}/outputs_no_tests_to_run_warning_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{without_anything => without_tests}/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index 978b9e93fba..abb9b91e919 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -2,4 +2,4 @@ mod with_arguments; mod with_one_failing_test; mod with_one_successful_and_one_failing_test; mod with_one_successful_test; -mod without_anything; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index 0ed89cbc464..b76bdbbbcac 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1 +1 @@ -mod without_anything; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/outputs_nothing_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_anything/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs index d53af02e694..a5dd0900e8f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -1 +1,2 @@ -mod with_an_assembly; +mod with_one_successful_and_one_failing_test; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs deleted file mode 100644 index a5dd0900e8f..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -mod with_one_successful_and_one_failing_test; -mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/with_one_successful_and_one_failing_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/outputs_nothing_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_an_assembly/without_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_tests_to_run_warning_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_anything/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/returns_success_feature.rs From e98b588fefa390678e00b09c0c6d63fc726989c1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:30:18 +0100 Subject: [PATCH 055/224] wasm-bindgen-test-runner: Moved test features from invocation with_an_assembly without arguments into without_arguments. --- .../__features__/invocation/with_an_assembly/mod.rs | 5 +---- .../invocation/with_an_assembly/without_arguments/mod.rs | 4 ++++ .../{ => without_arguments}/with_one_failing_test/mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 0 .../outputs_the_assembly_failure_summary_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_failed_test_assertion_error_feature.rs | 0 .../outputs_the_failed_test_summary_feature.rs | 0 .../with_one_failing_test/returns_failure_feature.rs | 0 .../with_one_successful_and_one_failing_test/mod.rs | 0 .../outputs_its_running_2_tests_feature.rs | 0 .../outputs_the_assembly_failure_summary_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_failed_test_assertion_error_feature.rs | 0 .../outputs_the_failed_test_summary_feature.rs | 0 .../outputs_the_successful_test_summary_feature.rs | 0 .../returns_failure_feature.rs | 0 .../{ => without_arguments}/with_one_successful_test/mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 0 .../with_one_successful_test/outputs_no_error_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_successful_test_summary_feature.rs | 0 .../with_one_successful_test/returns_success_feature.rs | 0 .../{ => without_arguments}/without_tests/mod.rs | 0 .../without_tests/outputs_no_error_feature.rs | 0 .../without_tests/outputs_no_tests_to_run_warning_feature.rs | 0 .../without_tests/returns_success_feature.rs | 0 27 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/outputs_its_running_1_test_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/outputs_the_failed_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_failing_test/returns_failure_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_and_one_failing_test/returns_failure_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_test/outputs_its_running_1_test_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_test/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_test/outputs_the_successful_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/with_one_successful_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/without_tests/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/without_tests/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/without_tests/outputs_no_tests_to_run_warning_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/{ => without_arguments}/without_tests/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs index abb9b91e919..b47b1f57f63 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs @@ -1,5 +1,2 @@ mod with_arguments; -mod with_one_failing_test; -mod with_one_successful_and_one_failing_test; -mod with_one_successful_test; -mod without_tests; +mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs new file mode 100644 index 00000000000..bacc4df8f74 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -0,0 +1,4 @@ +mod with_one_failing_test; +mod with_one_successful_and_one_failing_test; +mod with_one_successful_test; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_its_running_1_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/outputs_the_failed_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/returns_failure_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_failing_test/returns_failure_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/returns_failure_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/returns_failure_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_and_one_failing_test/returns_failure_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/returns_failure_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_its_running_1_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_successful_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_one_successful_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs From 6305afb414a1d9e03027283f29087fbb415d6c4d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:36:06 +0100 Subject: [PATCH 056/224] wasm-bindgen-test-runner: Added test feature Outputs nothing to invocation with_an_assembly with_arguments --list --format terse --ignored with_one_successful_and_one_failing_test. --- .../__list/__format_terse/__ignored/mod.rs | 1 + .../mod.rs | 2 ++ .../outputs_nothing_feature.rs | 15 +++++++++++++++ .../without_tests/outputs_nothing_feature.rs | 2 +- .../without_tests/outputs_nothing_feature.rs | 2 +- 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index b76bdbbbcac..ac2c1932346 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1 +1,2 @@ mod without_tests; +mod with_one_successful_and_one_failing_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..78d02776662 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1,2 @@ +mod outputs_nothing_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs new file mode 100644 index 00000000000..af5e4194180 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_nothing_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs index 0d336288316..447b089b92b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_no_tests_to_run_warning_feature() { +fn outputs_nothing_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs index b93cfe11504..2cb60f40c18 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_no_tests_to_run_warning_feature() { +fn outputs_nothing_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( From 5d4c2699b2717b14544aed5d6cce20955b95c84f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Apr 2024 23:37:00 +0100 Subject: [PATCH 057/224] wasm-bindgen-test-runner: Added test feature Returns success to invocation with_an_assembly with_arguments --list --format terse --ignored with_one_successful_and_one_failing_test. --- .../returns_success_feature.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..e278d50694c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 175c97440670cef977514fda3d672fbfb52d808f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:16:51 +0100 Subject: [PATCH 058/224] wasm-bindgen-test-runner: Added test feature Outputs the assembly test summary to invocation with_an_assembly without_arguments with_one_ignored_test. --- .../with_an_assembly/without_arguments/mod.rs | 1 + .../with_one_ignored_test/mod.rs | 1 + ...tputs_the_assembly_test_summary_feature.rs | 15 +++++++++++ ...re_is_an_assembly_with_one_ignored_test.rs | 27 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ 5 files changed, 46 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs index bacc4df8f74..5845e4ed3e5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -1,4 +1,5 @@ mod with_one_failing_test; +mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; mod with_one_successful_test; mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..100c3e84d63 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_assembly_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..281c2aca9b2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs new file mode 100644 index 00000000000..b199b0dbc1c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs @@ -0,0 +1,27 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_ignored_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} + "#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_ignored_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 6a7fbec51f2..aaa76962d34 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,11 +1,13 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; +mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; +pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; From e2b118c09c03bc7e953b3a29275874be2d393ba9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:23:10 +0100 Subject: [PATCH 059/224] wasm-bindgen-test-runner: Added test feature Returns success to invocation with_an_assembly without_arguments with_one_ignored_test. --- .../without_arguments/with_one_ignored_test/mod.rs | 1 + .../with_one_ignored_test/returns_success_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs index 100c3e84d63..75377f44f7a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..7e2226defae --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} From fe93ad5a8dbefec261ff6bf11cac70c624c46b9f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:25:48 +0100 Subject: [PATCH 060/224] wasm-bindgen-test-runner: Added test feature Outputs its running 1 test to invocation with_an_assembly without_arguments with_one_ignored_test. --- .../without_arguments/with_one_ignored_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs index 75377f44f7a..978f4295fbb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs @@ -1,2 +1,3 @@ +mod outputs_its_running_1_test_feature; mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..15cefdb74c0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} From c3c8e29b59a4fb1196141d0069ef495af28c9ac5 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:28:17 +0100 Subject: [PATCH 061/224] wasm-bindgen-test-runner: Added test feature Outputs no error to invocation with_an_assembly without_arguments with_one_ignored_test. --- .../without_arguments/with_one_ignored_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs index 978f4295fbb..db4aa282931 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..e6c90eb3b17 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_be_empty(context); +} From 486965ee73fdbf298337fb24640f4fe284fd33d6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:32:17 +0100 Subject: [PATCH 062/224] wasm-bindgen-test-runner: Added test feature Outputs the ignored test summary to invocation with_an_assembly without_arguments with_one_ignored_test. --- .../__list/__format_terse/__ignored/mod.rs | 2 +- .../with_one_ignored_test/mod.rs | 1 + .../outputs_the_ignored_test_summary_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index ac2c1932346..a5dd0900e8f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1,2 +1,2 @@ -mod without_tests; mod with_one_successful_and_one_failing_test; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs index db4aa282931..734c2b900dc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_ignored_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs new file mode 100644 index 00000000000..95ea8313fc4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_ignored_test::ignored ... ignored", + ); +} From e79350376d29345545b5606aeaadaf59ea1b0b7f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:45:56 +0100 Subject: [PATCH 063/224] wasm-bindgen-test-runner: Added test feature Outputs the assembly test summary to invocation with_an_assembly without_arguments with_one_successfull_and_one_ignored_test. --- .../with_an_assembly/without_arguments/mod.rs | 1 + .../mod.rs | 1 + ...tputs_the_assembly_test_summary_feature.rs | 15 ++++++++ ...ith_one_successful_and_one_ignored_test.rs | 34 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ 5 files changed, 53 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs index 5845e4ed3e5..54b4d4750e1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -2,4 +2,5 @@ mod with_one_failing_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; mod with_one_successful_test; +mod with_one_successfull_and_one_ignored_test; mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs new file mode 100644 index 00000000000..100c3e84d63 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_assembly_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..07812a615fa --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 1 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs new file mode 100644 index 00000000000..4e8513c10c8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs @@ -0,0 +1,34 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_and_one_ignored_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[cfg(test)] +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 2); +} + "#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_and_one_ignored_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index aaa76962d34..aef16735560 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -2,6 +2,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; +mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; @@ -9,5 +10,6 @@ pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; From 95af533c62cfc9da55793c819d2ecface6b60a46 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:47:42 +0100 Subject: [PATCH 064/224] wasm-bindgen-test-runner: Added test feature Returns success to invocation with_an_assembly without_arguments with_one_successfull_and_one_ignored_test. --- .../with_one_successfull_and_one_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs index 100c3e84d63..75377f44f7a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..a8d073f127b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} From f346d2eaec62220dde55af0d516ca0598fc74d7b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:49:42 +0100 Subject: [PATCH 065/224] wasm-bindgen-test-runner: Added test feature Outputs its running 2 tests to invocation with_an_assembly without_arguments with_one_successfull_and_one_ignored_test. --- .../with_one_successfull_and_one_ignored_test/mod.rs | 1 + .../outputs_its_running_2_tests_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs index 75377f44f7a..f864c12768e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs @@ -1,2 +1,3 @@ +mod outputs_its_running_2_tests_feature; mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..6c5ff8bff04 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_tests_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 2 tests"); +} From af599e5b04c89e1251fab56e01de0db7bd10c50b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:56:38 +0100 Subject: [PATCH 066/224] wasm-bindgen-test-runner: Added test feature Outputs the successfull test summary to invocation with_an_assembly without_arguments with_one_successfull_and_one_ignored_test. --- .../mod.rs | 1 + ...outputs_the_successful_test_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs index f864c12768e..1101975999c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_2_tests_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..f1c43121dde --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_failed_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_ignored_test::pass ... ok", + ); +} From e39dcac76a48aaaf2bb6bf41bf062ed05b38d52b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 17:59:37 +0100 Subject: [PATCH 067/224] wasm-bindgen-test-runner: Added test feature Outputs the ignored test summary to invocation with_an_assembly without_arguments with_one_successfull_and_one_ignored_test. --- ...outputs_the_successful_test_summary_feature.rs | 2 +- .../mod.rs | 1 + .../outputs_the_ignored_test_summary_feature.rs | 15 +++++++++++++++ ...outputs_the_successful_test_summary_feature.rs | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs index 3c6ad01f6f4..2e503ac3834 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_failed_test_summary_feature() { +fn outputs_the_successful_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs index 1101975999c..d9bddeea739 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_2_tests_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_ignored_test_summary_feature; mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs new file mode 100644 index 00000000000..124789f0f22 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_ignored_test::ignored ... ignored", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs index f1c43121dde..8efd9fd07cf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_failed_test_summary_feature() { +fn outputs_the_successful_test_summary_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); From e8c5693ad3c043562515224f715b1c2ec6c7d50c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 18:08:15 +0100 Subject: [PATCH 068/224] wasm-bindgen-test-runner: Added test feature Outputs all tests in the terse format to invocation with_an_assembly with_arguments --list --format terse default with_one_successfull_and_one_ignored_test. --- .../__list/__format_terse/default/mod.rs | 1 + .../mod.rs | 1 + ...s_all_tests_in_the_terse_format_feature.rs | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs index a5dd0900e8f..a49c77d6f8a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -1,2 +1,3 @@ mod with_one_successful_and_one_failing_test; +mod with_one_successfull_and_one_ignored_test; mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs new file mode 100644 index 00000000000..e263673acba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_all_tests_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..8ba9e929a54 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_all_tests_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"pass: test +ignored: test"#, + ); +} From 9b0ee6e05a240c79c0cc3cce5cc480eb6c9131cd Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 18:13:31 +0100 Subject: [PATCH 069/224] wasm-bindgen-test-runner: Added test feature Returns success to invocation with_an_assembly with_arguments --list --format terse default with_one_successfull_and_one_ignored_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs index e263673acba..2fe6eb0f83f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_all_tests_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..ea5386054f4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From b040399adb2fd05433054509a510746228e9cd9b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 18:23:04 +0100 Subject: [PATCH 070/224] wasm-bindgen-test-runner: Added test feature Outputs the test in the terse format to invocation with_an_assembly with_arguments --list --format terse default with_one_ignored_test. --- .../__list/__format_terse/default/mod.rs | 1 + .../default/with_one_ignored_test/mod.rs | 1 + ...uts_the_test_in_the_terse_format_feature.rs | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs index a49c77d6f8a..cba45aa6a9c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -1,3 +1,4 @@ +mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; mod with_one_successfull_and_one_ignored_test; mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..4b4f3f5ac06 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"ignored: test"#, + ); +} From 6a523d1e5f728e66ef2b7ebdec36417f157c5dfd Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 18:24:43 +0100 Subject: [PATCH 071/224] wasm-bindgen-test-runner: Added test feature Returns success to invocation with_an_assembly with_arguments --list --format terse default with_one_ignored_test. --- .../default/with_one_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..a71a714f9c9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From a2c99433d8b30f87d0af2cd60973fc1e4e67c373 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 20:58:52 +0100 Subject: [PATCH 072/224] wasm-bindgen-test-runner: Added test feature Outputs the test in the terse format to invocation with_an_assembly with_arguments --list --format terse default with_one_ignored_test. --- .../outputs_the_test_in_the_terse_format_feature.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs index 4b4f3f5ac06..a7d3c85392b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,8 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse", ); - then_the_standard_output_should_have( - context, - r#"ignored: test"#, - ); + then_the_standard_output_should_have(context, r#"ignored: test"#); } From 6dd3bad7a1f258f2bcd90fcec6accdcfc1502459 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:06:51 +0100 Subject: [PATCH 073/224] wasm-bindgen-test-runner: Moved feature tets of invocation with_an_assemblyt without_arguments into level_0 to add tets for other levels. --- .../with_an_assembly/without_arguments/level_0/mod.rs | 6 ++++++ .../{ => level_0}/with_one_failing_test/mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 0 .../outputs_the_assembly_failure_summary_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_failed_test_assertion_error_feature.rs | 0 .../outputs_the_failed_test_summary_feature.rs | 0 .../with_one_failing_test/returns_failure_feature.rs | 0 .../{ => level_0}/with_one_ignored_test/mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 0 .../with_one_ignored_test/outputs_no_error_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_ignored_test_summary_feature.rs | 0 .../with_one_ignored_test/returns_success_feature.rs | 0 .../with_one_successful_and_one_failing_test/mod.rs | 0 .../outputs_its_running_2_tests_feature.rs | 0 .../outputs_the_assembly_failure_summary_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_failed_test_assertion_error_feature.rs | 0 .../outputs_the_failed_test_summary_feature.rs | 0 .../outputs_the_successful_test_summary_feature.rs | 0 .../returns_failure_feature.rs | 0 .../{ => level_0}/with_one_successful_test/mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 0 .../with_one_successful_test/outputs_no_error_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_successful_test_summary_feature.rs | 0 .../with_one_successful_test/returns_success_feature.rs | 0 .../with_one_successfull_and_one_ignored_test/mod.rs | 0 .../outputs_its_running_2_tests_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_ignored_test_summary_feature.rs | 0 .../outputs_the_successful_test_summary_feature.rs | 0 .../returns_success_feature.rs | 0 .../without_arguments/{ => level_0}/without_tests/mod.rs | 0 .../without_tests/outputs_no_error_feature.rs | 0 .../outputs_no_tests_to_run_warning_feature.rs | 0 .../{ => level_0}/without_tests/returns_success_feature.rs | 0 .../invocation/with_an_assembly/without_arguments/mod.rs | 7 +------ 39 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/outputs_its_running_1_test_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/outputs_the_failed_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_failing_test/returns_failure_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_ignored_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_ignored_test/outputs_its_running_1_test_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_ignored_test/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_ignored_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_and_one_failing_test/returns_failure_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_test/outputs_its_running_1_test_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_test/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_test/outputs_the_successful_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successful_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successfull_and_one_ignored_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/with_one_successfull_and_one_ignored_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/without_tests/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/without_tests/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/without_tests/outputs_no_tests_to_run_warning_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{ => level_0}/without_tests/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs new file mode 100644 index 00000000000..54b4d4750e1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -0,0 +1,6 @@ +mod with_one_failing_test; +mod with_one_ignored_test; +mod with_one_successful_and_one_failing_test; +mod with_one_successful_test; +mod with_one_successfull_and_one_ignored_test; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/outputs_the_failed_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_failing_test/returns_failure_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/returns_failure_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_and_one_failing_test/returns_failure_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/returns_failure_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successful_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/with_one_successfull_and_one_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_tests_to_run_warning_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs index 54b4d4750e1..c287a1a3df5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -1,6 +1 @@ -mod with_one_failing_test; -mod with_one_ignored_test; -mod with_one_successful_and_one_failing_test; -mod with_one_successful_test; -mod with_one_successfull_and_one_ignored_test; -mod without_tests; +mod level_0; From a3004477161a402bb2cdd4c156a8f69a18e0d357 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:22:56 +0100 Subject: [PATCH 074/224] wasm-bindgen-test-runner: Added feature test Outputs the successful test summary to invocation with_an_assembly without_arguments level_1 with_one_successful_test. --- .../without_arguments/level_1/mod.rs | 1 + .../level_1/with_one_successful_test/mod.rs | 1 + ...uts_the_successful_test_summary_feature.rs | 15 +++++++++++ .../with_an_assembly/without_arguments/mod.rs | 1 + ...sembly_with_one_successful_level_1_test.rs | 27 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ 6 files changed, 47 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..006cb77a730 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_successful_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..cc76f5d1203 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_level_1_test::level_1::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs index c287a1a3df5..b2f05305cdb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -1 +1,2 @@ mod level_0; +mod level_1; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs new file mode 100644 index 00000000000..f154158d9e3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs @@ -0,0 +1,27 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_level_1_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +}"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_level_1_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index aef16735560..5271e9dc518 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -3,6 +3,7 @@ mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +mod given_there_is_an_assembly_with_one_successful_level_1_test; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; @@ -11,5 +12,6 @@ pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; +pub use given_there_is_an_assembly_with_one_successful_level_1_test::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; From 736aa391bb96b3cdf0a12dc849f7728c0beccd83 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:24:37 +0100 Subject: [PATCH 075/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_assembly without_arguments level_1 with_one_successful_test. --- .../level_1/with_one_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs index 006cb77a730..5767d070447 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..0c34d55a85c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} From 9d98612261ecba98cb8d0af5a3a2b49a7f878ad1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:26:24 +0100 Subject: [PATCH 076/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to invocation with_an_assembly without_arguments level_1 with_one_successful_test. --- .../level_1/with_one_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs index 5767d070447..a1aa68bf0f0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs @@ -1,2 +1,3 @@ +mod outputs_its_running_1_test_feature; mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..6107516fee3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} From 52e22c149182a1b3ccb2eea828917f35069fa30e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:28:05 +0100 Subject: [PATCH 077/224] wasm-bindgen-test-runner: Added feature test Outputs no error to invocation with_an_assembly without_arguments level_1 with_one_successful_test. --- .../level_1/with_one_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs index a1aa68bf0f0..9a26eb2352d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..7acf8cad11a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_be_empty(context); +} From ea456284fa112c01df75f023b762f388fd407c46 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:30:27 +0100 Subject: [PATCH 078/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to invocation with_an_assembly without_arguments level_1 with_one_successful_test. --- .../level_1/with_one_successful_test/mod.rs | 1 + .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs index 9a26eb2352d..e47449a0ae8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..2dbda383a10 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} From 4b0ba5f0b89eaed219b2b772ce3df8d0da2b95a7 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:36:35 +0100 Subject: [PATCH 079/224] wasm-bindgen-test-runner: Added feature test Outputs the successful test summary to invocation with_an_assembly without_arguments level_2 with_one_successful_test. --- .../without_arguments/level_2/mod.rs | 1 + .../level_2/with_one_successful_test/mod.rs | 1 + ...uts_the_successful_test_summary_feature.rs | 15 ++++++++++ .../with_an_assembly/without_arguments/mod.rs | 1 + ...sembly_with_one_successful_level_2_test.rs | 29 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 ++ 6 files changed, 49 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..006cb77a730 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_successful_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..cd18f38c1ab --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_level_2_test::level_1::level_2::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs index b2f05305cdb..6c80a4f7d60 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -1,2 +1,3 @@ mod level_0; mod level_1; +mod level_2; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs new file mode 100644 index 00000000000..0b4fc59cf59 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs @@ -0,0 +1,29 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_level_2_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + } +}"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_level_2_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 5271e9dc518..93bb671179e 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -4,6 +4,7 @@ mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_level_1_test; +mod given_there_is_an_assembly_with_one_successful_level_2_test; mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; @@ -13,5 +14,6 @@ pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_level_1_test::*; +pub use given_there_is_an_assembly_with_one_successful_level_2_test::*; pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; From 6c8dd40142d9bf9a619637879148b5f02a3c3c80 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:38:25 +0100 Subject: [PATCH 080/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to invocation with_an_assembly without_arguments level_2 with_one_successful_test. --- .../level_2/with_one_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs index 006cb77a730..b28055dbf6f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs @@ -1 +1,2 @@ +mod outputs_its_running_1_test_feature; mod outputs_the_successful_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..b44a7768536 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} From 3a68d0e23793868e400a68179a1512315324d319 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:40:06 +0100 Subject: [PATCH 081/224] wasm-bindgen-test-runner: Added feature test Outputs no error to invocation with_an_assembly without_arguments level_2 with_one_successful_test. --- .../level_2/with_one_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs index b28055dbf6f..05bdb42a2ed 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; mod outputs_the_successful_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..eb2f2ff15c7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_be_empty(context); +} From eaa11c881a956c8a04ef4f5b0af05a3378b68750 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:42:35 +0100 Subject: [PATCH 082/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to invocation with_an_assembly without_arguments level_2 with_one_successful_test. --- .../level_2/with_one_successful_test/mod.rs | 1 + .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs index 05bdb42a2ed..b09977fd440 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; mod outputs_the_successful_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..621d97e927b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} From 4e29613bcf988fda3c783a6eb65cb7e4953f622b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:44:28 +0100 Subject: [PATCH 083/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_assembly without_arguments level_2 with_one_successful_test. --- .../level_2/with_one_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs index b09977fd440..e47449a0ae8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs @@ -2,3 +2,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_the_assembly_test_summary_feature; mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..33cee2f3af9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} From 2ca4d31bc0d29c5570d12aae7e6873f0f56c7e6b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:48:18 +0100 Subject: [PATCH 084/224] wasm-bindgen-test-runner: Moved test features invocation with_an_assembly with_arguments --list --format terse default tests into level_0. --- .../__list/__format_terse/default/level_0/mod.rs | 3 +++ .../default/{ => level_0}/with_one_ignored_test/mod.rs | 0 .../outputs_the_test_in_the_terse_format_feature.rs | 0 .../with_one_ignored_test/returns_success_feature.rs | 0 .../with_one_successful_and_one_failing_test/mod.rs | 0 .../outputs_all_tests_in_the_terse_format_feature.rs | 0 .../returns_success_feature.rs | 0 .../with_one_successfull_and_one_ignored_test/mod.rs | 0 .../outputs_all_tests_in_the_terse_format_feature.rs | 0 .../returns_success_feature.rs | 0 .../with_arguments/__list/__format_terse/default/mod.rs | 4 +--- 11 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_ignored_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_ignored_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_successful_and_one_failing_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_successful_and_one_failing_test/returns_success_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_successfull_and_one_ignored_test/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/{ => level_0}/with_one_successfull_and_one_ignored_test/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs new file mode 100644 index 00000000000..4ee71a21874 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs @@ -0,0 +1,3 @@ +mod with_one_ignored_test; +mod with_one_successful_and_one_failing_test; +mod with_one_successfull_and_one_ignored_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successful_and_one_failing_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/with_one_successfull_and_one_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs index cba45aa6a9c..8e21652094a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -1,4 +1,2 @@ -mod with_one_ignored_test; -mod with_one_successful_and_one_failing_test; -mod with_one_successfull_and_one_ignored_test; +mod level_0; mod without_tests; From fde39ca4ef421b1151ad7ddcb5b5d53a7b536e2a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 21:50:08 +0100 Subject: [PATCH 085/224] wasm-bindgen-test-runner: Moved test features invocation with_an_assembly level_0 without_tests to parent. --- .../invocation/with_an_assembly/without_arguments/level_0/mod.rs | 1 - .../invocation/with_an_assembly/without_arguments/mod.rs | 1 + .../without_arguments/{level_0 => }/without_tests/mod.rs | 0 .../{level_0 => }/without_tests/outputs_no_error_feature.rs | 0 .../without_tests/outputs_no_tests_to_run_warning_feature.rs | 0 .../{level_0 => }/without_tests/returns_success_feature.rs | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{level_0 => }/without_tests/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{level_0 => }/without_tests/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{level_0 => }/without_tests/outputs_no_tests_to_run_warning_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/{level_0 => }/without_tests/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs index 54b4d4750e1..1de81fde86f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -3,4 +3,3 @@ mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; mod with_one_successful_test; mod with_one_successfull_and_one_ignored_test; -mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs index 6c80a4f7d60..a2590091967 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs @@ -1,3 +1,4 @@ mod level_0; mod level_1; mod level_2; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/without_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs From 44efd35e4325c327819bc67570afd1c61f53d3a3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 22:43:45 +0100 Subject: [PATCH 086/224] wasm-bindgen-test-runner: Clippy improvement. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 9fc4f767fe3..5e3dde3c867 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -148,7 +148,7 @@ fn main() -> anyhow::Result<()> { for test in tests { let test = test.trim_start_matches("__wbgt_"); - let last = test.rfind('_').unwrap_or_else(|| test.len()); + let last = test.rfind('_').unwrap_or(test.len()); let test = &test[..last]; println!("{}: test", test); } From 85d6a6894a9efe371fd88c6377e5243941d69d17 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 23:50:19 +0100 Subject: [PATCH 087/224] wasm-bindgen-test-runner: Updated dependencies to not wasm, updated the tests to not wasm only. --- Cargo.toml | 4 +++- tests/wasm_bindgen_test_runner/main.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ecdd7da7438..d7d1c50f2b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,13 +55,15 @@ serde_derive = "1.0" wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' } wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' } -[dev-dependencies] +[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] assert_cmd = "1.0" lazy_static = "1.4.0" predicates = "1.0.0" rand = "0.8.5" regex = "1.10.4" +[dev-dependencies] + [workspace] members = [ "benchmarks", diff --git a/tests/wasm_bindgen_test_runner/main.rs b/tests/wasm_bindgen_test_runner/main.rs index 6caa95407fd..4adc5c045a1 100644 --- a/tests/wasm_bindgen_test_runner/main.rs +++ b/tests/wasm_bindgen_test_runner/main.rs @@ -1,2 +1,3 @@ +#![cfg(not(target_arch = "wasm32"))] mod __features__; mod __steps__; From 4f3d8ff43e754b0803c84401fb706ce50aeb5d9d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Apr 2024 23:50:52 +0100 Subject: [PATCH 088/224] wasm-bindgen-test-runner: Removed unused use. --- crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs index f111902f73f..a4886800260 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -3,7 +3,7 @@ use anyhow::{bail, format_err, Context, Error}; use log::{debug, warn}; use rouille::url::Url; use serde::{Deserialize, Serialize}; -use serde_json::{self, json, Map, Value as Json}; +use serde_json::{json, Map, Value as Json}; use std::env; use std::fs::File; use std::io::{self, Read}; From 3bcd3020e6d35a3e5272b22617859d3a5bda5563 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 18:33:15 +0100 Subject: [PATCH 089/224] wasm-bindgen-test-macro: Updated to export a function with the complete module path and the ignore information. --- crates/test-macro/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/test-macro/src/lib.rs b/crates/test-macro/src/lib.rs index c3829df823c..59d9884c3c3 100644 --- a/crates/test-macro/src/lib.rs +++ b/crates/test-macro/src/lib.rs @@ -80,6 +80,12 @@ pub fn wasm_bindgen_test( None => quote! { ::core::option::Option::None }, }; + let ignore_str = match ignore.clone() { + Some(Some(_ig)) => concat!("$", ::core::stringify!(_ig)), + Some(None) => "$", + None => "", + }; + let ignore = match ignore { Some(Some(lit)) => { quote! { ::core::option::Option::Some(::core::option::Option::Some(#lit)) } @@ -99,8 +105,14 @@ pub fn wasm_bindgen_test( // main test harness. This is the entry point for all tests. let name = format_ident!("__wbgt_{}_{}", ident, CNT.fetch_add(1, Ordering::SeqCst)); let wasm_bindgen_path = attributes.wasm_bindgen_path; + let ident_str = ident.to_string(); + let name_str = name.to_string(); + let aux = format_ident!("_{}", name_str); tokens.extend( quote! { + #[export_name = concat!("_", #name_str, "$", module_path!(), "::", #ident_str, #ignore_str)] + pub extern "C" fn #aux() {} + #[no_mangle] pub extern "C" fn #name(cx: &#wasm_bindgen_path::__rt::Context) { let test_name = ::core::concat!(::core::module_path!(), "::", ::core::stringify!(#ident)); From c27eecf066e54969c239ae89fb2fb88728ee6fc0 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 18:38:08 +0100 Subject: [PATCH 090/224] wasm-bindgen-test-runner: Updated to use the new exported information to support --list --format terse and --list --format terse --ignored. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 50 +++++++++++-------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 5e3dde3c867..6e160fb2cbe 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -122,40 +122,46 @@ fn main() -> anyhow::Result<()> { .and_then(|s| s.to_str()) .context("file to test is not a valid file, can't extract file name")?; - // Collect all tests that the test harness is supposed to run. We assume - // that any exported function with the prefix `__wbg_test` is a test we need - // to execute. let wasm = fs::read(&wasm_file_to_test).context("failed to read wasm file")?; let mut wasm = walrus::Module::from_buffer(&wasm).context("failed to deserialize wasm module")?; - let mut tests = Vec::new(); - - for export in wasm.exports.iter() { - if !export.name.starts_with("__wbgt_") { - continue; - } - tests.push(export.name.to_string()); - } if args_.flag_list { - if tests.is_empty() { - return Ok(()); - } + for export in wasm.exports.iter() { + if !export.name.starts_with("___wbgt_") { + continue; + } - if args_.flag_ignored { - return Ok(()); - } + let parts: Vec<&str> = export.name.split('$').collect(); - for test in tests { - let test = test.trim_start_matches("__wbgt_"); - let last = test.rfind('_').unwrap_or(test.len()); - let test = &test[..last]; - println!("{}: test", test); + if args_.flag_ignored { + if parts.len() == 3 { + let test = parts[1]; + let test = &test[test.find("::").unwrap_or(0) + 2..]; + println!("{}: test", test); + } + } else { + let test = parts[1]; + let test = &test[test.find("::").unwrap_or(0) + 2..]; + println!("{}: test", test); + } } return Ok(()); } + // Collect all tests that the test harness is supposed to run. We assume + // that any exported function with the prefix `__wbg_test` is a test we need + // to execute. + let mut tests = Vec::new(); + + for export in wasm.exports.iter() { + if !export.name.starts_with("__wbgt_") { + continue; + } + tests.push(export.name.to_string()); + } + // Right now there's a bug where if no tests are present then the // `wasm-bindgen-test` runtime support isn't linked in, so just bail out // early saying everything is ok. From 37598b96e6781e99d944b3c62c97999714d1b537 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 18:39:35 +0100 Subject: [PATCH 091/224] wasm-bindgen-test-runner: Added feature test Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse. --- .../__list/__format_terse/default/level_1/mod.rs | 1 + .../level_1/with_one_successful_test/mod.rs | 1 + ...utputs_the_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ .../__list/__format_terse/default/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..615d3619389 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have(context, r#"level_1::pass: test"#); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs index 8e21652094a..331a0003e42 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -1,2 +1,3 @@ mod level_0; +mod level_1; mod without_tests; From 9b43f4c08e00f7c4f369fa672c9a15c035ded8a4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 18:46:00 +0100 Subject: [PATCH 092/224] wasm-bindgen-test-runner: Added feature test Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse default level_2. --- .../__list/__format_terse/default/level_2/mod.rs | 1 + .../level_2/with_one_successful_test/mod.rs | 1 + ...utputs_the_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ .../__list/__format_terse/default/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..83edbe697c5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have(context, r#"level_1::level_2::pass: test"#); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs index 331a0003e42..a2590091967 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs @@ -1,3 +1,4 @@ mod level_0; mod level_1; +mod level_2; mod without_tests; From dfe8d6d483c0c0aada8435afc4bafd3410ba65ae Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 18:48:37 +0100 Subject: [PATCH 093/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --list --format terse default level_1. --- .../level_1/with_one_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..4c9d34cc26a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From d6fd1b50ebc96300709970695987bbde68499923 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 18:49:56 +0100 Subject: [PATCH 094/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --list --format terse default level_2. --- .../level_2/with_one_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..7693981015a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From fc1879b25841ede1e07b0afdf6e0a848a9aadcbc Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 19:13:31 +0100 Subject: [PATCH 095/224] wasm-bindgen-test-runner: Updated to not clone the assembly when the runner is executed with the assembly and the --list argument. --- .../__steps__/context.rs | 4 ++ .../wasm_bindgen_test_runner/context.rs | 32 --------------- .../wasm_bindgen_test_runner/sandbox.rs | 39 ++++++++++++------- ...est_runner_is_invoked_with_the_assembly.rs | 2 +- ...ked_with_the_assembly_and_the_arguments.rs | 7 +++- 5 files changed, 36 insertions(+), 48 deletions(-) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/tests/wasm_bindgen_test_runner/__steps__/context.rs index e6c4bc380ff..742b5319e65 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/context.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/context.rs @@ -26,6 +26,10 @@ impl Context { self.sandbox.as_ref().unwrap() } + pub fn sandbox_mut(&mut self) -> &mut Sandbox { + self.sandbox.as_mut().unwrap() + } + pub fn sandbox_set(&mut self, sandbox: Sandbox) { self.sandbox = Some(sandbox); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs deleted file mode 100644 index e6c4bc380ff..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/context.rs +++ /dev/null @@ -1,32 +0,0 @@ -use super::wasm_bindgen_test_runner::Sandbox; -use std::process::Output; - -pub struct Context { - output: Option>, - sandbox: Option, -} - -impl Context { - pub fn new() -> Self { - Context { - output: None, - sandbox: None, - } - } - - pub fn into_output(self) -> Result { - self.output.unwrap() - } - - pub fn output_set(&mut self, output: Result) { - self.output = Some(output); - } - - pub fn sandbox(&self) -> &Sandbox { - self.sandbox.as_ref().unwrap() - } - - pub fn sandbox_set(&mut self, sandbox: Sandbox) { - self.sandbox = Some(sandbox); - } -} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs index 301497204ec..e7fd3379f69 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs @@ -3,18 +3,27 @@ use std::fs; use std::path::PathBuf; pub struct Sandbox { - assembly: PathBuf, + assembly: Option, original: PathBuf, - root: PathBuf, + root: Option, } impl Sandbox { pub fn new(original: PathBuf) -> Self { - let file_name = original.file_name().and_then(|s| s.to_str()).unwrap(); + Self { + assembly: None, + original, + root: None, + } + } + + fn init(&mut self) { + let file_name = self.original.file_name().and_then(|s| s.to_str()).unwrap(); let mut rng = rand::thread_rng(); - let root = original + let root = self + .original .parent() // chop off file name .and_then(|p| p.parent()) // chop off `deps` .and_then(|p| p.parent()) // chop off `debug` @@ -37,17 +46,17 @@ impl Sandbox { let assembly = target.join(file_name); - fs::copy(&original, &assembly).unwrap(); + fs::copy(&self.original, &assembly).unwrap(); - Self { - assembly, - original, - root, - } + self.assembly = Some(assembly); + self.root = Some(root); } - pub fn assembly(&self) -> &PathBuf { - &self.assembly + pub fn assembly(&mut self) -> &PathBuf { + if self.assembly.is_none() { + self.init(); + } + self.assembly.as_ref().unwrap() } pub fn original(&self) -> &PathBuf { @@ -55,12 +64,14 @@ impl Sandbox { } pub fn root(&self) -> &PathBuf { - &self.root + self.root.as_ref().unwrap() } } impl Drop for Sandbox { fn drop(&mut self) { - drop(fs::remove_dir_all(&self.root)); + if let Some(root) = &self.root { + drop(fs::remove_dir_all(root)); + } } } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs index 3159c84da53..07e6d2d1632 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs @@ -3,7 +3,7 @@ use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_comman pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(context: &mut Context) { let mut command = wasm_bindgen_test_runner_command(); - command.arg(context.sandbox().assembly()); + command.arg(context.sandbox_mut().assembly()); context.output_set(command.output()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs index 1102bfec5b0..613306b77a2 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs @@ -6,7 +6,12 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_argume ) { let mut command = wasm_bindgen_test_runner_command(); - command.arg(context.sandbox().assembly()); + if arguments.starts_with("--list") { + command.arg(context.sandbox().original()); + } else { + command.arg(context.sandbox_mut().assembly()); + } + command.args(arguments.split_whitespace()); context.output_set(command.output()); From 8aec4a8722cff37c8a836a0f043c1a4e3daf4328 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 19:50:49 +0100 Subject: [PATCH 096/224] wasm-bindgen-test-runner: Added feature test Outputs all tests in the terse format to invocation with_an_assembly with_arguments --list --format terse default level_1 with_one_successful_an_one_ignored_test. --- .../__format_terse/default/level_1/mod.rs | 1 + .../mod.rs | 1 + ...s_all_tests_in_the_terse_format_feature.rs | 19 ++++++++++ ...uccessful_and_one_ignored_level_1_tests.rs | 38 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 + 5 files changed, 61 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs index db99b0bac03..1024bc4e7b6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs @@ -1 +1,2 @@ +mod with_one_successful_and_one_ignored_test; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs new file mode 100644 index 00000000000..e263673acba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_all_tests_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..a38735e8181 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_all_tests_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"level_1::pass: test +level_1::ignored: test"#, + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs new file mode 100644 index 00000000000..9ac4388656a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs @@ -0,0 +1,38 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_and_one_ignored_level_1_tests") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[cfg(test)] + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 2); + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests( + context: &mut Context, +) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 93bb671179e..2174dcb238a 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -2,6 +2,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; +mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_level_1_test; mod given_there_is_an_assembly_with_one_successful_level_2_test; @@ -12,6 +13,7 @@ pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_level_1_test::*; pub use given_there_is_an_assembly_with_one_successful_level_2_test::*; From 7dea3236ab42a7c392ffb669955fa2f84a72538a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 19:52:56 +0100 Subject: [PATCH 097/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_assembly with_arguments --list --format terse default level_1 with_one_successful_an_one_ignored_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs index e263673acba..2fe6eb0f83f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_all_tests_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..c3f318dfa49 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From ce17bae228fbcc51083aa98aa4127dbf028a5e1a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 19:58:39 +0100 Subject: [PATCH 098/224] wasm-bindgen-test-runner: Added feature test Outputs all tests in the terse format to invocation with_an_assembly with_arguments --list --format terse default level_2 with_one_successful_an_one_ignored_test. --- .../__format_terse/default/level_2/mod.rs | 1 + .../mod.rs | 1 + ...s_all_tests_in_the_terse_format_feature.rs | 19 +++++++++ ...uccessful_and_one_ignored_level_2_tests.rs | 40 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 + 5 files changed, 63 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs index db99b0bac03..1024bc4e7b6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs @@ -1 +1,2 @@ +mod with_one_successful_and_one_ignored_test; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs new file mode 100644 index 00000000000..e263673acba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_all_tests_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..79c111d4df0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_all_tests_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"level_1::level_2::pass: test +level_1::level_2::ignored: test"#, + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs new file mode 100644 index 00000000000..69acdc704e6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs @@ -0,0 +1,40 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_and_one_ignored_level_2_tests") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[cfg(test)] + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 2); + } + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests( + context: &mut Context, +) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 2174dcb238a..4d38fd43f7f 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -3,6 +3,7 @@ mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; +mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_level_1_test; mod given_there_is_an_assembly_with_one_successful_level_2_test; @@ -14,6 +15,7 @@ pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_level_1_test::*; pub use given_there_is_an_assembly_with_one_successful_level_2_test::*; From 03c51c8c695a94550c3af655eca10956939f6a01 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 20:23:33 +0100 Subject: [PATCH 099/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_assembly with_arguments --list --format terse default level_2 with_one_successful_an_one_ignored_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs index e263673acba..2fe6eb0f83f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_all_tests_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..07242a34355 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From 7414fba89d18b4651b770deec62920e1ffe15372 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 20:24:17 +0100 Subject: [PATCH 100/224] wasm-bindgen-test-runner: Added feature test Outputs all tests in the terse format to invocation with_an_assembly with_arguments --list --format terse default level_1 with_one_successful_an_one_failing_test. --- .../__format_terse/default/level_1/mod.rs | 1 + .../mod.rs | 1 + ...s_all_tests_in_the_terse_format_feature.rs | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs index 1024bc4e7b6..ccd2436f99d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs @@ -1,2 +1,3 @@ +mod with_one_successful_and_one_failing_test; mod with_one_successful_and_one_ignored_test; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..e263673acba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1 @@ +mod outputs_all_tests_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..fdc763aa14f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_all_tests_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"level_1::pass: test +level_1::fail: test"#, + ); +} From c5795ff7a540e23ac8639084c530d089c3cfa7c4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 20:24:38 +0100 Subject: [PATCH 101/224] wasm-bindgen-test-runner: Added feature test Outputs all tests in the terse format to invocation with_an_assembly with_arguments --list --format terse default level_1 with_one_successful_an_one_failing_test. --- ...uccessful_and_one_failing_level_1_tests.rs | 37 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 + 2 files changed, 39 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs new file mode 100644 index 00000000000..b0c07bd78bb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs @@ -0,0 +1,37 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_and_one_failing_level_1_tests") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[cfg(test)] + #[wasm_bindgen_test] + fn fail() { + assert_eq!(1, 2); + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests( + context: &mut Context, +) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 4d38fd43f7f..1a415b7d18a 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,6 +1,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; +mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; @@ -13,6 +14,7 @@ mod given_there_is_an_assembly_without_anything; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests::*; From 30631479be53a8e7ce824a553e94e90311422734 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 20:27:10 +0100 Subject: [PATCH 102/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_assembly with_arguments --list --format terse default level_1 with_one_successful_an_one_failing_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs index e263673acba..2fe6eb0f83f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/mod.rs @@ -1 +1,2 @@ mod outputs_all_tests_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..5c3670b8701 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From 40ff63c619eedc2233d22a9e3bf4f9e05de505e9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 20:40:46 +0100 Subject: [PATCH 103/224] wasm-bindgen-test-runner: Added feature test Outputs all tests in the terse format to invocation with_an_assembly with_arguments --list --format terse default level_2 with_one_successful_an_one_failing_test. --- .../__format_terse/default/level_2/mod.rs | 1 + .../mod.rs | 1 + ...s_all_tests_in_the_terse_format_feature.rs | 19 +++++++++ ...uccessful_and_one_failing_level_2_tests.rs | 39 +++++++++++++++++++ .../__steps__/assembly/mod.rs | 2 + 5 files changed, 62 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs index 1024bc4e7b6..ccd2436f99d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs @@ -1,2 +1,3 @@ +mod with_one_successful_and_one_failing_test; mod with_one_successful_and_one_ignored_test; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..e263673acba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1 @@ +mod outputs_all_tests_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..12740dbb4e0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_all_tests_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have( + context, + r#"level_1::level_2::pass: test +level_1::level_2::fail: test"#, + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs new file mode 100644 index 00000000000..f334faebcdd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs @@ -0,0 +1,39 @@ +use super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_successful_and_one_failing_level_2_tests") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[cfg(test)] + #[wasm_bindgen_test] + fn fail() { + assert_eq!(1, 2); + } + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests( + context: &mut Context, +) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 1a415b7d18a..63ab8ed9939 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -2,6 +2,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; @@ -15,6 +16,7 @@ pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests::*; From 9d7132860259b37aadfe25768ce2f7202c38c683 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 20:44:53 +0100 Subject: [PATCH 104/224] wasm-bindgen-test-runner: Added feature test Returns success to invocation with_an_assembly with_arguments --list --format terse default level_2 with_one_successful_an_one_failing_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs index e263673acba..2fe6eb0f83f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/mod.rs @@ -1 +1,2 @@ mod outputs_all_tests_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..1b611929d0d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From 66240a55bee58d84069a4e2acb38f2799639935c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:03:01 +0100 Subject: [PATCH 105/224] wasm-bindgen-test-runner: Reorganized some steps, Fixed a step name. --- .../__list/__format_terse/__ignored/mod.rs | 2 +- .../mod.rs | 0 .../outputs_nothing_feature.rs | 4 ++-- .../returns_success_feature.rs | 4 ++-- .../__list/__format_terse/default/level_0/mod.rs | 2 +- .../mod.rs | 0 ...puts_all_tests_in_the_terse_format_feature.rs | 4 ++-- .../returns_success_feature.rs | 4 ++-- .../without_arguments/level_0/mod.rs | 2 +- .../mod.rs | 0 .../outputs_its_running_2_tests_feature.rs | 4 ++-- ...tputs_the_assembly_failure_summary_feature.rs | 6 +++--- .../outputs_the_assembly_test_summary_feature.rs | 4 ++-- ...ts_the_failed_test_assertion_error_feature.rs | 4 ++-- .../outputs_the_failed_test_summary_feature.rs | 6 +++--- ...utputs_the_successful_test_summary_feature.rs | 6 +++--- .../returns_failure_feature.rs | 4 ++-- .../__steps__/assembly/mod.rs | 16 ++++------------ ...e_successful_and_one_failing_level_1_tests.rs | 2 +- ...e_successful_and_one_failing_level_2_tests.rs | 2 +- ...with_one_successful_and_one_failing_tests.rs} | 6 +++--- .../mod.rs | 7 +++++++ ..._assembly_with_one_successful_level_1_test.rs | 2 +- ..._assembly_with_one_successful_level_2_test.rs | 2 +- ...re_is_an_assembly_with_one_successful_test.rs | 2 +- .../assembly/with_one_successful_test/mod.rs | 7 +++++++ 26 files changed, 54 insertions(+), 48 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_nothing_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/returns_success_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_all_tests_in_the_terse_format_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/returns_success_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_its_running_2_tests_feature.rs (90%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_the_assembly_failure_summary_feature.rs (88%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_the_assembly_test_summary_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_the_failed_test_assertion_error_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_the_failed_test_summary_feature.rs (80%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_the_successful_test_summary_feature.rs (80%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/returns_failure_feature.rs (89%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_and_one_failing_tests}/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs (95%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_and_one_failing_tests}/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs (96%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs => with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_tests.rs} (88%) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/mod.rs rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_test}/given_there_is_an_assembly_with_one_successful_level_1_test.rs (94%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_test}/given_there_is_an_assembly_with_one_successful_level_2_test.rs (95%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_test}/given_there_is_an_assembly_with_one_successful_test.rs (94%) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index a5dd0900e8f..8680266cbff 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1,2 +1,2 @@ -mod with_one_successful_and_one_failing_test; +mod with_one_successful_and_one_failing_tests; mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs index af5e4194180..dfecba077c1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_nothing_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse --ignored", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/returns_success_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/returns_success_feature.rs index e278d50694c..c92b464350b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse --ignored", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs index 4ee71a21874..3ac3ec3dec5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs @@ -1,3 +1,3 @@ mod with_one_ignored_test; -mod with_one_successful_and_one_failing_test; +mod with_one_successful_and_one_failing_tests; mod with_one_successfull_and_one_ignored_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs index 04bba31dfbb..d54414793a0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_all_tests_in_the_terse_format_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs index 26b52ac43bb..6c1046a44e1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs index 1de81fde86f..410c701e554 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -1,5 +1,5 @@ mod with_one_failing_test; mod with_one_ignored_test; -mod with_one_successful_and_one_failing_test; +mod with_one_successful_and_one_failing_tests; mod with_one_successful_test; mod with_one_successfull_and_one_ignored_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs similarity index 90% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs index d8e643c5c0e..8a891e0ed2c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_its_running_2_tests_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have(context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs similarity index 88% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs index c15749172a3..2e5cc6c95d2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_failure_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,10 +6,10 @@ use crate::__steps__::Context; #[test] fn outputs_the_assembly_failure_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, - "failures:\n\n assembly_with_one_successful_and_one_failing_test::fail\n", + "failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs index 82d034fec99..31f3acb6b33 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_the_assembly_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs index 31189becd3e..45e364089e4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_error::then_the_standard_error_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_the_failed_test_assertion_error_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_error_should_have( context, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs similarity index 80% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs index 15b219b0ba7..7f04aa7876d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,10 +6,10 @@ use crate::__steps__::Context; #[test] fn outputs_the_failed_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, - "test assembly_with_one_successful_and_one_failing_test::fail ... FAIL", + "test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs similarity index 80% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs index 2e503ac3834..e16dab16c9a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,10 +6,10 @@ use crate::__steps__::Context; #[test] fn outputs_the_successful_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, - "test assembly_with_one_successful_and_one_failing_test::pass ... ok", + "test assembly_with_one_successful_and_one_failing_tests::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs similarity index 89% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/returns_failure_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs index 67ce5409b67..920723012be 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_test/returns_failure_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; use crate::__steps__::error_code::then_failure_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_failure_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_failing_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_failure_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 63ab8ed9939..43edfdbc2a5 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,27 +1,19 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; -mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; -mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; -mod given_there_is_an_assembly_with_one_successful_and_one_failing_test; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; -mod given_there_is_an_assembly_with_one_successful_level_1_test; -mod given_there_is_an_assembly_with_one_successful_level_2_test; -mod given_there_is_an_assembly_with_one_successful_test; mod given_there_is_an_assembly_without_anything; +mod with_one_successful_and_one_failing_tests; +mod with_one_successful_test; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; -pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests::*; -pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests::*; -pub use given_there_is_an_assembly_with_one_successful_and_one_failing_test::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests::*; pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; -pub use given_there_is_an_assembly_with_one_successful_level_1_test::*; -pub use given_there_is_an_assembly_with_one_successful_level_2_test::*; -pub use given_there_is_an_assembly_with_one_successful_test::*; pub use given_there_is_an_assembly_without_anything::*; +pub use with_one_successful_and_one_failing_tests::*; +pub use with_one_successful_test::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs similarity index 95% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs index b0c07bd78bb..704af5a9845 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs similarity index 96% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs index f334faebcdd..70c5f1db6fe 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_tests.rs similarity index 88% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_tests.rs index e546fda8635..f51601b4519 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_failing_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/given_there_is_an_assembly_with_one_successful_and_one_failing_tests.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; @@ -6,7 +6,7 @@ use std::path::PathBuf; lazy_static! { static ref ASSEMBLY: PathBuf = - AssemblyBuilder::new("assembly_with_one_successful_and_one_failing_test") + AssemblyBuilder::new("assembly_with_one_successful_and_one_failing_tests") .file( "src/lib.rs", r#"#[cfg(test)] @@ -28,6 +28,6 @@ fn fail() { .build(); } -pub fn given_there_is_an_assembly_with_one_successful_and_one_failing_test(context: &mut Context) { +pub fn given_there_is_an_assembly_with_one_successful_and_one_failing_tests(context: &mut Context) { context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/mod.rs new file mode 100644 index 00000000000..77684ffda47 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/mod.rs @@ -0,0 +1,7 @@ +mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +mod given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; +mod given_there_is_an_assembly_with_one_successful_and_one_failing_tests; + +pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_failing_tests::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_1_test.rs similarity index 94% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_1_test.rs index f154158d9e3..a5284f95613 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_1_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_1_test.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_2_test.rs similarity index 95% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_2_test.rs index 0b4fc59cf59..03ad4f702c9 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_level_2_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_2_test.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_test.rs similarity index 94% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_test.rs index 1c846b4b9b3..828c62468c6 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_test.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..8f177fd5ba5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs @@ -0,0 +1,7 @@ +mod given_there_is_an_assembly_with_one_successful_level_1_test; +mod given_there_is_an_assembly_with_one_successful_level_2_test; +mod given_there_is_an_assembly_with_one_successful_test; + +pub use given_there_is_an_assembly_with_one_successful_level_1_test::*; +pub use given_there_is_an_assembly_with_one_successful_level_2_test::*; +pub use given_there_is_an_assembly_with_one_successful_test::*; From 34b1bb06666aadb663f6a7b2b3bff024ded27adf Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:10:00 +0100 Subject: [PATCH 106/224] wasm-bindgen-test-runner: Reorganized some steps, Fixed a step name. --- .../__list/__format_terse/default/level_0/mod.rs | 2 +- .../mod.rs | 0 .../outputs_all_tests_in_the_terse_format_feature.rs | 4 ++-- .../returns_success_feature.rs | 4 ++-- .../with_an_assembly/without_arguments/level_0/mod.rs | 2 +- .../mod.rs | 0 .../outputs_its_running_2_tests_feature.rs | 4 ++-- .../outputs_the_assembly_test_summary_feature.rs | 4 ++-- .../outputs_the_ignored_test_summary_feature.rs | 6 +++--- .../outputs_the_successful_test_summary_feature.rs | 6 +++--- .../returns_success_feature.rs | 4 ++-- tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs | 8 ++------ ...y_with_one_successful_and_one_ignored_level_1_tests.rs | 2 +- ...y_with_one_successful_and_one_ignored_level_2_tests.rs | 2 +- ...assembly_with_one_successful_and_one_ignored_tests.rs} | 6 +++--- .../with_one_successful_and_one_ignored_tests/mod.rs | 7 +++++++ 16 files changed, 32 insertions(+), 29 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successfull_and_one_ignored_test => with_one_successfull_and_one_ignored_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successfull_and_one_ignored_test => with_one_successfull_and_one_ignored_tests}/outputs_all_tests_in_the_terse_format_feature.rs (92%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successfull_and_one_ignored_test => with_one_successfull_and_one_ignored_tests}/returns_success_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successfull_and_one_ignored_test => with_one_successful_and_one_ignored_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successfull_and_one_ignored_test => with_one_successful_and_one_ignored_tests}/outputs_its_running_2_tests_feature.rs (90%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successfull_and_one_ignored_test => with_one_successful_and_one_ignored_tests}/outputs_the_assembly_test_summary_feature.rs (91%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successfull_and_one_ignored_test => with_one_successful_and_one_ignored_tests}/outputs_the_ignored_test_summary_feature.rs (79%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successfull_and_one_ignored_test => with_one_successful_and_one_ignored_tests}/outputs_the_successful_test_summary_feature.rs (80%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_successfull_and_one_ignored_test => with_one_successful_and_one_ignored_tests}/returns_success_feature.rs (89%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_and_one_ignored_tests}/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs (95%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_successful_and_one_ignored_tests}/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs (96%) rename tests/wasm_bindgen_test_runner/__steps__/assembly/{given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs => with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs} (88%) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs index 3ac3ec3dec5..a2cdecec0a0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs @@ -1,3 +1,3 @@ mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; -mod with_one_successfull_and_one_ignored_test; +mod with_one_successfull_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs similarity index 92% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs index 8ba9e929a54..f484d5216e7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_all_tests_in_the_terse_format_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/returns_success_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/returns_success_feature.rs index ea5386054f4..c60ea02bf31 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs index 410c701e554..cada2c59391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -1,5 +1,5 @@ mod with_one_failing_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; +mod with_one_successful_and_one_ignored_tests; mod with_one_successful_test; -mod with_one_successfull_and_one_ignored_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs similarity index 90% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs index 6c5ff8bff04..c7348533a91 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_its_running_2_tests_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have(context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs index 07812a615fa..543a52859ef 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_the_assembly_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs similarity index 79% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs index 124789f0f22..0caed366754 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_ignored_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,10 +6,10 @@ use crate::__steps__::Context; #[test] fn outputs_the_ignored_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, - "test assembly_with_one_successful_and_one_ignored_test::ignored ... ignored", + "test assembly_with_one_successful_and_one_ignored_tests::ignored ... ignored", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs similarity index 80% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs index 8efd9fd07cf..73bb040fd42 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,10 +6,10 @@ use crate::__steps__::Context; #[test] fn outputs_the_successful_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, - "test assembly_with_one_successful_and_one_ignored_test::pass ... ok", + "test assembly_with_one_successful_and_one_ignored_tests::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs similarity index 89% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index a8d073f127b..c1f9b50d225 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successfull_and_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_successful_and_one_ignored_test(&mut context); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 43edfdbc2a5..eb878c22b22 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,19 +1,15 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_with_one_ignored_test; -mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; -mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; -mod given_there_is_an_assembly_with_one_successful_and_one_ignored_test; mod given_there_is_an_assembly_without_anything; mod with_one_successful_and_one_failing_tests; +mod with_one_successful_and_one_ignored_tests; mod with_one_successful_test; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; -pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; -pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests::*; -pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_test::*; pub use given_there_is_an_assembly_without_anything::*; pub use with_one_successful_and_one_failing_tests::*; +pub use with_one_successful_and_one_ignored_tests::*; pub use with_one_successful_test::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs similarity index 95% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs index 9ac4388656a..848881c6511 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs similarity index 96% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs index 69acdc704e6..86979fa2264 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs similarity index 88% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs index 4e8513c10c8..2d2a7d63b0a 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_successful_and_one_ignored_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; @@ -6,7 +6,7 @@ use std::path::PathBuf; lazy_static! { static ref ASSEMBLY: PathBuf = - AssemblyBuilder::new("assembly_with_one_successful_and_one_ignored_test") + AssemblyBuilder::new("assembly_with_one_successful_and_one_ignored_tests") .file( "src/lib.rs", r#"#[cfg(test)] @@ -29,6 +29,6 @@ fn ignored() { .build(); } -pub fn given_there_is_an_assembly_with_one_successful_and_one_ignored_test(context: &mut Context) { +pub fn given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(context: &mut Context) { context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/mod.rs new file mode 100644 index 00000000000..7fa39772d42 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/mod.rs @@ -0,0 +1,7 @@ +mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; +mod given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; +mod given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; + +pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests::*; +pub use given_there_is_an_assembly_with_one_successful_and_one_ignored_tests::*; From 120048b8f25c611f18bf34428ecf83219983b051 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:13:10 +0100 Subject: [PATCH 107/224] wasm-bindgent-test-runner: Moved test features of invocation with_an_assembly with_arguments --list --format terse --ignored with_one_successful_and_one_failing_tests into level_0. --- .../__list/__format_terse/__ignored/level_0/mod.rs | 1 + .../with_one_successful_and_one_failing_tests/mod.rs | 0 .../outputs_nothing_feature.rs | 0 .../returns_success_feature.rs | 0 .../with_arguments/__list/__format_terse/__ignored/mod.rs | 2 +- 5 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{ => level_0}/with_one_successful_and_one_failing_tests/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{ => level_0}/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/{ => level_0}/with_one_successful_and_one_failing_tests/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs new file mode 100644 index 00000000000..2bf454adb86 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_and_one_failing_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/with_one_successful_and_one_failing_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index 8680266cbff..8e21652094a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1,2 +1,2 @@ -mod with_one_successful_and_one_failing_tests; +mod level_0; mod without_tests; From b60d062f098002f1a1fcd21cc6950f5f96d07ae6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:18:41 +0100 Subject: [PATCH 108/224] wasm-bindgen-test-runner: Fixed argument name --list format TARGET to --list format FORMAT. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 4 ++-- ...s_the_wasm_bindgen_test_runner_help_information_feature.rs | 2 +- ...s_the_wasm_bindgen_test_runner_help_information_feature.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 6e160fb2cbe..291a716cd20 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -81,7 +81,7 @@ Options: Arguments: --list List all tests that would be run - --format TARGET Format of the tests listing output, valid values are [terse, json] + --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html @@ -90,9 +90,9 @@ Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-t #[derive(Debug, Deserialize)] struct Args { arg_input: Option, + flag_format: Option, flag_ignored: bool, flag_list: bool, - flag_target: Option, flag_version: bool, } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 53c57d2e6b4..faf551b1905 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -23,7 +23,7 @@ Options: Arguments: --list List all tests that would be run - --format TARGET Format of the tests listing output, valid values are [terse, json] + --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 93ff22345d4..261a6fea2d4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -23,7 +23,7 @@ Options: Arguments: --list List all tests that would be run - --format TARGET Format of the tests listing output, valid values are [terse, json] + --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html From 119855341e96a160d45e8e76c3ab3cbb31f4b178 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:23:38 +0100 Subject: [PATCH 109/224] wasm-bindgen-test-runner: Added feature test Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_0 with_one_ignored_test. --- .../__format_terse/__ignored/level_0/mod.rs | 1 + .../level_0/with_one_ignored_test/mod.rs | 1 + ...utputs_the_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs index 2bf454adb86..42668331481 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs @@ -1 +1,2 @@ +mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..ed1bb78158a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have(context, r#"ignored: test"#); +} From 07c6478da060ee9cfff9376b6d72695ded33d5db Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:26:12 +0100 Subject: [PATCH 110/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_0 with_one_ignored_test. --- .../level_0/with_one_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..51b6944c9a2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 6dbd65f386569fbc70dfd1d1ee50549b4704c8ff Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:31:56 +0100 Subject: [PATCH 111/224] wasm-bindgen-test-runner: Added feature test Outputs the ignored test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_0 with_one_sucessful_and_one_ignored_tests. --- .../__format_terse/__ignored/level_0/mod.rs | 1 + .../mod.rs | 1 + ...ignored_test_in_the_terse_format_feature.rs | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs index 42668331481..248266f43f5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs @@ -1,2 +1,3 @@ mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; +mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs new file mode 100644 index 00000000000..3421ec8925f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs @@ -0,0 +1 @@ +mod outputs_the_ignored_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..b5415fd1743 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have( + context, + r#"ignored: test"#, + ); +} From 1327a529adfdf829591a2859bb3a092a6145ff32 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:34:03 +0100 Subject: [PATCH 112/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_0 with_one_sucessful_and_one_ignored_tests. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs index 3421ec8925f..58c4d30934d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs @@ -1 +1,2 @@ mod outputs_the_ignored_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs new file mode 100644 index 00000000000..75d6a7b54de --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 8f25f42ce191a91129ce2fef8639b83dd77d744c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:35:50 +0100 Subject: [PATCH 113/224] wasm-bindgen-test-runner: Fixed feature test folder name, --- .../outputs_the_ignored_test_in_the_terse_format_feature.rs | 5 +---- .../__list/__format_terse/default/level_0/mod.rs | 2 +- .../mod.rs | 0 .../outputs_all_tests_in_the_terse_format_feature.rs | 0 .../returns_success_feature.rs | 0 5 files changed, 2 insertions(+), 5 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successfull_and_one_ignored_tests => with_one_successful_and_one_ignored_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successfull_and_one_ignored_tests => with_one_successful_and_one_ignored_tests}/outputs_all_tests_in_the_terse_format_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_successfull_and_one_ignored_tests => with_one_successful_and_one_ignored_tests}/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs index b5415fd1743..a0e0bfb67fa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -11,8 +11,5 @@ fn outputs_the_ignored_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have( - context, - r#"ignored: test"#, - ); + then_the_standard_output_should_have(context, r#"ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs index a2cdecec0a0..248266f43f5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs @@ -1,3 +1,3 @@ mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; -mod with_one_successfull_and_one_ignored_tests; +mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successfull_and_one_ignored_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs From 75ab397da65313da1c20cc93b2bc893b43c68a90 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:42:04 +0100 Subject: [PATCH 114/224] wasm-bindgen-test-runner: Added feature test Outputs nothing to the invocation with_an_assembly with_arguments --list --format terse --ignored level_1 with_one_successful_and_one_failing_test. --- .../__format_terse/__ignored/level_1/mod.rs | 1 + .../mod.rs | 1 + .../outputs_nothing_feature.rs | 15 +++++++++++++++ .../__list/__format_terse/__ignored/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs new file mode 100644 index 00000000000..31407fd91bc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_and_one_failing_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..62f73d1690d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1 @@ +mod outputs_nothing_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs new file mode 100644 index 00000000000..94741347e60 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_nothing_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index 8e21652094a..331a0003e42 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1,2 +1,3 @@ mod level_0; +mod level_1; mod without_tests; From f597ac799868814a49b39b6530702530d49eddb9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:43:46 +0100 Subject: [PATCH 115/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_1 with_one_successful_and_one_failing_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs index 62f73d1690d..78d02776662 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/mod.rs @@ -1 +1,2 @@ mod outputs_nothing_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..276b713474d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 386a526f2bf40d2b1d60c288d30c7d568257367f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:54:10 +0100 Subject: [PATCH 116/224] wasm-bindgen-test-runnner: Added test feature Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_1 with_one_ignored_test. --- .../__format_terse/__ignored/level_1/mod.rs | 1 + .../level_1/with_one_ignored_test/mod.rs | 1 + ...ts_the_test_in_the_terse_format_feature.rs | 15 ++++++++++ .../__steps__/assembly/mod.rs | 4 +-- ..._assembly_with_one_ignored_level_1_test.rs | 29 +++++++++++++++++++ ...re_is_an_assembly_with_one_ignored_test.rs | 2 +- .../assembly/with_one_ignored_test/mod.rs | 5 ++++ 7 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_1_test.rs rename tests/wasm_bindgen_test_runner/__steps__/assembly/{ => with_one_ignored_test}/given_there_is_an_assembly_with_one_ignored_test.rs (94%) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs index 31407fd91bc..ccb1708fa67 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs @@ -1 +1,2 @@ +mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..3e03e4adfd2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have(context, r#"level_1::ignored: test"#); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index eb878c22b22..2cf39e3f139 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,15 +1,15 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; -mod given_there_is_an_assembly_with_one_ignored_test; mod given_there_is_an_assembly_without_anything; +mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; mod with_one_successful_test; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; -pub use given_there_is_an_assembly_with_one_ignored_test::*; pub use given_there_is_an_assembly_without_anything::*; +pub use with_one_ignored_test::*; pub use with_one_successful_and_one_failing_tests::*; pub use with_one_successful_and_one_ignored_tests::*; pub use with_one_successful_test::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_1_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_1_test.rs new file mode 100644 index 00000000000..de03a351601 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_1_test.rs @@ -0,0 +1,29 @@ +use super::super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_ignored_level_1_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_ignored_level_1_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_test.rs similarity index 94% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_test.rs index b199b0dbc1c..f0725eed341 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_ignored_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_test.rs @@ -1,4 +1,4 @@ -use super::AssemblyBuilder; +use super::super::AssemblyBuilder; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..c36b318fda3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs @@ -0,0 +1,5 @@ +mod given_there_is_an_assembly_with_one_ignored_level_1_test; +mod given_there_is_an_assembly_with_one_ignored_test; + +pub use given_there_is_an_assembly_with_one_ignored_level_1_test::*; +pub use given_there_is_an_assembly_with_one_ignored_test::*; From 86174a66671e31a403356443b540845b888888f1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:56:18 +0100 Subject: [PATCH 117/224] wasm-bindgen-test-runnner: Added test feature Returns success the invocation with_an_assembly with_arguments --list --format terse --ignored level_1 with_one_ignored_test. --- .../level_1/with_one_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..b96a4339ea0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 486a284798e72f488f4ee5dedebecffabb348272 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 21:59:13 +0100 Subject: [PATCH 118/224] wasm-bindgen-test-runnner: Added test feature Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_1 with_one_successful_and_one_ignored_test. --- .../__format_terse/__ignored/level_1/mod.rs | 1 + .../mod.rs | 1 + ...he_ignored_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs index ccb1708fa67..f340801fa96 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs @@ -1,2 +1,3 @@ mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; +mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs new file mode 100644 index 00000000000..3421ec8925f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs @@ -0,0 +1 @@ +mod outputs_the_ignored_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..b78bb983265 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have(context, r#"level_1::ignored: test"#); +} From 6787e0f2f6407229e7c077de0d6a6eae9c4984dd Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:00:56 +0100 Subject: [PATCH 119/224] wasm-bindgen-test-runnner: Added test feature Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_1 with_one_successful_and_one_ignored_test. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs index 3421ec8925f..58c4d30934d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/mod.rs @@ -1 +1,2 @@ mod outputs_the_ignored_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs new file mode 100644 index 00000000000..86d2610899e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 3193035ab8e84ce1c2a49e826f1c4c267da89b86 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:05:44 +0100 Subject: [PATCH 120/224] wasm-bindgen-test-runnner: Added test feature Outputs nothing to the invocation with_an_assembly with_arguments --list --format terse --ignored level_2 with_one_successful_and_one_failing_tests. --- .../__format_terse/__ignored/level_2/mod.rs | 1 + .../mod.rs | 1 + .../outputs_nothing_feature.rs | 15 +++++++++++++++ .../__list/__format_terse/__ignored/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs new file mode 100644 index 00000000000..31407fd91bc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_and_one_failing_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs new file mode 100644 index 00000000000..62f73d1690d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs @@ -0,0 +1 @@ +mod outputs_nothing_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs new file mode 100644 index 00000000000..0c794b8772e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_nothing_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs index 331a0003e42..a2590091967 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs @@ -1,3 +1,4 @@ mod level_0; mod level_1; +mod level_2; mod without_tests; From c409ea0bed2dcc4e3a4a6135fe8f492335161f44 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:07:31 +0100 Subject: [PATCH 121/224] wasm-bindgen-test-runnner: Added test feature Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_2 with_one_successful_and_one_failing_tests. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs index 62f73d1690d..78d02776662 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs @@ -1 +1,2 @@ mod outputs_nothing_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs new file mode 100644 index 00000000000..37b297b7905 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 8ba7902f09197d592b1271f17df59865e7f05fab Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:12:05 +0100 Subject: [PATCH 122/224] wasm-bindgen-test-runnner: Added test feature Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_2 with_one_ignored_test. --- .../__format_terse/__ignored/level_2/mod.rs | 1 + .../level_2/with_one_ignored_test/mod.rs | 1 + ...ts_the_test_in_the_terse_format_feature.rs | 15 +++++++++ ..._assembly_with_one_ignored_level_2_test.rs | 31 +++++++++++++++++++ .../assembly/with_one_ignored_test/mod.rs | 2 ++ 5 files changed, 50 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_2_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs index 31407fd91bc..ccb1708fa67 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs @@ -1 +1,2 @@ +mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..45c108d4098 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_level_2_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have(context, r#"level_1::level_2::ignored: test"#); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_2_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_2_test.rs new file mode 100644 index 00000000000..1ea33e3ccff --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_2_test.rs @@ -0,0 +1,31 @@ +use super::super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_ignored_level_2_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_ignored_level_2_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs index c36b318fda3..d2d4828016c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs @@ -1,5 +1,7 @@ mod given_there_is_an_assembly_with_one_ignored_level_1_test; +mod given_there_is_an_assembly_with_one_ignored_level_2_test; mod given_there_is_an_assembly_with_one_ignored_test; pub use given_there_is_an_assembly_with_one_ignored_level_1_test::*; +pub use given_there_is_an_assembly_with_one_ignored_level_2_test::*; pub use given_there_is_an_assembly_with_one_ignored_test::*; From 4203835e358e004d7989abf5a2f33f27a945e22c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:14:49 +0100 Subject: [PATCH 123/224] wasm-bindgen-test-runnner: Added test feature Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_2 with_one_ignored_test. --- .../level_2/with_one_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..025b37eac75 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_level_2_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_level_2_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From f48ce46262dd8f3eedbdeb22ad71ea192d801719 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:18:20 +0100 Subject: [PATCH 124/224] wasm-bindgen-test-runnner: Added test feature Outputs the ignored test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_2 with_one_successful_and_one_ignored_tests. --- .../__format_terse/__ignored/level_2/mod.rs | 1 + .../mod.rs | 1 + ...he_ignored_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs index ccb1708fa67..f340801fa96 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs @@ -1,2 +1,3 @@ mod with_one_ignored_test; mod with_one_successful_and_one_failing_test; +mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs new file mode 100644 index 00000000000..3421ec8925f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs @@ -0,0 +1 @@ +mod outputs_the_ignored_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..5f4de88cece --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have(context, r#"level_1::level_2::ignored: test"#); +} From 172c70f260fa4206d09018b725d3f31c964430bc Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:20:40 +0100 Subject: [PATCH 125/224] wasm-bindgen-test-runnner: Added test feature Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_2 with_one_successful_and_one_ignored_tests. --- .../mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs index 3421ec8925f..58c4d30934d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/mod.rs @@ -1 +1,2 @@ mod outputs_the_ignored_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs new file mode 100644 index 00000000000..c747636414d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From 75a38e587e19d9e28167138038dfb54c043afa7c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Apr 2024 22:22:14 +0100 Subject: [PATCH 126/224] wasm-bindgen-test-runnner: Fixed test feature folder name. --- .../__list/__format_terse/__ignored/level_2/mod.rs | 2 +- .../mod.rs | 0 .../outputs_nothing_feature.rs | 0 .../returns_success_feature.rs | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/outputs_nothing_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/{with_one_successful_and_one_failing_test => with_one_successful_and_one_failing_tests}/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs index f340801fa96..248266f43f5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs @@ -1,3 +1,3 @@ mod with_one_ignored_test; -mod with_one_successful_and_one_failing_test; +mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/returns_success_feature.rs From 6830a95a0926766b82d1068cdd94100a12665fd6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 20:59:43 +0100 Subject: [PATCH 127/224] wasm-bindgen-test-runner: Improved tests steps helpers to be more helpful when the generated crates fail to build. --- .../__steps__/assembly/assembly_builder.rs | 6 +++++- .../__steps__/wasm_bindgen_test_runner/sandbox.rs | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs index 930497846c3..f5b6dedc158 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs @@ -95,10 +95,14 @@ fn extract_assembly_from_output(output: Output) -> String { let error_str = std::str::from_utf8(&output.stderr).unwrap(); let last = error_str.lines().last().unwrap(); + if last.starts_with("error") { + panic!("Failed to generate assembly\n{}", error_str); + } + let re = Regex::new(r"\((.*?)\)").unwrap(); let captures = re .captures(last) - .expect("Failed to find generated assembly"); + .expect(&format!("Failed to generate assembly\n{}", error_str)); captures.get(1).unwrap().as_str().to_string() } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs index e7fd3379f69..b637e3dc5b0 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs @@ -10,6 +10,9 @@ pub struct Sandbox { impl Sandbox { pub fn new(original: PathBuf) -> Self { + if !&original.exists() { + panic!("Couldn't find generated assembly: {}", &original.display()); + } Self { assembly: None, original, From 95bcb8ebab7c58b23f0b0bf072b20bbe77bc85a6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:01:38 +0100 Subject: [PATCH 128/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly without_arguments level_0 with_custom_ignored_test. --- .../without_arguments/level_0/mod.rs | 1 + .../level_0/with_custom_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 12 +++++++++ .../__steps__/assembly/mod.rs | 2 ++ ...n_assembly_with_one_custom_ignored_test.rs | 25 +++++++++++++++++++ .../with_one_custom_ignored_test/mod.rs | 3 +++ 6 files changed, 44 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs index cada2c59391..1cab37a90bd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -1,3 +1,4 @@ +mod with_custom_ignored_test; mod with_one_failing_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..dd718ee211e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 2cf39e3f139..9a4b160b2e8 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,6 +1,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_without_anything; +mod with_one_custom_ignored_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; @@ -9,6 +10,7 @@ mod with_one_successful_test; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_without_anything::*; +pub use with_one_custom_ignored_test::*; pub use with_one_ignored_test::*; pub use with_one_successful_and_one_failing_tests::*; pub use with_one_successful_and_one_ignored_tests::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs new file mode 100644 index 00000000000..6c8e993c445 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs @@ -0,0 +1,25 @@ +use super::super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_custom_ignored_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +#[ignore = "test"] +fn ignored() {} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_one_custom_ignored_test(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs new file mode 100644 index 00000000000..c2159456c40 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs @@ -0,0 +1,3 @@ +mod given_there_is_an_assembly_with_one_custom_ignored_test; + +pub use given_there_is_an_assembly_with_one_custom_ignored_test::*; From d672fa1b00c7830742d57d278ee1066ba1f6b01a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:20:52 +0100 Subject: [PATCH 129/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to the invocation with_an_assembly without_arguments level_0 with_custom_ignored_test. --- .../level_0/with_custom_ignored_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs index 25ee07c0dc5..d89208abea7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs @@ -1 +1,2 @@ +mod outputs_its_running_1_test_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..922a80297c1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} From 06880d40bb98901e9f198853792b8ee1cf43f281 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:43:38 +0100 Subject: [PATCH 130/224] wasm-bindgen-test-runner: Added feature test Outputs no error to the invocation with_an_assembly without_arguments level_0 with_custom_ignored_test. --- .../level_0/with_custom_ignored_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs index d89208abea7..4537804ff7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..8ae1407b881 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_error_should_be_empty(context); +} From d465caa0d96842060c997f5a89e161b97e9c9576 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:46:18 +0100 Subject: [PATCH 131/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to the invocation with_an_assembly without_arguments level_0 with_custom_ignored_test. --- .../level_0/with_custom_ignored_test/mod.rs | 1 + .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs index 4537804ff7d..db4aa282931 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..c28b4e5df8b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out", + ); +} From d9135b8eeac52cab15abe7998f7728c30ac55f4d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:51:13 +0100 Subject: [PATCH 132/224] wasm-bindgen-test-runner: Added feature test Outputs the ignored test summary to the invocation with_an_assembly without_arguments level_0 with_custom_ignored_test. --- .../level_0/with_custom_ignored_test/mod.rs | 1 + .../outputs_the_ignored_test_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs index db4aa282931..734c2b900dc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_ignored_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs new file mode 100644 index 00000000000..cc3f9f65489 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_custom_ignored_test::ignored ... ignored, test", + ); +} From c366b4b3cbd33d1a43f6f4dfe7a9c661ab93a905 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:54:16 +0100 Subject: [PATCH 133/224] wasm-bindgen-test-runner: Improved test features folder. --- .../with_an_assembly/without_arguments/level_0/mod.rs | 2 +- .../mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 0 .../outputs_no_error_feature.rs | 0 .../outputs_the_assembly_test_summary_feature.rs | 0 .../outputs_the_ignored_test_summary_feature.rs | 0 .../returns_success_feature.rs | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_custom_ignored_test => with_one_custom_ignored_test}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_custom_ignored_test => with_one_custom_ignored_test}/outputs_its_running_1_test_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_custom_ignored_test => with_one_custom_ignored_test}/outputs_no_error_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_custom_ignored_test => with_one_custom_ignored_test}/outputs_the_assembly_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_custom_ignored_test => with_one_custom_ignored_test}/outputs_the_ignored_test_summary_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_custom_ignored_test => with_one_custom_ignored_test}/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs index 1cab37a90bd..3dc0c5ae132 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -1,4 +1,4 @@ -mod with_custom_ignored_test; +mod with_one_custom_ignored_test; mod with_one_failing_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_its_running_1_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_no_error_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_custom_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/returns_success_feature.rs From 33bccb6553daf2cc23342489ed869eea194904e1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 21:59:41 +0100 Subject: [PATCH 134/224] wasm-bindgen-test-runner: Added test feature Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse --ignored level_0. --- .../__format_terse/__ignored/level_0/mod.rs | 1 + .../level_0/with_one_custom_ignored_test/mod.rs | 1 + ...utputs_the_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs index 248266f43f5..2e7237dcd8c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs @@ -1,3 +1,4 @@ +mod with_one_custom_ignored_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..ff8a26beccc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_the_standard_output_should_have(context, r#"ignored: test"#); +} From 65ce4086d8d45d52416c65638500dbc18699486c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 22:01:18 +0100 Subject: [PATCH 135/224] wasm-bindgen-test-runner: Added test feature Returns success to the invocation with_an_assembly with_arguments --list --format terse --ignored level_0. --- .../level_0/with_one_custom_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..c8e3206ecfb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse --ignored", + ); + then_success_should_have_been_returned(context); +} From e27832797d9002a83671a13be60a822707f97457 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 22:05:46 +0100 Subject: [PATCH 136/224] wasm-bindgen-test-runner: Added test feature Outputs the test in the terse format to the invocation with_an_assembly with_arguments --list --format terse default level_0. --- .../__list/__format_terse/default/level_0/mod.rs | 1 + .../level_0/with_one_custom_ignored_test/mod.rs | 1 + ...utputs_the_test_in_the_terse_format_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs index 248266f43f5..2e7237dcd8c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs @@ -1,3 +1,4 @@ +mod with_one_custom_ignored_test; mod with_one_ignored_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs new file mode 100644 index 00000000000..8d46a824522 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs @@ -0,0 +1 @@ +mod outputs_the_test_in_the_terse_format_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..967796e8d4b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_test_in_the_terse_format_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_the_standard_output_should_have(context, r#"ignored: test"#); +} From 990042d297b76d1bc3c37a19760bae5cb61f1c3e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 22:07:55 +0100 Subject: [PATCH 137/224] wasm-bindgen-test-runner: Added test feature Returns success to the invocation with_an_assembly with_arguments --list --format terse level_0. --- .../level_0/with_one_custom_ignored_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs index 8d46a824522..be94fe3d391 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs @@ -1 +1,2 @@ mod outputs_the_test_in_the_terse_format_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..c90dbd5a925 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--list --format terse", + ); + then_success_should_have_been_returned(context); +} From 49e13ddd6c570c5be073018cada4e5f78768899e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 22:25:45 +0100 Subject: [PATCH 138/224] test-macro: Simplificed the generated extra function to not having the ignore string, there for not limiting it in anyway, besides the info wasn't being used. --- crates/test-macro/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/test-macro/src/lib.rs b/crates/test-macro/src/lib.rs index 59d9884c3c3..bc2e4418dd4 100644 --- a/crates/test-macro/src/lib.rs +++ b/crates/test-macro/src/lib.rs @@ -81,7 +81,7 @@ pub fn wasm_bindgen_test( }; let ignore_str = match ignore.clone() { - Some(Some(_ig)) => concat!("$", ::core::stringify!(_ig)), + Some(Some(_)) => "$", Some(None) => "$", None => "", }; From a4e401f82f751c3ef6e45dbbd9344a41ea509555 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 23:06:41 +0100 Subject: [PATCH 139/224] wasm-bindgen-test-runner: Improved test features folders and steps names for ignored tests with a reason. --- .../__format_terse/__ignored/level_0/mod.rs | 2 +- .../mod.rs | 0 ...utputs_the_test_in_the_terse_format_feature.rs | 4 ++-- .../returns_success_feature.rs | 4 ++-- .../__list/__format_terse/default/level_0/mod.rs | 2 +- .../mod.rs | 0 ...utputs_the_test_in_the_terse_format_feature.rs | 4 ++-- .../returns_success_feature.rs | 4 ++-- .../without_arguments/level_0/mod.rs | 2 +- .../mod.rs | 0 .../outputs_its_running_1_test_feature.rs | 4 ++-- .../outputs_no_error_feature.rs | 4 ++-- .../outputs_the_assembly_test_summary_feature.rs | 4 ++-- .../outputs_the_ignored_test_summary_feature.rs | 6 +++--- .../returns_success_feature.rs | 4 ++-- .../__steps__/assembly/mod.rs | 4 ++-- .../assembly/with_one_custom_ignored_test/mod.rs | 3 --- ...assembly_with_one_ignored_with_reason_test.rs} | 15 ++++++++------- .../with_one_ignored_with_reason_test/mod.rs | 3 +++ 19 files changed, 35 insertions(+), 34 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/outputs_the_test_in_the_terse_format_feature.rs (85%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/returns_success_feature.rs (84%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/outputs_the_test_in_the_terse_format_feature.rs (84%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/returns_success_feature.rs (83%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/outputs_its_running_1_test_feature.rs (82%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/outputs_no_error_feature.rs (81%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/outputs_the_assembly_test_summary_feature.rs (84%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/outputs_the_ignored_test_summary_feature.rs (72%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/{with_one_custom_ignored_test => with_one_ignored_with_reason_test}/returns_success_feature.rs (81%) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs rename tests/wasm_bindgen_test_runner/__steps__/assembly/{with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs => with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs} (52%) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs index 2e7237dcd8c..74919297df5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs @@ -1,4 +1,4 @@ -mod with_one_custom_ignored_test; mod with_one_ignored_test; +mod with_one_ignored_with_reason_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs similarity index 85% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs index ff8a26beccc..3cfa532fa74 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_the_test_in_the_terse_format_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse --ignored", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs similarity index 84% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index c8e3206ecfb..5e0fd076034 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_custom_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse --ignored", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs index 2e7237dcd8c..74919297df5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs @@ -1,4 +1,4 @@ -mod with_one_custom_ignored_test; mod with_one_ignored_test; +mod with_one_ignored_with_reason_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs similarity index 84% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs index 967796e8d4b..d17da9fbe5b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_the_test_in_the_terse_format_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs similarity index 83% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index c90dbd5a925..71e6e7abd81 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_custom_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, "--list --format terse", diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs index 3dc0c5ae132..4ca47c84090 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs @@ -1,6 +1,6 @@ -mod with_one_custom_ignored_test; mod with_one_failing_test; mod with_one_ignored_test; +mod with_one_ignored_with_reason_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs similarity index 82% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_its_running_1_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs index 922a80297c1..43a919c8d82 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_its_running_1_test_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have(context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs similarity index 81% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_no_error_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs index 8ae1407b881..f0763f328e0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_no_error_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_error_should_be_empty(context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs similarity index 84% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs index c28b4e5df8b..7062e938652 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn outputs_the_assembly_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs similarity index 72% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs index cc3f9f65489..e13f205796a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/outputs_the_ignored_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,10 +6,10 @@ use crate::__steps__::Context; #[test] fn outputs_the_ignored_test_summary_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( context, - "test assembly_with_one_custom_ignored_test::ignored ... ignored, test", + "test assembly_with_one_ignored_with_reason_test::ignored ... ignored, test", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs similarity index 81% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index dd718ee211e..68278f73026 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_custom_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_custom_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; use crate::__steps__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; use crate::__steps__::Context; @@ -6,7 +6,7 @@ use crate::__steps__::Context; #[test] fn returns_success_feature() { let mut context = Context::new(); - given_there_is_an_assembly_with_one_custom_ignored_test(&mut context); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_success_should_have_been_returned(context); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 9a4b160b2e8..82d5014d2bf 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,8 +1,8 @@ mod assembly_builder; mod given_there_is_an_assembly_with_one_failing_test; mod given_there_is_an_assembly_without_anything; -mod with_one_custom_ignored_test; mod with_one_ignored_test; +mod with_one_ignored_with_reason_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; mod with_one_successful_test; @@ -10,8 +10,8 @@ mod with_one_successful_test; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; pub use given_there_is_an_assembly_without_anything::*; -pub use with_one_custom_ignored_test::*; pub use with_one_ignored_test::*; +pub use with_one_ignored_with_reason_test::*; pub use with_one_successful_and_one_failing_tests::*; pub use with_one_successful_and_one_ignored_tests::*; pub use with_one_successful_test::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs deleted file mode 100644 index c2159456c40..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod given_there_is_an_assembly_with_one_custom_ignored_test; - -pub use given_there_is_an_assembly_with_one_custom_ignored_test::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs similarity index 52% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs rename to tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs index 6c8e993c445..ba133a80e31 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_custom_ignored_test/given_there_is_an_assembly_with_one_custom_ignored_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs @@ -5,10 +5,11 @@ use lazy_static::lazy_static; use std::path::PathBuf; lazy_static! { - static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_custom_ignored_test") - .file( - "src/lib.rs", - r#"#[cfg(test)] + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_one_ignored_with_reason_test") + .file( + "src/lib.rs", + r#"#[cfg(test)] use wasm_bindgen_test::*; #[cfg(test)] @@ -16,10 +17,10 @@ use wasm_bindgen_test::*; #[ignore = "test"] fn ignored() {} "#, - ) - .build(); + ) + .build(); } -pub fn given_there_is_an_assembly_with_one_custom_ignored_test(context: &mut Context) { +pub fn given_there_is_an_assembly_with_one_ignored_with_reason_test(context: &mut Context) { context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/mod.rs new file mode 100644 index 00000000000..7b6014d0a67 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/mod.rs @@ -0,0 +1,3 @@ +mod given_there_is_an_assembly_with_one_ignored_with_reason_test; + +pub use given_there_is_an_assembly_with_one_ignored_with_reason_test::*; From dc93063f7f17152dc3fb62d2ef1617368200ab5d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 23:44:56 +0100 Subject: [PATCH 140/224] wasm-bindgent-test-runner: Reinstated support for --include-ignored. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 291a716cd20..de090505aa8 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -76,13 +76,14 @@ Usage: wasm-bindgen-test-runner -V | --version Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner Arguments: - --list List all tests that would be run - --format FORMAT Format of the tests listing output, valid values are [terse, json] - --ignored Restricts the listing to only consider the ignored tests + --include-ignored Include ignored tests in the test run + --list List all tests that would be run + --format FORMAT Format of the tests listing output, valid values are [terse, json] + --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "; @@ -91,6 +92,7 @@ Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-t struct Args { arg_input: Option, flag_format: Option, + flag_include_ignored: bool, flag_ignored: bool, flag_list: bool, flag_version: bool, From f486b586e0ee3989a3a919fa69e6ae62752b0a8c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 14 Apr 2024 23:46:58 +0100 Subject: [PATCH 141/224] wasm-bindgen-test-runner: Updated test features because of reinstated support for --include--ignored. Added test features to the invocation with_an_assembly with_arguments --include-ignored level_0. --- ...gen_test_runner_help_information_feature.rs | 11 ++++++----- ...gen_test_runner_help_information_feature.rs | 11 ++++++----- .../__include_ignored/level_0/mod.rs | 6 ++++++ .../level_0/with_one_failing_test/mod.rs | 6 ++++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ ...uts_the_assembly_failure_summary_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ..._the_failed_test_assertion_error_feature.rs | 18 ++++++++++++++++++ .../outputs_the_failed_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_failure_feature.rs | 15 +++++++++++++++ .../level_0/with_one_ignored_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...est_successful_execution_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../with_one_ignored_with_reason_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...est_successful_execution_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 7 +++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ ...uts_the_assembly_failure_summary_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ..._the_failed_test_assertion_error_feature.rs | 18 ++++++++++++++++++ .../outputs_the_failed_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_failure_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...est_successful_execution_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../level_0/with_one_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/__include_ignored/mod.rs | 1 + .../with_an_assembly/with_arguments/mod.rs | 1 + ...sembly_with_one_ignored_with_reason_test.rs | 4 +++- ...successful_and_one_ignored_level_1_tests.rs | 2 +- ...successful_and_one_ignored_level_2_tests.rs | 2 +- ...ith_one_successful_and_one_ignored_tests.rs | 2 +- 48 files changed, 608 insertions(+), 14 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index faf551b1905..c193df316f4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -18,13 +18,14 @@ Usage: wasm-bindgen-test-runner -V | --version Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner Arguments: - --list List all tests that would be run - --format FORMAT Format of the tests listing output, valid values are [terse, json] - --ignored Restricts the listing to only consider the ignored tests + --include-ignored Include ignored tests in the test run + --list List all tests that would be run + --format FORMAT Format of the tests listing output, valid values are [terse, json] + --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 261a6fea2d4..4fe68466e94 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -18,13 +18,14 @@ Usage: wasm-bindgen-test-runner -V | --version Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner + -h, --help Show this screen. + -V, --version Print the version number of wasm-bindgen-test-runner Arguments: - --list List all tests that would be run - --format FORMAT Format of the tests listing output, valid values are [terse, json] - --ignored Restricts the listing to only consider the ignored tests + --include-ignored Include ignored tests in the test run + --list List all tests that would be run + --format FORMAT Format of the tests listing output, valid values are [terse, json] + --ignored Restricts the listing to only consider the ignored tests Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs new file mode 100644 index 00000000000..4ca47c84090 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs @@ -0,0 +1,6 @@ +mod with_one_failing_test; +mod with_one_ignored_test; +mod with_one_ignored_with_reason_test; +mod with_one_successful_and_one_failing_tests; +mod with_one_successful_and_one_ignored_tests; +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs new file mode 100644 index 00000000000..a1167f8d4ad --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_1_test_feature; +mod outputs_the_assembly_failure_summary_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_failed_test_assertion_error_feature; +mod outputs_the_failed_test_summary_feature; +mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..4e8fa6845db --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs new file mode 100644 index 00000000000..aa05271fce2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_failure_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "failures:\n\n assembly_with_one_failing_test::fail", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..c479d2aa1d4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs new file mode 100644 index 00000000000..b18431fa088 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_failed_test_assertion_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_error_should_have( + context, + "assertion `left == right` failed\n left: 1\n right: 2", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs new file mode 100644 index 00000000000..03fb083b5e0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_failed_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_failing_test::fail ... FAIL", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs new file mode 100644 index 00000000000..1549163b440 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::error_code::then_failure_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_failure_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_failing_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_failure_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/mod.rs new file mode 100644 index 00000000000..c40ba06016b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_ignored_test_successful_execution_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..1ff3f7031aa --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..f59d5a5fa66 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..2829e62e3fa --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs new file mode 100644 index 00000000000..05dd0b1f0e7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_successful_execution_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_ignored_test::ignored ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs new file mode 100644 index 00000000000..9a678204c5d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/mod.rs new file mode 100644 index 00000000000..c40ba06016b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_ignored_test_successful_execution_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..a00ab92d3bc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..bf394b62be9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..709eab76a24 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs new file mode 100644 index 00000000000..5dd881d947f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_successful_execution_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_ignored_with_reason_test::ignored ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs new file mode 100644 index 00000000000..b7ec485fa11 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs new file mode 100644 index 00000000000..e4b0a4ed3f8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs @@ -0,0 +1,7 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_the_assembly_failure_summary_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_failed_test_assertion_error_feature; +mod outputs_the_failed_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_failure_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..7c4534c8eff --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_tests_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs new file mode 100644 index 00000000000..bc038be33ce --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_failure_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..55e997bff14 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs new file mode 100644 index 00000000000..96914af8ace --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_failed_test_assertion_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_error_should_have( + context, + "assertion `left == right` failed\n left: 1\n right: 2", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs new file mode 100644 index 00000000000..80eb4becf79 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_failed_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..47549b68445 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_failing_tests::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs new file mode 100644 index 00000000000..a7132bba7cc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::error_code::then_failure_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_failure_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_failure_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs new file mode 100644 index 00000000000..307645a1f9a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_ignored_test_successful_execution_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..730b8af7202 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_tests_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..78826e7cf96 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs new file mode 100644 index 00000000000..85f3d10c8dc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_successful_execution_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_ignored_tests::ignored ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..3f0da2a16c4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_ignored_test_successful_execution_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_and_one_ignored_tests::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs new file mode 100644 index 00000000000..0ba0725d76c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..c81bc5f4395 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..e1beb4e6470 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..6cec28f0368 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..205d687a9c8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..4be9752541e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--include-ignored", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs new file mode 100644 index 00000000000..c287a1a3df5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs @@ -0,0 +1 @@ +mod level_0; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs index 30c5e7fc170..e25362a8ba1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs @@ -1 +1,2 @@ +mod __include_ignored; mod __list; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs index ba133a80e31..74b254cf545 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/given_there_is_an_assembly_with_one_ignored_with_reason_test.rs @@ -15,7 +15,9 @@ use wasm_bindgen_test::*; #[cfg(test)] #[wasm_bindgen_test] #[ignore = "test"] -fn ignored() {} +fn ignored() { + assert_eq!(1, 1); +} "#, ) .build(); diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs index 848881c6511..88f6b20699c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests.rs @@ -23,7 +23,7 @@ mod level_1 { #[wasm_bindgen_test] #[ignore] fn ignored() { - assert_eq!(1, 2); + assert_eq!(1, 1); } } "#, diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs index 86979fa2264..522eec9e6ea 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests.rs @@ -24,7 +24,7 @@ mod level_1 { #[wasm_bindgen_test] #[ignore] fn ignored() { - assert_eq!(1, 2); + assert_eq!(1, 1); } } } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs index 2d2a7d63b0a..32c6d56ec02 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/given_there_is_an_assembly_with_one_successful_and_one_ignored_tests.rs @@ -22,7 +22,7 @@ fn pass() { #[wasm_bindgen_test] #[ignore] fn ignored() { - assert_eq!(1, 2); + assert_eq!(1, 1); } "#, ) From 48a2fe0cd36217c4abdfb982e87b6c464adb088d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 22:06:46 +0100 Subject: [PATCH 142/224] wasm-bindgen-test-runner: Reinstated support for the --skip PATTERN argument. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index de090505aa8..b6db49a5c62 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -84,6 +84,7 @@ Arguments: --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests + --skip PATTERN Skip tests whose names match the given pattern Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "; @@ -95,6 +96,7 @@ struct Args { flag_include_ignored: bool, flag_ignored: bool, flag_list: bool, + flag_pattern: Vec, flag_version: bool, } From c490707c4ef351ac86873e51376fe3175f3e9d60 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 22:08:20 +0100 Subject: [PATCH 143/224] wasm-bindgen-test-runner: Updated test features that check usage info because of reinstated support for the --skip PATTERN argument. --- ...puts_the_wasm_bindgen_test_runner_help_information_feature.rs | 1 + ...puts_the_wasm_bindgen_test_runner_help_information_feature.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index c193df316f4..75f9f7c55f9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -26,6 +26,7 @@ Arguments: --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests + --skip PATTERN Skip tests whose names match the given pattern Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 4fe68466e94..4b899a591eb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -26,6 +26,7 @@ Arguments: --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests + --skip PATTERN Skip tests whose names match the given pattern Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, From 2d93ae9ac1eb3772a23ee01ca3b8c676bed0da01 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 22:10:11 +0100 Subject: [PATCH 144/224] wasm-bindgen-test-runner: Added test feature for Return success to the invocation with_an_assembly with_arguments --skip PATTERN without_tests. --- .../with_arguments/__skip_pattern/mod.rs | 1 + .../__skip_pattern/without_tests/mod.rs | 1 + .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ .../with_an_assembly/with_arguments/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs new file mode 100644 index 00000000000..b76bdbbbcac --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs @@ -0,0 +1 @@ +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..48ae04277f6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs index e25362a8ba1..0ef030cab7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs @@ -1,2 +1,3 @@ mod __include_ignored; mod __list; +mod __skip_pattern; From 007de54648d64c2cecb3304a73c70754b9db3219 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 22:19:31 +0100 Subject: [PATCH 145/224] wasm-bindgen-test-runner: Added test feature for Outputs no tests to run warning to the invocation with_an_assembly with_arguments --skip PATTERN without_tests. --- .../__skip_pattern/without_tests/mod.rs | 1 + .../outputs_no_tests_to_run_warning_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs index 25ee07c0dc5..c7accad4a1e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs @@ -1 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..f2a1cdcf45d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have(context, "no tests to run!"); +} From 96fd4042267a52a67a422505d1da1df24d382e60 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 22:44:21 +0100 Subject: [PATCH 146/224] wasm-bindgen-test-runner: Moved test features of the invocation with_an_assembly with_arguments --skip PATTERN without_tests into count_1. --- .../with_arguments/__skip_pattern/count_1/mod.rs | 1 + .../__skip_pattern/{ => count_1}/without_tests/mod.rs | 0 .../without_tests/outputs_no_tests_to_run_warning_feature.rs | 0 .../{ => count_1}/without_tests/returns_success_feature.rs | 0 .../with_an_assembly/with_arguments/__skip_pattern/mod.rs | 2 +- 5 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/{ => count_1}/without_tests/mod.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/{ => count_1}/without_tests/outputs_no_tests_to_run_warning_feature.rs (100%) rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/{ => count_1}/without_tests/returns_success_feature.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs new file mode 100644 index 00000000000..b76bdbbbcac --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs @@ -0,0 +1 @@ +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/mod.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/outputs_no_tests_to_run_warning_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/without_tests/returns_success_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs index b76bdbbbcac..b1eab0fd47d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs @@ -1 +1 @@ -mod without_tests; +mod count_1; From 0067d9fec2858c850e3730baadb0cd39996f0244 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:06:33 +0100 Subject: [PATCH 147/224] wasm-bindgen-test-runner: Refactored docopt usage information to allow multiple skip patterns. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index b6db49a5c62..5b9908a93b0 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -71,7 +71,8 @@ const USAGE: &str = " Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [arguments] + wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -81,10 +82,11 @@ Options: Arguments: --include-ignored Include ignored tests in the test run + --skip PATTERN Skip tests whose names match the given pattern + --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests - --skip PATTERN Skip tests whose names match the given pattern Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "; From 46f920a52a393614a7d17d828d6b8a8d97f6644d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:09:54 +0100 Subject: [PATCH 148/224] wasm-bindgen-test-runner: Updated features tests because of docopt usage information refactor to allow multiple skip patterns. --- ...the_wasm_bindgen_test_runner_help_information_feature.rs | 6 ++++-- ...the_wasm_bindgen_test_runner_help_information_feature.rs | 6 ++++-- ...he_wasm_bindgen_test_runner_usage_information_feature.rs | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 75f9f7c55f9..f54f4bbf843 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,7 +13,8 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [arguments] + wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -23,10 +24,11 @@ Options: Arguments: --include-ignored Include ignored tests in the test run + --skip PATTERN Skip tests whose names match the given pattern + --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests - --skip PATTERN Skip tests whose names match the given pattern Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 4b899a591eb..7c91e40caca 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,7 +13,8 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [arguments] + wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -23,10 +24,11 @@ Options: Arguments: --include-ignored Include ignored tests in the test run + --skip PATTERN Skip tests whose names match the given pattern + --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] --ignored Restricts the listing to only consider the ignored tests - --skip PATTERN Skip tests whose names match the given pattern Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs index 46af43940c9..3b43590640b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -11,7 +11,8 @@ fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { then_the_standard_error_should_have( context, r#"Usage: - wasm-bindgen-test-runner [options] [arguments] + wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version"#, ); From 96c12163bcf9aead454b4dde4b887f1c08d2447f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:12:06 +0100 Subject: [PATCH 149/224] wasm-bindgen-test-runner: Added test feature for Return success to the invocation with_an_assembly with_arguments --skip PATTERN count_2 without_tests. --- .../with_arguments/__skip_pattern/count_2/mod.rs | 1 + .../__skip_pattern/count_2/without_tests/mod.rs | 1 + .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/__skip_pattern/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs new file mode 100644 index 00000000000..b76bdbbbcac --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs @@ -0,0 +1 @@ +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..fcc91397b99 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern1 --skip pattern2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs index b1eab0fd47d..3fdace27c77 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs @@ -1 +1,2 @@ mod count_1; +mod count_2; From 43bc556ad5ba9d7c21f631fb3a4083db3262ceef Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:15:04 +0100 Subject: [PATCH 150/224] wasm-bindgen-test-runner: Added test feature for Outputs no tests to run warning to the invocation with_an_assembly with_arguments --skip PATTERN count_2 without_tests. --- .../__skip_pattern/count_2/without_tests/mod.rs | 1 + .../outputs_no_tests_to_run_warning_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs index 25ee07c0dc5..c7accad4a1e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs @@ -1 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..f2a1cdcf45d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have(context, "no tests to run!"); +} From d80d84ed5bf333819299fb580569d1cba605fabe Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:23:37 +0100 Subject: [PATCH 151/224] wasm-bindgen-test-runner: Added test feature Returns success to the invocation with_an_assembly with_arguments --skip-pattern count_1 level_0 without_match_successful_test. --- .../__skip_pattern/count_1/level_0/mod.rs | 1 + .../level_0/without_match_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/__skip_pattern/count_1/mod.rs | 1 + 4 files changed, 18 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs new file mode 100644 index 00000000000..0345daf3b9a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -0,0 +1 @@ +mod without_match_successfull_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..cc9e5d329ec --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs index b76bdbbbcac..8e21652094a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs @@ -1 +1,2 @@ +mod level_0; mod without_tests; From 6442f07712998faa3d95b0a0e2f2c2604279f252 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:25:54 +0100 Subject: [PATCH 152/224] wasm-bindgen-test-runner: Added test feature Returns success to the invocation with_an_assembly with_arguments --skip-pattern count_1 level_0 without_match_successful_test. --- .../with_arguments/__skip_pattern/count_1/level_0/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs index 0345daf3b9a..21dc4cb9446 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -1 +1 @@ -mod without_match_successfull_test; +mod without_match_successful_test; From 7537b5baf5c3b47a9b369ebc70ce617a51448bc0 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:26:36 +0100 Subject: [PATCH 153/224] wasm-bindgen-test-runner: Added test feature Outputs its running 1 test to the invocation with_an_assembly with_arguments --skip-pattern count_1 level_0 without_match_successful_test. --- .../level_0/without_match_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs index 25ee07c0dc5..d89208abea7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs @@ -1 +1,2 @@ +mod outputs_its_running_1_test_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..0ddad7ae514 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} From de6fa4194f124b86a0368c9453dc9063db693d24 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:30:09 +0100 Subject: [PATCH 154/224] wasm-bindgen-test-runner: Added test feature Outputs no error to the invocation with_an_assembly with_arguments --skip-pattern count_1 level_0 without_match_successful_test. --- .../level_0/without_match_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs index d89208abea7..4537804ff7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..c6780b818a9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_error_should_be_empty(context); +} From 1de357964bf5b65498547f601e8553b33ee59cd6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:32:39 +0100 Subject: [PATCH 155/224] wasm-bindgen-test-runner: Added test feature Outputs the assembly test summary to the invocation with_an_assembly with_arguments --skip-pattern count_1 level_0 without_match_successful_test. --- .../without_match_successful_test/mod.rs | 1 + ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs index 4537804ff7d..db4aa282931 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..56a4fbc2ecf --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} From a05190b53c89760f2b20f2fcc4db2d8d0289f851 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 16 Apr 2024 23:34:57 +0100 Subject: [PATCH 156/224] wasm-bindgen-test-runner: Added test feature Outputs the successful test summary to the invocation with_an_assembly with_arguments --skip-pattern count_1 level_0 without_match_successful_test. --- .../without_match_successful_test/mod.rs | 1 + ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs index db4aa282931..e47449a0ae8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..b080c7d1026 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} From e7a5f6bc2ed0a9b581c51d766f683582d62184c7 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 17:49:42 +0100 Subject: [PATCH 157/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_suffix_match_successful_test. --- .../__skip_pattern/count_1/level_0/mod.rs | 1 + .../with_one_suffix_match_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs index 21dc4cb9446..4f253d26067 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -1 +1,2 @@ +mod with_one_suffix_match_successful_test; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..99812870858 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_success_should_have_been_returned(context); +} From 83fe7c88c1fe70d1b1597440ba214cef9ae869b4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:00:33 +0100 Subject: [PATCH 158/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_suffix_match_successful_test. --- .../with_one_suffix_match_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs index 25ee07c0dc5..d89208abea7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs @@ -1 +1,2 @@ +mod outputs_its_running_1_test_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..e4e206b15b8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} From 04805302b6ba78a8d4184e1a4ca4ea045f187744 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:03:11 +0100 Subject: [PATCH 159/224] wasm-bindgen-test-runner: Added feature test Outputs no error to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_suffix_match_successful_test. --- .../with_one_suffix_match_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs index d89208abea7..4537804ff7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..0569fff20a6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_error_should_be_empty(context); +} From 433a1c9ec16a517a74bdee70654f006e1d9028fb Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:07:13 +0100 Subject: [PATCH 160/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_suffix_match_successful_test. --- .../mod.rs | 1 + ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs index 4537804ff7d..db4aa282931 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..24f09eef8df --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} From d1eacd58b0fb2dab48d90d3b7ac051420845aebe Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:26:12 +0100 Subject: [PATCH 161/224] wasm-bindgen-test-runner: Added feature test Outputs no information about the skipped test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_suffix_match_successful_test. --- .../mod.rs | 1 + ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ .../__steps__/standard_output/mod.rs | 2 ++ ...then_the_standard_output_should_not_have.rs | 10 ++++++++++ 4 files changed, 31 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs index db4aa282931..eaa6fdd8f20 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; mod outputs_the_assembly_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..3577ee0652a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs index 9e6f2897755..e26bc7df85e 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs @@ -1,5 +1,7 @@ mod then_the_standard_output_should_be_empty; mod then_the_standard_output_should_have; +mod then_the_standard_output_should_not_have; pub use then_the_standard_output_should_be_empty::*; pub use then_the_standard_output_should_have::*; +pub use then_the_standard_output_should_not_have::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs new file mode 100644 index 00000000000..0eb17902cd3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs @@ -0,0 +1,10 @@ +use crate::__steps__::Context; +use assert_cmd::prelude::*; +use predicates::str; +use predicates::boolean::PredicateBooleanExt; + +pub fn then_the_standard_output_should_not_have(context: Context, content: &str) { + let output = context.into_output().expect("No output was produced"); + + output.assert().stdout(str::contains(content).not()); +} From 5a1182ca8945629087358ac409e8b8d96174ecd3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:33:21 +0100 Subject: [PATCH 162/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_prefix_match_successful_test. --- .../__skip_pattern/count_1/level_0/mod.rs | 1 + .../with_one_prefix_match_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../then_the_standard_output_should_not_have.rs | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs index 4f253d26067..2f34fd63daa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -1,2 +1,3 @@ +mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs new file mode 100644 index 00000000000..4040ccecd14 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_its_running_1_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..8bb14773e37 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pa", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs index 0eb17902cd3..fb218fae7cc 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs @@ -1,7 +1,7 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; -use predicates::str; use predicates::boolean::PredicateBooleanExt; +use predicates::str; pub fn then_the_standard_output_should_not_have(context: Context, content: &str) { let output = context.into_output().expect("No output was produced"); From c2dc1ab071a27d543d7a2ac95c7c4c4674fdb78c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:36:06 +0100 Subject: [PATCH 163/224] wasm-bindgen-test-runner: Added feature test Outputs no error to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_prefix_match_successful_test. --- .../with_one_prefix_match_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs index 4040ccecd14..db2f901844b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs @@ -1 +1,2 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..cfa83173a66 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pa", + ); + then_the_standard_error_should_be_empty(context); +} From 5bfabee9eb33fa38a080a49b03656fe8de5a24b6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:46:53 +0100 Subject: [PATCH 164/224] wasm-bindgen-test-runner: Added feature test Outputs no information about the skipped test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_prefix_match_successful_test. --- .../mod.rs | 1 + ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs index db2f901844b..3fc35c9b27a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..933813c2045 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pa", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} From fe6ffdfd558cce4900d34fba39d7dafa6aa84652 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:49:10 +0100 Subject: [PATCH 165/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_prefix_match_successful_test. --- .../mod.rs | 1 + ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs index 3fc35c9b27a..b174423749f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..286e7ab3359 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pa", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} From 7a8218dbb5363f19722dba8df0838dcdd1742819 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:54:47 +0100 Subject: [PATCH 166/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_prefix_match_successful_test. --- .../with_one_prefix_match_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs index b174423749f..eaa6fdd8f20 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs @@ -2,3 +2,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_the_skipped_test_feature; mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..cf2f8cd8d93 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pa", + ); + then_success_should_have_been_returned(context); +} From 0b4e0247994fa011b4d1036121cd3b449d9a6551 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 18:58:50 +0100 Subject: [PATCH 167/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_partial_match_successful_test. --- .../__skip_pattern/count_1/level_0/mod.rs | 1 + .../with_one_partial_match_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs index 2f34fd63daa..c311474cf36 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -1,3 +1,4 @@ +mod with_one_partial_match_successful_test; mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs new file mode 100644 index 00000000000..4040ccecd14 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_its_running_1_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..7f323080242 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip as", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} From fedb892b1b02bf5b57774f6fc6703466cc8e3d17 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:01:55 +0100 Subject: [PATCH 168/224] wasm-bindgen-test-runner: Added feature test Outputs no error to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_partial_match_successful_test. --- .../with_one_partial_match_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs index 4040ccecd14..db2f901844b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs @@ -1 +1,2 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..d0df9d19f70 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip as", + ); + then_the_standard_error_should_be_empty(context); +} From a559e8e19e6c098cb01f98959ba5493c79b3931a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:04:35 +0100 Subject: [PATCH 169/224] wasm-bindgen-test-runner: Added feature test Outputs no information about the skipped test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_partial_match_successful_test. --- .../mod.rs | 1 + ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs index db2f901844b..3fc35c9b27a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..7a1e94e6b07 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip as", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} From 4a1698f420f866023e9a2b53f10a276ba041b3eb Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:23:48 +0100 Subject: [PATCH 170/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_partial_match_successful_test. --- .../mod.rs | 1 + ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs index 3fc35c9b27a..b174423749f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..fed188682ae --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip as", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} From b97a5710bc4c1c9088414774a8ba2d9343ec839c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:27:39 +0100 Subject: [PATCH 171/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_partial_match_successful_test. --- .../with_one_partial_match_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs index b174423749f..eaa6fdd8f20 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs @@ -2,3 +2,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_the_skipped_test_feature; mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..99837d8814d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip as", + ); + then_success_should_have_been_returned(context); +} From 0fbb5bd655acc6757db87142f38ce7d7962e229f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:33:02 +0100 Subject: [PATCH 172/224] wasm-bindgen-test-runner: Added feature test Outputs its running 1 test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_full_match_successful_test. --- .../__skip_pattern/count_1/level_0/mod.rs | 1 + .../with_one_full_match_successful_test/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs index c311474cf36..9532453dcad 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -1,3 +1,4 @@ +mod with_one_full_match_successful_test; mod with_one_partial_match_successful_test; mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs new file mode 100644 index 00000000000..4040ccecd14 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs @@ -0,0 +1 @@ +mod outputs_its_running_1_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..b3050f2f66f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} From 5422439e14a99660edf4092979540a56f11cfa47 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:45:54 +0100 Subject: [PATCH 173/224] wasm-bindgen-test-runner: Added feature test Outputs no error to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_full_match_successful_test. --- .../with_one_full_match_successful_test/mod.rs | 1 + .../outputs_no_error_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs index 4040ccecd14..db2f901844b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs @@ -1 +1,2 @@ mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..858a015acd6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_error_should_be_empty(context); +} From 006fcea0f46eb39f18897fa27ff4a8b59246b078 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:47:56 +0100 Subject: [PATCH 174/224] wasm-bindgen-test-runner: Added feature test Outputs no information about the skipped test to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_full_match_successful_test. --- .../with_one_full_match_successful_test/mod.rs | 1 + ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs index db2f901844b..3fc35c9b27a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs @@ -1,2 +1,3 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..3d12cb5b3a8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} From 5c40364b8a7b3a56084482337649652187bad432 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:50:07 +0100 Subject: [PATCH 175/224] wasm-bindgen-test-runner: Added feature test Outputs the assembly test summary to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_full_match_successful_test. --- .../with_one_full_match_successful_test/mod.rs | 1 + ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs index 3fc35c9b27a..b174423749f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs @@ -1,3 +1,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..2d43755243c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} From 5afd9de150c041098d4f417d8d7714ce0a4a90af Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 19:54:01 +0100 Subject: [PATCH 176/224] wasm-bindgen-test-runner: Added feature test Returns success to the invocation with_an_assembly with_arguments --skip pattern level_0 with_one_full_match_successful_test. --- .../with_one_full_match_successful_test/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs index b174423749f..eaa6fdd8f20 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs @@ -2,3 +2,4 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_the_skipped_test_feature; mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..420d0925d42 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_success_should_have_been_returned(context); +} From 9fed3b3ea50123835742d23ff29523bbc2e74e07 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 20:04:36 +0100 Subject: [PATCH 177/224] wasm-bindgen-test-runner: Added features tests to the invocation with_an_assembly with_arguments --skip PATTERN count_1 level_0 with_two_partial_match_successful_tests. --- .../__skip_pattern/count_1/level_0/mod.rs | 1 + .../mod.rs | 6 ++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...mation_about_the_skipped_test_1_feature.rs | 18 +++++++++++ ...mation_about_the_skipped_test_2_feature.rs | 18 +++++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 +++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../__steps__/assembly/mod.rs | 2 ++ ...s_an_assembly_with_two_successful_tests.rs | 32 +++++++++++++++++++ .../assembly/with_two_successful_tests/mod.rs | 3 ++ 11 files changed, 143 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs index 9532453dcad..60167028c54 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs @@ -2,4 +2,5 @@ mod with_one_full_match_successful_test; mod with_one_partial_match_successful_test; mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; +mod with_two_partial_match_successful_tests; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..bea830007a8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..557eccd955b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..9c7f3161a33 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..556337aad1e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..7936c3579d8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..d828db2b31d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 82d5014d2bf..fe6804e6949 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -6,6 +6,7 @@ mod with_one_ignored_with_reason_test; mod with_one_successful_and_one_failing_tests; mod with_one_successful_and_one_ignored_tests; mod with_one_successful_test; +mod with_two_successful_tests; pub use assembly_builder::*; pub use given_there_is_an_assembly_with_one_failing_test::*; @@ -15,3 +16,4 @@ pub use with_one_ignored_with_reason_test::*; pub use with_one_successful_and_one_failing_tests::*; pub use with_one_successful_and_one_ignored_tests::*; pub use with_one_successful_test::*; +pub use with_two_successful_tests::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs new file mode 100644 index 00000000000..aa7e9f16003 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs @@ -0,0 +1,32 @@ +use super::super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_two_successful_tests") + .file( + "src/lib.rs", + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +#[wasm_bindgen_test] +fn pass_1() { + assert_eq!(1, 1); +} + +#[cfg(test)] +#[wasm_bindgen_test] +fn pass_2() { + assert_eq!(1, 1); +} + "#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_two_successful_tests(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs new file mode 100644 index 00000000000..93a6261dbee --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs @@ -0,0 +1,3 @@ +mod given_there_is_an_assembly_with_two_successful_tests; + +pub use given_there_is_an_assembly_with_two_successful_tests::*; From 63666512005ca07543a1e0b58c9b1f32d4c6d787 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 20:28:43 +0100 Subject: [PATCH 178/224] wasm-bindgen-test-runner: Added features tests to the invocation with_an_assembly with_arguments --skip PATTERN count_1 level_1. --- .../__skip_pattern/count_1/level_1/mod.rs | 6 ++++ .../mod.rs | 5 +++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...ormation_about_the_skipped_test_feature.rs | 18 ++++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 ++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../mod.rs | 5 +++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...ormation_about_the_skipped_test_feature.rs | 18 ++++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 ++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../mod.rs | 5 +++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...ormation_about_the_skipped_test_feature.rs | 18 ++++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 ++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../mod.rs | 5 +++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...ormation_about_the_skipped_test_feature.rs | 18 ++++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 ++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../mod.rs | 6 ++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...mation_about_the_skipped_test_1_feature.rs | 18 ++++++++++ ...mation_about_the_skipped_test_2_feature.rs | 18 ++++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 ++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../without_match_successful_test/mod.rs | 5 +++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++ .../outputs_no_error_feature.rs | 15 +++++++++ ...tputs_the_assembly_test_summary_feature.rs | 18 ++++++++++ ...uts_the_successful_test_summary_feature.rs | 18 ++++++++++ .../returns_success_feature.rs | 15 +++++++++ .../__skip_pattern/count_1/mod.rs | 1 + ...embly_with_two_successful_level_1_tests.rs | 33 +++++++++++++++++++ .../assembly/with_two_successful_tests/mod.rs | 2 ++ 41 files changed, 577 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs new file mode 100644 index 00000000000..60167028c54 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs @@ -0,0 +1,6 @@ +mod with_one_full_match_successful_test; +mod with_one_partial_match_successful_test; +mod with_one_prefix_match_successful_test; +mod with_one_suffix_match_successful_test; +mod with_two_partial_match_successful_tests; +mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..23dec4e85cd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1::pass", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..51d14fd2ae4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1::pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..bf178192139 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1::pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..8c283ec66d9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1::pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..3562ce8c936 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1::pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..1606f655551 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip 1::", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..687353eec0a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip 1::", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..0def2d0a136 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip 1::", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..24cf0f724b5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip 1::", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..57367770a4e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip 1::", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..61ae21245d2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..483431c4118 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..3d8e5252500 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..1f78973395d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..8130fc571c2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip level_1", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..571d43d6ba0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..5ea875742d3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..4fe3e690b1c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..4f5984d5b26 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..f22fffe2983 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip ss", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..65a91ef6e3a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..63858ff58f6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..fd738e50112 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..9f637048a77 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..e03c2088805 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..ecf09be8c11 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..d21c1483c27 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..962c8e78864 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..f84cd29644b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..bb954bfd2e9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_level_1_test::level_1::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..71df856cf13 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs index 8e21652094a..331a0003e42 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs @@ -1,2 +1,3 @@ mod level_0; +mod level_1; mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs new file mode 100644 index 00000000000..e4249dbff34 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs @@ -0,0 +1,33 @@ +use super::super::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::path::PathBuf; + +lazy_static! { + static ref ASSEMBLY: PathBuf = + AssemblyBuilder::new("assembly_with_two_successful_level_1_tests") + .file( + "src/lib.rs", + r#"#[cfg(test)] +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass_1() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + fn pass_2() { + assert_eq!(1, 1); + } +} +"#, + ) + .build(); +} + +pub fn given_there_is_an_assembly_with_two_successful_level_1_tests(context: &mut Context) { + context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs index 93a6261dbee..ec713148ddc 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs @@ -1,3 +1,5 @@ +mod given_there_is_an_assembly_with_two_successful_level_1_tests; mod given_there_is_an_assembly_with_two_successful_tests; +pub use given_there_is_an_assembly_with_two_successful_level_1_tests::*; pub use given_there_is_an_assembly_with_two_successful_tests::*; From 6b25e805785ceaa730477123912569f94ada0d01 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 20:36:40 +0100 Subject: [PATCH 179/224] wasm-bindgen-test-runner: Added features tests to the invocation with_an_assembly with_arguments --skip PATTERN count_2 level_0 with_two_partial_match_successful_tests. --- .../__skip_pattern/count_2/level_0/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 18 ++++++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_pattern/count_2/mod.rs | 1 + 9 files changed, 107 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..380ea179a0f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..34bd58d8a9b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip pass_2", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..2e37c8e1f3f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..3d402835441 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..0980fd22b8e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..b0e05d0d56b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip pass_2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs index b76bdbbbcac..8e21652094a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs @@ -1 +1,2 @@ +mod level_0; mod without_tests; From 812e4fbe1f30f88ccc880b44c3d82fe9c3920ebf Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 20:43:51 +0100 Subject: [PATCH 180/224] wasm-bindgen-test-runner: Added features tests to the invocation with_an_assembly with_arguments --skip PATTERN count_2 level_1 with_two_partial_match_successful_tests. --- .../__skip_pattern/count_2/level_1/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 18 ++++++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_pattern/count_2/mod.rs | 1 + 9 files changed, 107 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..b593e63f98f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip level_1", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..de23478876b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip level_1", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..3bc17c7251d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip level_1", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..f4b5db24135 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip level_1", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..2f16a8d4685 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip level_1", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..c9d82ac0b90 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pass_1 --skip level_1", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs index 8e21652094a..331a0003e42 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs @@ -1,2 +1,3 @@ mod level_0; +mod level_1; mod without_tests; From e80c5f02a9121c4b0e1e0c25814f42d8a81542c8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 21:00:19 +0100 Subject: [PATCH 181/224] wasm-bindgen-test-runner: Added features tests to the invocation with_an_assembly with_arguments --skip PATTERN count_3. --- .../outputs_its_running_2_tests_feature.rs | 2 +- ...rmation_about_the_skipped_test_1_feature.rs | 2 +- ...rmation_about_the_skipped_test_2_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...rmation_about_the_skipped_test_1_feature.rs | 2 +- ...rmation_about_the_skipped_test_2_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...rmation_about_the_skipped_test_1_feature.rs | 2 +- ...rmation_about_the_skipped_test_2_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...rmation_about_the_skipped_test_1_feature.rs | 2 +- ...rmation_about_the_skipped_test_2_feature.rs | 2 +- .../outputs_no_tests_to_run_warning_feature.rs | 2 +- .../__skip_pattern/count_3/level_0/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 18 ++++++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_pattern/count_3/level_1/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 18 ++++++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_pattern/count_3/mod.rs | 3 +++ .../count_3/without_tests/mod.rs | 2 ++ .../outputs_no_tests_to_run_warning_feature.rs | 15 +++++++++++++++ .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/__skip_pattern/mod.rs | 1 + 34 files changed, 261 insertions(+), 13 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index bea830007a8..63e2af0f332 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_its_running_1_test_feature() { +fn outputs_its_running_2_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_two_successful_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 9c7f3161a33..d789cc16998 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_1", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 556337aad1e..40f111e920d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 65a91ef6e3a..aa0fa5ca80e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_its_running_1_test_feature() { +fn outputs_its_running_2_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index fd738e50112..e4d645b90d5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_1", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 9f637048a77..19d6f1fb5d1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 380ea179a0f..8c2fe238e86 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_its_running_1_test_feature() { +fn outputs_its_running_2_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_two_successful_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 2e37c8e1f3f..7a6c667e498 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_1", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 3d402835441..42d8850017e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index b593e63f98f..f9931f499e7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_its_running_1_test_feature() { +fn outputs_its_running_2_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 3bc17c7251d..4e500e977e9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_1", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index f4b5db24135..e13b5a4e6f0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -13,6 +13,6 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { ); then_the_standard_output_should_not_have( context, - "test assembly_with_one_successful_test::pass_1", + "pass_2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs index f2a1cdcf45d..47ed8534ee8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -9,7 +9,7 @@ fn outputs_no_tests_to_run_warning_feature() { given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( &mut context, - "--skip pattern", + "--skip pattern1 --skip pattern2", ); then_the_standard_output_should_have(context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..451d71ff1ca --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..b188bc3e795 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..f2cf804d187 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_not_have( + context, + "pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..8f827d46c3e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_not_have( + context, + "pass_2", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..f29473981af --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..b2164127b33 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..3cd52d71a43 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..48753cef83e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..17ccdd73ad1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_not_have( + context, + "pass_1", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..453ea7724cf --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_not_have( + context, + "pass_2", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..37da5c888f0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..bbcd6a41b98 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip pass_2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs new file mode 100644 index 00000000000..331a0003e42 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs @@ -0,0 +1,3 @@ +mod level_0; +mod level_1; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs new file mode 100644 index 00000000000..c7accad4a1e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs @@ -0,0 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..46f356531eb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern1 --skip pattern2 --skip pattern3", + ); + then_the_standard_output_should_have(context, "no tests to run!"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..ce47c2a7023 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip pattern1 --skip pattern2 --skip pattern3", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs index 3fdace27c77..4436fd24ae0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs @@ -1,2 +1,3 @@ mod count_1; mod count_2; +mod count_3; From cab0a552f5c41e6de7e9bcf43b33fcfc2c69eb1d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 21:26:56 +0100 Subject: [PATCH 182/224] wasm-bindgen-test-runner: Fixed some formatting issues. --- ...utputs_no_information_about_the_skipped_test_1_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_2_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_1_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_2_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_1_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_2_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_1_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_2_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_1_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_2_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_1_feature.rs | 5 +---- ...utputs_no_information_about_the_skipped_test_2_feature.rs | 5 +---- 12 files changed, 12 insertions(+), 48 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index d789cc16998..91e91fff17c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have( - context, - "pass_1", - ); + then_the_standard_output_should_not_have(context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 40f111e920d..4089f8afbd0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have( - context, - "pass_2", - ); + then_the_standard_output_should_not_have(context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index e4d645b90d5..a0f8e9256aa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have( - context, - "pass_1", - ); + then_the_standard_output_should_not_have(context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 19d6f1fb5d1..89bba929828 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have( - context, - "pass_2", - ); + then_the_standard_output_should_not_have(context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 7a6c667e498..0263e158cb0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have( - context, - "pass_1", - ); + then_the_standard_output_should_not_have(context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 42d8850017e..9c8762ea695 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have( - context, - "pass_2", - ); + then_the_standard_output_should_not_have(context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 4e500e977e9..a0ac999bf8e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_the_standard_output_should_not_have( - context, - "pass_1", - ); + then_the_standard_output_should_not_have(context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index e13b5a4e6f0..a6d3add9499 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_the_standard_output_should_not_have( - context, - "pass_2", - ); + then_the_standard_output_should_not_have(context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index f2cf804d187..09646ce3250 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have( - context, - "pass_1", - ); + then_the_standard_output_should_not_have(context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 8f827d46c3e..26daa7df1a8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have( - context, - "pass_2", - ); + then_the_standard_output_should_not_have(context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 17ccdd73ad1..c8bbbe17caa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have( - context, - "pass_1", - ); + then_the_standard_output_should_not_have(context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 453ea7724cf..af3e78b0610 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,8 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have( - context, - "pass_2", - ); + then_the_standard_output_should_not_have(context, "pass_2"); } From b7cf07ae4545057a3d6924a77e5bedf93ce684e1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 22:01:52 +0100 Subject: [PATCH 183/224] wasm-bindgen-test-runner: Added features tests to the invocation with_an_assembly with_arguments --skip=PATTERN. --- .../__skip_eq_pattern/count_1/level_0/mod.rs | 6 ++++++ .../with_one_full_match_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../without_match_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_1/level_1/mod.rs | 6 ++++++ .../with_one_full_match_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...formation_about_the_skipped_test_feature.rs | 18 ++++++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../without_match_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_1/mod.rs | 3 +++ .../count_1/without_tests/mod.rs | 2 ++ .../outputs_no_tests_to_run_warning_feature.rs | 15 +++++++++++++++ .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_2/level_0/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_2/level_1/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_2/mod.rs | 3 +++ .../count_2/without_tests/mod.rs | 2 ++ .../outputs_no_tests_to_run_warning_feature.rs | 15 +++++++++++++++ .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_3/level_0/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_3/level_1/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_1_feature.rs | 15 +++++++++++++++ ...rmation_about_the_skipped_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../__skip_eq_pattern/count_3/mod.rs | 3 +++ .../count_3/without_tests/mod.rs | 2 ++ .../outputs_no_tests_to_run_warning_feature.rs | 15 +++++++++++++++ .../without_tests/returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/__skip_eq_pattern/mod.rs | 3 +++ .../with_an_assembly/with_arguments/mod.rs | 1 + 122 files changed, 1579 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs new file mode 100644 index 00000000000..60167028c54 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs @@ -0,0 +1,6 @@ +mod with_one_full_match_successful_test; +mod with_one_partial_match_successful_test; +mod with_one_prefix_match_successful_test; +mod with_one_suffix_match_successful_test; +mod with_two_partial_match_successful_tests; +mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..6e89f417821 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..f8c3f1359ba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..55d495c1e84 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..31831089a4d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..e1a0218c57c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..b8eefb0456f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=as", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..6a887440d32 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=as", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..da7b21cb810 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=as", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..ab89a5b3c82 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=as", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..b67719be764 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=as", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..b3b4a896eed --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pa", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..8ac2896abd9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pa", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..78b11338789 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pa", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..ab6fdcc0162 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pa", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..d73ac18c10f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pa", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..961c6c4c959 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..3c747f803cd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..8476e2e8882 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..758122f10bd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..8c0c9cdc246 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..47b0b5e866a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..73f12ea965d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..c7a105c174b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..43697c928fb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..91d4075d9b7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..597ee0d8d0e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..6382d549a11 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..919fa480644 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..3f9b08853c8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..876c531d785 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..d5f1e20b613 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs new file mode 100644 index 00000000000..60167028c54 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs @@ -0,0 +1,6 @@ +mod with_one_full_match_successful_test; +mod with_one_partial_match_successful_test; +mod with_one_prefix_match_successful_test; +mod with_one_suffix_match_successful_test; +mod with_two_partial_match_successful_tests; +mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..70c9a5ec79d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1::pass", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..064df12f7d6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1::pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..cd32a8a2f0d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1::pass", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..92fa77ef990 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1::pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..ee7614619d6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1::pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..d43a433fa9f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=1::", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..9f5e0580c8c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=1::", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..4144cb73e31 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=1::", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..dad7efceb41 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=1::", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..c9cdabe68a9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=1::", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..413b51a7f02 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..0bcf95a3478 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..a3a6f484ef0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..9a05aa3b72f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..c8122581680 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=level_1", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs new file mode 100644 index 00000000000..eaa6fdd8f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..cb144ae2455 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..10932dab026 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs new file mode 100644 index 00000000000..525825d3c49 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..6f643d4c777 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..ecb86eb6f36 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=ss", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..e44b2627efe --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..65d883533d1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..8114ad0ff73 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..37234a650f0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..3d68f977867 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..fbb9bca4f51 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..0ce9fa95fe1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..a9edcf6da92 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..33baf9f043e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..aea87a9c326 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_level_1_test::level_1::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..5b3d1d94c5a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs new file mode 100644 index 00000000000..331a0003e42 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs @@ -0,0 +1,3 @@ +mod level_0; +mod level_1; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/mod.rs new file mode 100644 index 00000000000..c7accad4a1e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/mod.rs @@ -0,0 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..b010a40805f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_the_standard_output_should_have(context, "no tests to run!"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..91d3b2be224 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..7797afb2296 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..010fe65a852 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=pass_2", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..aa76ea77cd2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..d94d40df56e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..a8c462a7f9a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..4b7b4ab65cb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=pass_2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..38f70eb82ca --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=level_1", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..617da508ecb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=level_1", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..e2d6ad49cc8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=level_1", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..8970f3b49b5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=level_1", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..2e00e1db472 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=level_1", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..b00704b9217 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pass_1 --skip=level_1", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs new file mode 100644 index 00000000000..331a0003e42 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs @@ -0,0 +1,3 @@ +mod level_0; +mod level_1; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs new file mode 100644 index 00000000000..c7accad4a1e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs @@ -0,0 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..0573718e25c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern1 --skip=pattern2", + ); + then_the_standard_output_should_have(context, "no tests to run!"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..a9ddfdc8480 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern1 --skip=pattern2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..47bda63e80b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=fail --skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..4f0979d40d6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=fail --skip=pass_1 --skip=pass_2", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..05cbe2dee44 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=fail --skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..68316029df3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=fail --skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..e3c06c898f0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=fail --skip=pass_1 --skip=pass_2", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..bc129df501c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=fail --skip=pass_1 --skip=pass_2", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs new file mode 100644 index 00000000000..593a4002418 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs @@ -0,0 +1 @@ +mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..20549276099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_1_feature; +mod outputs_no_information_about_the_skipped_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..c0cee64766c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip level_1", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..455ec31700f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip level_1", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs new file mode 100644 index 00000000000..1ba7f11e7a3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip level_1", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs new file mode 100644 index 00000000000..6c79b5d8731 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_the_skipped_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip level_1", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..c15c8946aff --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip level_1", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..7a251f35bef --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_level_1_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip fail --skip pass_1 --skip level_1", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs new file mode 100644 index 00000000000..331a0003e42 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs @@ -0,0 +1,3 @@ +mod level_0; +mod level_1; +mod without_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs new file mode 100644 index 00000000000..c7accad4a1e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs @@ -0,0 +1,2 @@ +mod outputs_no_tests_to_run_warning_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs new file mode 100644 index 00000000000..5f9834b5e17 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_tests_to_run_warning_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern1 --skip=pattern2 --skip=pattern3", + ); + then_the_standard_output_should_have(context, "no tests to run!"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs new file mode 100644 index 00000000000..2944c838be9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_without_anything; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_without_anything(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "--skip=pattern1 --skip=pattern2 --skip=pattern3", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs new file mode 100644 index 00000000000..4436fd24ae0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs @@ -0,0 +1,3 @@ +mod count_1; +mod count_2; +mod count_3; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs index 0ef030cab7d..8296b1545ea 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs @@ -1,3 +1,4 @@ mod __include_ignored; mod __list; +mod __skip_eq_pattern; mod __skip_pattern; From 689673949b0c27cced86d235f9fcc90b6089f406 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 23:31:32 +0100 Subject: [PATCH 184/224] wasm-bindgen-test-runner: Reinstated support for the argument TESTNAME aka as filter. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 5b9908a93b0..8a05c324a3e 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -71,7 +71,7 @@ const USAGE: &str = " Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -81,6 +81,7 @@ Options: -V, --version Print the version number of wasm-bindgen-test-runner Arguments: + TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern From ca4af0d1aa9dd5880c2620e9194739217b0b0f20 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 23:32:58 +0100 Subject: [PATCH 185/224] wasm-bindgen-test-runner: Updated test features because support for the argument TESTNAME aka as filter was reinstated. --- ...ts_the_wasm_bindgen_test_runner_help_information_feature.rs | 3 ++- ...ts_the_wasm_bindgen_test_runner_help_information_feature.rs | 3 ++- ...s_the_wasm_bindgen_test_runner_usage_information_feature.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index f54f4bbf843..538ad3f2d0c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,7 +13,7 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -23,6 +23,7 @@ Options: -V, --version Print the version number of wasm-bindgen-test-runner Arguments: + TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 7c91e40caca..d816976b0a8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,7 +13,7 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -23,6 +23,7 @@ Options: -V, --version Print the version number of wasm-bindgen-test-runner Arguments: + TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs index 3b43590640b..eda1ec47086 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -11,7 +11,7 @@ fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { then_the_standard_error_should_have( context, r#"Usage: - wasm-bindgen-test-runner [options] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version"#, From ef8c753d3371e399b19c46a331303c1615f8a871 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 23:34:04 +0100 Subject: [PATCH 186/224] wasm-bindgen-test-runner: Added feature tests for the invocation with_an_assembly with_arguments TESTNAME default without_match_successful_test. --- .../with_an_assembly/with_arguments/mod.rs | 1 + .../with_arguments/testname/default/mod.rs | 1 + .../without_match_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/testname/mod.rs | 1 + 9 files changed, 89 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs index 8296b1545ea..1f486f736cb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs @@ -2,3 +2,4 @@ mod __include_ignored; mod __list; mod __skip_eq_pattern; mod __skip_pattern; +mod testname; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs new file mode 100644 index 00000000000..21dc4cb9446 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs @@ -0,0 +1 @@ +mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..febffab4b76 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "cool", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..2469be5352c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "cool", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..b36140f48d0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "cool", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..78f496175d4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "cool", + ); + then_the_standard_output_should_not_have( + context, + "test assembly_with_one_successful_test::pass", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..eeb6cc86510 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "cool", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs new file mode 100644 index 00000000000..fe6fa17edae --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs @@ -0,0 +1 @@ +mod default; From 97c1ffad11e5b1c595d004635fa565848753021d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 17 Apr 2024 23:49:18 +0100 Subject: [PATCH 187/224] wasm-bindgen-test-runner: Added feature tests for the invocation with_an_assembly with_arguments TESTNAME default with_two_partial_match_successful_tests. --- .../with_arguments/testname/default/mod.rs | 1 + .../mod.rs | 6 ++++++ .../outputs_its_running_2_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...ts_the_successful_test_1_summary_feature.rs | 15 +++++++++++++++ ...ts_the_successful_test_2_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../without_match_successful_test/mod.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs} | 2 +- 10 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/{outputs_the_successful_test_summary_feature.rs => outputs_no_information_about_the_skipped_test_feature.rs} (91%) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs index 21dc4cb9446..a9c65ed4ce4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs @@ -1 +1,2 @@ +mod with_two_partial_match_successful_tests; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs new file mode 100644 index 00000000000..914c3b09505 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_2_tests_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_1_summary_feature; +mod outputs_the_successful_test_2_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs new file mode 100644 index 00000000000..893313d2371 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_2_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have(context, "running 2 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs new file mode 100644 index 00000000000..0e1dc06ebb8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..0275b1dda4e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs new file mode 100644 index 00000000000..7b1db097cf5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_1_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have(context, "pass_1 ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs new file mode 100644 index 00000000000..275d6a0a18a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_2_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have(context, "pass_2 ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs new file mode 100644 index 00000000000..01a96af14a6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs index e47449a0ae8..eaa6fdd8f20 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs @@ -1,5 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_no_information_about_the_skipped_test_feature; mod outputs_the_assembly_test_summary_feature; -mod outputs_the_successful_test_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs similarity index 91% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 78f496175d4..62c65c26d85 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -4,7 +4,7 @@ use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is use crate::__steps__::Context; #[test] -fn outputs_the_successful_test_summary_feature() { +fn outputs_no_information_about_the_skipped_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( From 5e92d129b9ac972fbd533d93968c18c1545fca58 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 18 Apr 2024 20:31:52 +0100 Subject: [PATCH 188/224] wasm-bindgen-test-runner: Added feature tests for the invocation with_an_assembly with_arguments TESTNAME default with_one_suffix_match_successful_test. --- .../with_arguments/testname/default/mod.rs | 1 + .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ 7 files changed, 84 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs index a9c65ed4ce4..fa806935732 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs @@ -1,2 +1,3 @@ +mod with_one_suffix_match_successful_test; mod with_two_partial_match_successful_tests; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs new file mode 100644 index 00000000000..4028168d673 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_successful_test_summary_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..bacf65e4f20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "ss", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..0de17785e61 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "ss", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..263503c678b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "ss", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..60538fb9223 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "ss", + ); + then_the_standard_output_should_have(context, "pass ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..58bf7d51bc0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "ss", + ); + then_success_should_have_been_returned(context); +} From 95fc10df2aa65b20f41df4a7f6fbc95ff38f75c8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 18 Apr 2024 20:42:19 +0100 Subject: [PATCH 189/224] wasm-bindgen-test-runner: Added feature tests for the invocation with_an_assembly with_arguments TESTNAME default with_one_prefix_match_successful_test. --- .../with_arguments/testname/default/mod.rs | 1 + .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 2 +- 8 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs index fa806935732..cf235cd567f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs @@ -1,3 +1,4 @@ +mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; mod with_two_partial_match_successful_tests; mod without_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..5a2a5912b9a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pa", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..452228f7b37 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pa", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..0e8a536ee7e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pa", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..846de77b043 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pa", + ); + then_the_standard_output_should_have(context, "pass ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..74617d6d331 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pa", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs index 4028168d673..e47449a0ae8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs @@ -1,5 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; -mod outputs_the_successful_test_summary_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; mod returns_success_feature; From 0927878ce2af0589d8ff4d9f333ec7ce540de80d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 18 Apr 2024 20:52:11 +0100 Subject: [PATCH 190/224] wasm-bindgen-test-runner: Added feature tests for the invocation with_an_assembly with_arguments TESTNAME default with_one_partial_match_successful_test. --- .../with_arguments/testname/default/mod.rs | 1 + .../mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ 7 files changed, 84 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs index cf235cd567f..c4f4f9e07a9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs @@ -1,3 +1,4 @@ +mod with_one_partial_match_successful_test; mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; mod with_two_partial_match_successful_tests; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs new file mode 100644 index 00000000000..4028168d673 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_successful_test_summary_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..5836ba13bee --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "as", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..6a2873ee545 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "as", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..96e07246fd0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "as", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..0690354e5ac --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "as", + ); + then_the_standard_output_should_have(context, "pass ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..cd8fc1d3212 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "as", + ); + then_success_should_have_been_returned(context); +} From e68a40446fc3945675d815f69457f417d388058c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 18 Apr 2024 20:58:38 +0100 Subject: [PATCH 191/224] wasm-bindgen-test-runner: Added feature tests for the invocation with_an_assembly with_arguments TESTNAME default with_one_full_match_successful_test. --- .../with_arguments/testname/default/mod.rs | 1 + .../with_one_full_match_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...puts_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ .../mod.rs | 2 +- 8 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs index c4f4f9e07a9..60167028c54 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs @@ -1,3 +1,4 @@ +mod with_one_full_match_successful_test; mod with_one_partial_match_successful_test; mod with_one_prefix_match_successful_test; mod with_one_suffix_match_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..de31b62c07b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..4f91c351cfe --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..7412a21e46c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..2a1beb5dbe9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_the_standard_output_should_have(context, "pass ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..194e6147639 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs index 4028168d673..e47449a0ae8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs @@ -1,5 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; -mod outputs_the_successful_test_summary_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; mod returns_success_feature; From 5877a71a90a0b7c01cfa4bde1507d437c1fffc3f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 22:15:22 +0100 Subject: [PATCH 192/224] wasm-bindgen-test-runnner: Updated the cli to accept TESTNAME --nocapture --exact. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 8a05c324a3e..37bae8a5dd4 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -71,7 +71,8 @@ const USAGE: &str = " Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -84,6 +85,8 @@ Arguments: TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern + --nocapture Disables the tests output capture + --exact Run only the test with the exact name --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] @@ -95,10 +98,12 @@ Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-t #[derive(Debug, Deserialize)] struct Args { arg_input: Option, + flag_exact: bool, flag_format: Option, flag_include_ignored: bool, flag_ignored: bool, flag_list: bool, + flag_nocapture: bool, flag_pattern: Vec, flag_version: bool, } From af197d4e6cd2200035bfc60e1434fc513f09be6c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 22:16:02 +0100 Subject: [PATCH 193/224] wasm-bindgen-test-runnner: Updated the runtime to accept the arguments --nocapture --exact. --- crates/test/src/rt/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs index c1be2904303..55183f07edd 100644 --- a/crates/test/src/rt/mod.rs +++ b/crates/test/src/rt/mod.rs @@ -316,6 +316,8 @@ impl Context { ); } else if let Some(arg) = arg.strip_prefix("--skip=") { skip.push(arg.to_owned()) + } else if arg == "--nocapture" { + } else if arg == "--exact" { } else if arg.starts_with('-') { panic!("flag {} not supported", arg); } else if filter.is_some() { From f9358413697f03e23a30b12768d0f7e1cfbaf96b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 22:17:28 +0100 Subject: [PATCH 194/224] wasm-bindgen-test-runner: Updated test features that target help and usage info because of cli now accepting --nocapture --exact. --- ..._the_wasm_bindgen_test_runner_help_information_feature.rs | 5 ++++- ..._the_wasm_bindgen_test_runner_help_information_feature.rs | 5 ++++- ...the_wasm_bindgen_test_runner_usage_information_feature.rs | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 538ad3f2d0c..84f9241ad49 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,7 +13,8 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -26,6 +27,8 @@ Arguments: TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern + --nocapture Disables the tests output capture + --exact Run only the test with the exact name --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index d816976b0a8..9320afc61d1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,7 +13,8 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -26,6 +27,8 @@ Arguments: TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern + --nocapture Disables the tests output capture + --exact Run only the test with the exact name --list List all tests that would be run --format FORMAT Format of the tests listing output, valid values are [terse, json] diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs index eda1ec47086..5d1418805a5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -11,7 +11,8 @@ fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { then_the_standard_error_should_have( context, r#"Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] + wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version"#, From 8860d098257c62a79e4f7c298b078ff7a0528468 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 22:18:56 +0100 Subject: [PATCH 195/224] wasm-bindgen-test-runner: Added test feature Returns success to the invocation with_an_assembly with_arguments TESTNAME --nocapture --exact with successful_test_match_1_of_2. --- .../testname/__nocapture/__exact/mod.rs | 1 + .../with_successful_test_match_1_of_2/mod.rs | 1 + .../returns_success_feature.rs | 15 +++++++++++++++ .../with_arguments/testname/__nocapture/mod.rs | 1 + .../with_arguments/testname/mod.rs | 1 + 5 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs new file mode 100644 index 00000000000..926f7b04688 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs @@ -0,0 +1 @@ +mod with_successful_test_match_1_of_2; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs new file mode 100644 index 00000000000..25ee07c0dc5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -0,0 +1 @@ +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs new file mode 100644 index 00000000000..7d48e764c3e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs new file mode 100644 index 00000000000..0e1da116ca2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs @@ -0,0 +1 @@ +mod __exact; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs index fe6fa17edae..8520fe25bbc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs @@ -1 +1,2 @@ +mod __nocapture; mod default; From c1fa97d27596c8bb69dbd48da06fa2da542b76a1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 22:25:40 +0100 Subject: [PATCH 196/224] wasm-bindgen-test-runner: Added test feature Outputs the successful test 1 summary to the invocation with_an_assembly with_arguments TESTNAME --nocapture --exact with successful_test_match_1_of_2. --- .../with_successful_test_match_1_of_2/mod.rs | 1 + ...tputs_the_successful_test_1_summary_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs index 25ee07c0dc5..168ac9fcda7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -1 +1,2 @@ +mod outputs_the_successful_test_1_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs new file mode 100644 index 00000000000..4753bb7da74 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_1_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_the_standard_output_should_have(context, "pass_1 ... ok"); +} From 864b04a6b96256d151077e7c770ab9cf1ebb1a65 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 22:29:01 +0100 Subject: [PATCH 197/224] wasm-bindgen-test-runner: Added test feature Outputs no error to the invocation with_an_assembly with_arguments TESTNAME --nocapture --exact with successful_test_match_1_of_2. --- .../with_successful_test_match_1_of_2/mod.rs | 1 + .../outputs_no_error_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs index 168ac9fcda7..af3d0f9a1bf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -1,2 +1,3 @@ +mod outputs_no_error_feature; mod outputs_the_successful_test_1_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs new file mode 100644 index 00000000000..be7e98b6344 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_the_standard_error_should_be_empty(context); +} From dccc9c89ac21cfc170b1fe94bd7b788e95da3231 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 23:37:54 +0100 Subject: [PATCH 198/224] wasm-bindgen-test-runner: Added support to the cli to handle the TESTNAME --nocapture --exact. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 37bae8a5dd4..9f03696ae61 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -71,8 +71,8 @@ const USAGE: &str = " Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] - wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact + wasm-bindgen-test-runner [options] [] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -81,8 +81,10 @@ Options: -h, --help Show this screen. -V, --version Print the version number of wasm-bindgen-test-runner + The wasm file to test + Run only the tests with the given name + Arguments: - TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern --nocapture Disables the tests output capture @@ -98,6 +100,7 @@ Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-t #[derive(Debug, Deserialize)] struct Args { arg_input: Option, + arg_testname: Option, flag_exact: bool, flag_format: Option, flag_include_ignored: bool, @@ -167,11 +170,32 @@ fn main() -> anyhow::Result<()> { // to execute. let mut tests = Vec::new(); - for export in wasm.exports.iter() { - if !export.name.starts_with("__wbgt_") { - continue; + if args_.flag_exact { + let test_name = args_.arg_testname.as_ref().ok_or_else(|| { + anyhow!("`--exact` requires a test name to be specified as an argument") + })?; + + for export in wasm.exports.iter() { + if !export.name.starts_with("___wbgt_") { + continue; + } + + let parts: Vec<&str> = export.name.split('$').collect(); + + let test = parts[1]; + let test = &test[test.find("::").unwrap_or(0) + 2..]; + if test == test_name { + tests.push(parts[0][1..].to_string()); + break; + } + } + } else { + for export in wasm.exports.iter() { + if !export.name.starts_with("__wbgt_") { + continue; + } + tests.push(export.name.to_string()); } - tests.push(export.name.to_string()); } // Right now there's a bug where if no tests are present then the From 3df7e102ef328f533e7f08546e0bc07ace028a88 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 23:40:00 +0100 Subject: [PATCH 199/224] wasm-bindgen-test-runner: Updated test features because of improvements of the CLI handling of TESTNAME --nocapture --exact. --- ...e_wasm_bindgen_test_runner_help_information_feature.rs | 8 +++++--- ...e_wasm_bindgen_test_runner_help_information_feature.rs | 8 +++++--- ..._wasm_bindgen_test_runner_usage_information_feature.rs | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 84f9241ad49..7147a577721 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,8 +13,8 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] - wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact + wasm-bindgen-test-runner [options] [] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -23,8 +23,10 @@ Options: -h, --help Show this screen. -V, --version Print the version number of wasm-bindgen-test-runner + The wasm file to test + Run only the tests with the given name + Arguments: - TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern --nocapture Disables the tests output capture diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 9320afc61d1..e77e9c25dae 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -13,8 +13,8 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] - wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact + wasm-bindgen-test-runner [options] [] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version @@ -23,8 +23,10 @@ Options: -h, --help Show this screen. -V, --version Print the version number of wasm-bindgen-test-runner + The wasm file to test + Run only the tests with the given name + Arguments: - TESTNAME Run only the tests with the given name --include-ignored Include ignored tests in the test run --skip PATTERN Skip tests whose names match the given pattern --nocapture Disables the tests output capture diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs index 5d1418805a5..2b5eb0665ed 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -11,8 +11,8 @@ fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { then_the_standard_error_should_have( context, r#"Usage: - wasm-bindgen-test-runner [options] [TESTNAME] [--include-ignored] [(--skip PATTERN)...] [--nocapture] - wasm-bindgen-test-runner [options] TESTNAME [--nocapture] --exact + wasm-bindgen-test-runner [options] [] [--include-ignored] [(--skip PATTERN)...] [--nocapture] + wasm-bindgen-test-runner [options] [--nocapture] --exact wasm-bindgen-test-runner [options] --list [--format FORMAT] [--ignored] wasm-bindgen-test-runner -h | --help wasm-bindgen-test-runner -V | --version"#, From 28a28f116424e8be4a8a1abc6e98b91d2a04afb8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 23:41:35 +0100 Subject: [PATCH 200/224] wasm-bindgen-test-runner: Added test feature Outputs its running 1 test to the invocation with_an_assembly with_arguments TESTNAME --nocapture --exact with successful_test_match_1_of_2. --- .../with_successful_test_match_1_of_2/mod.rs | 1 + .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs index af3d0f9a1bf..31f7e1baa43 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -1,3 +1,4 @@ +mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_the_successful_test_1_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..ffa390489c8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} From 32a7e7c01885db729a81ebcea8e7017a22c7ff83 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Apr 2024 23:58:37 +0100 Subject: [PATCH 201/224] wasm-bindgen-test-runner: Improved runtime handling of --nocapture and --exact arguments, although not yet used, but clippy forced it. --- crates/test/src/rt/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs index 55183f07edd..55adce12e00 100644 --- a/crates/test/src/rt/mod.rs +++ b/crates/test/src/rt/mod.rs @@ -121,6 +121,9 @@ pub struct Context { } struct State { + /// Restricts the filter to be strict, that is only allow exact match + exact: Cell, + /// An optional filter used to restrict which tests are actually executed /// and which are ignored. This is passed via the `args` function which /// comes from the command line of `wasm-bindgen-test-runner`. Currently @@ -130,6 +133,9 @@ struct State { /// Include ignored tests. include_ignored: Cell, + /// Disabled the test output capture + nocapture: Cell, + /// Tests to skip. skip: RefCell>, @@ -281,8 +287,10 @@ impl Context { Context { state: Rc::new(State { + exact: Default::default(), filter: Default::default(), include_ignored: Default::default(), + nocapture: Default::default(), skip: Default::default(), failures: Default::default(), filtered: Default::default(), @@ -317,7 +325,9 @@ impl Context { } else if let Some(arg) = arg.strip_prefix("--skip=") { skip.push(arg.to_owned()) } else if arg == "--nocapture" { + self.state.nocapture.set(true); } else if arg == "--exact" { + self.state.exact.set(true); } else if arg.starts_with('-') { panic!("flag {} not supported", arg); } else if filter.is_some() { From b0169a763961e66e67e854ea7df8f9fa7b94366c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Apr 2024 20:25:48 +0100 Subject: [PATCH 202/224] wasm-bindgen-test-runner: Moved handling of the exact handling from the runner into the runtime. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 30 ++-------- crates/test/src/rt/mod.rs | 56 +++++++++++++++---- 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 9f03696ae61..4d7eb176b5f 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -169,33 +169,11 @@ fn main() -> anyhow::Result<()> { // that any exported function with the prefix `__wbg_test` is a test we need // to execute. let mut tests = Vec::new(); - - if args_.flag_exact { - let test_name = args_.arg_testname.as_ref().ok_or_else(|| { - anyhow!("`--exact` requires a test name to be specified as an argument") - })?; - - for export in wasm.exports.iter() { - if !export.name.starts_with("___wbgt_") { - continue; - } - - let parts: Vec<&str> = export.name.split('$').collect(); - - let test = parts[1]; - let test = &test[test.find("::").unwrap_or(0) + 2..]; - if test == test_name { - tests.push(parts[0][1..].to_string()); - break; - } - } - } else { - for export in wasm.exports.iter() { - if !export.name.starts_with("__wbgt_") { - continue; - } - tests.push(export.name.to_string()); + for export in wasm.exports.iter() { + if !export.name.starts_with("__wbgt_") { + continue; } + tests.push(export.name.to_string()); } // Right now there's a bug where if no tests are present then the diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs index 55adce12e00..2d6086ffbb1 100644 --- a/crates/test/src/rt/mod.rs +++ b/crates/test/src/rt/mod.rs @@ -165,6 +165,9 @@ struct State { /// How to actually format output, either node.js or browser-specific /// implementation. formatter: Box, + + /// Total tests + tests: Cell, } /// Failure reasons. @@ -299,6 +302,7 @@ impl Context { running: Default::default(), succeeded: Default::default(), formatter, + tests: Default::default(), }), } } @@ -348,11 +352,11 @@ impl Context { /// The promise returned resolves to either `true` if all tests passed or /// `false` if at least one test failed. pub fn run(&self, tests: Vec) -> Promise { - let noun = if tests.len() == 1 { "test" } else { "tests" }; - self.state - .formatter - .writeln(&format!("running {} {}", tests.len(), noun)); - self.state.formatter.writeln(""); + if !self.state.exact.get() { + self.state.print_running_tests(tests.len()); + } else { + self.state.tests.set(tests.len()); + } // Execute all our test functions through their wasm shims (unclear how // to pass native function pointers around here). Each test will @@ -495,6 +499,22 @@ impl Context { ) } + fn filter(&self, name: &str) -> bool { + let filter = self.state.filter.borrow(); + let exact = self.state.exact.get(); + + if let Some(filter) = &*filter { + if exact { + let test_name = &name[name.find("::").unwrap() + 2..]; + test_name != filter + } else { + !name.contains(filter) + } + } else { + false + } + } + fn execute( &self, name: &str, @@ -504,13 +524,10 @@ impl Context { ) { // If our test is filtered out, record that it was filtered and move // on, nothing to do here. - let filter = self.state.filter.borrow(); - if let Some(filter) = &*filter { - if !name.contains(filter) { - let filtered = self.state.filtered.get(); - self.state.filtered.set(filtered + 1); - return; - } + if self.filter(name) { + let filtered = self.state.filtered.get(); + self.state.filtered.set(filtered + 1); + return; } for skip in &*self.state.skip.borrow() { @@ -532,6 +549,10 @@ impl Context { } } + if self.state.exact.get() { + self.state.print_running_tests(1); + } + // Looks like we've got a test that needs to be executed! Push it onto // the list of remaining tests. let output = Output { @@ -601,6 +622,10 @@ impl Future for ExecuteTests { // so we shouldn't have any more remaining tests either. assert_eq!(remaining.len(), 0); + if self.0.exact.get() && self.0.tests.get() == self.0.filtered.get() { + self.0.print_running_tests(0); + } + self.0.print_results(); let all_passed = self.0.failures.borrow().len() == 0; Poll::Ready(all_passed) @@ -644,6 +669,13 @@ impl State { } } + fn print_running_tests(&self, count: usize) { + let noun = if count == 1 { "test" } else { "tests" }; + self.formatter + .writeln(&format!("running {} {}", count, noun)); + self.formatter.writeln(""); + } + fn print_results(&self) { let failures = self.failures.borrow(); if failures.len() > 0 { From 9bd87ca282516353792c34957744c0820a0674dd Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Apr 2024 20:26:57 +0100 Subject: [PATCH 203/224] wasm-bindgen-test-runner: Added test feature Outputs the assembly test summary to the invocation with_an_assembly with_arguments TESTNAME --no-capture --exact with_successful_test_match_1_of_2. --- .../with_successful_test_match_1_of_2/mod.rs | 1 + ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs index 31f7e1baa43..91ba69fcffd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -1,4 +1,5 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; mod outputs_the_successful_test_1_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..0b43f6d403c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} From 7d5ea717c9acf5fe9ae5ffd473239a60759aae6d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Apr 2024 21:29:40 +0100 Subject: [PATCH 204/224] wasm-bindgen-test-runner: Added test feature Outputs no information about test 2 to the invocation with_an_assembly with_arguments TESTNAME --no-capture --exact with_successful_test_match_1_of_2. --- .../with_successful_test_match_1_of_2/mod.rs | 1 + ...outputs_no_information_about_test_2_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs index 91ba69fcffd..606629bb7cc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -1,5 +1,6 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; +mod outputs_no_information_about_test_2_feature; mod outputs_the_assembly_test_summary_feature; mod outputs_the_successful_test_1_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs new file mode 100644 index 00000000000..88ff60433c1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} From cbbf5863d46aa80393945a76e1fdde05564b360d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Apr 2024 21:30:32 +0100 Subject: [PATCH 205/224] wasm-bindgen-test-runner: Added test features to the invocation with_an_assembly with_arguments TESTNAME --no-capture --exact with_successful_test_match_2_of_2. --- .../testname/__nocapture/__exact/mod.rs | 1 + .../with_successful_test_match_2_of_2/mod.rs | 6 ++++++ .../outputs_its_running_1_test_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...puts_no_information_about_test_1_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ ...ts_the_successful_test_2_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ 8 files changed, 100 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs index 926f7b04688..f4bbf0d850a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs @@ -1 +1,2 @@ mod with_successful_test_match_1_of_2; +mod with_successful_test_match_2_of_2; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs new file mode 100644 index 00000000000..2a3457c7fc3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_test_1_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_2_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..0e06bd53c75 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs new file mode 100644 index 00000000000..f1fba9fc07f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs new file mode 100644 index 00000000000..c1ed06e35de --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..37a105e3ab0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 1 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs new file mode 100644 index 00000000000..643aa952969 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_2_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_the_standard_output_should_have(context, "pass_2 ... ok"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs new file mode 100644 index 00000000000..49bea46e2a2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_success_should_have_been_returned(context); +} From 3cb056ce65bae6c4a0c7d96a8389d6cfb0c9ccae Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Apr 2024 21:51:40 +0100 Subject: [PATCH 206/224] wasm-bindgen-test-runner: Added test features to the invocation with_an_assembly with_arguments TESTNAME --no-capture --exact with_partial_test_match. --- .../testname/__nocapture/__exact/mod.rs | 1 + .../__exact/with_partial_test_match/mod.rs | 6 ++++++ .../outputs_its_running_0_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...puts_no_information_about_test_1_feature.rs | 15 +++++++++++++++ ...puts_no_information_about_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ 8 files changed, 100 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs index f4bbf0d850a..0880d7053f3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs @@ -1,2 +1,3 @@ +mod with_partial_test_match; mod with_successful_test_match_1_of_2; mod with_successful_test_match_2_of_2; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs new file mode 100644 index 00000000000..c4cbfed6801 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_0_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_test_1_feature; +mod outputs_no_information_about_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs new file mode 100644 index 00000000000..a0c8ba0392b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_0_tests_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass --nocapture --exact", + ); + then_the_standard_output_should_have(context, "running 0 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs new file mode 100644 index 00000000000..e6969983627 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass --nocapture --exact", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs new file mode 100644 index 00000000000..6a05ab5e6e7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass --nocapture --exact", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs new file mode 100644 index 00000000000..af4138053ba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass --nocapture --exact", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..f9d0b3f3a96 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass --nocapture --exact", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs new file mode 100644 index 00000000000..95f2bcf4a76 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass --nocapture --exact", + ); + then_success_should_have_been_returned(context); +} From 4916acb0af728c46827f8ab12d223bfcb90117e6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Apr 2024 21:57:32 +0100 Subject: [PATCH 207/224] wasm-bindgen-test-runner: Added test features to the invocation with_an_assembly with_arguments TESTNAME --no-capture --exact without_test_match. --- .../testname/__nocapture/__exact/mod.rs | 1 + .../__exact/without_test_match/mod.rs | 6 ++++++ .../outputs_its_running_0_tests_feature.rs | 15 +++++++++++++++ .../outputs_no_error_feature.rs | 15 +++++++++++++++ ...puts_no_information_about_test_1_feature.rs | 15 +++++++++++++++ ...puts_no_information_about_test_2_feature.rs | 15 +++++++++++++++ ...utputs_the_assembly_test_summary_feature.rs | 18 ++++++++++++++++++ .../returns_success_feature.rs | 15 +++++++++++++++ 8 files changed, 100 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs index 0880d7053f3..a91ed4f294f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs @@ -1,3 +1,4 @@ mod with_partial_test_match; mod with_successful_test_match_1_of_2; mod with_successful_test_match_2_of_2; +mod without_test_match; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs new file mode 100644 index 00000000000..c4cbfed6801 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs @@ -0,0 +1,6 @@ +mod outputs_its_running_0_tests_feature; +mod outputs_no_error_feature; +mod outputs_no_information_about_test_1_feature; +mod outputs_no_information_about_test_2_feature; +mod outputs_the_assembly_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs new file mode 100644 index 00000000000..517db12ec8c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_0_tests_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "boo --nocapture --exact", + ); + then_the_standard_output_should_have(context, "running 0 tests"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs new file mode 100644 index 00000000000..01004b3f31b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "boo --nocapture --exact", + ); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs new file mode 100644 index 00000000000..39bb602c693 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_test_1_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "boo --nocapture --exact", + ); + then_the_standard_output_should_not_have(context, "pass_1"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs new file mode 100644 index 00000000000..d6c648577e6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_not_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_no_information_about_test_2_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "boo --nocapture --exact", + ); + then_the_standard_output_should_not_have(context, "pass_2"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..c9b50efeec4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,18 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "boo --nocapture --exact", + ); + then_the_standard_output_should_have( + context, + "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs new file mode 100644 index 00000000000..b42ff67ac67 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "boo --nocapture --exact", + ); + then_success_should_have_been_returned(context); +} From 60085faf6595054984bb3c1481e2d52173248a34 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 21 Apr 2024 20:51:21 +0100 Subject: [PATCH 208/224] wasm-bindgen-test-runner: Added test feature Outputs the successful test 1 standard output to the invocation with_an_assembly with_arguments TESTNAME --nocapture --exact with_successful_test_match_1_of_2. --- .../with_successful_test_match_1_of_2/mod.rs | 1 + ...e_successful_test_1_standard_output_feature.rs | 15 +++++++++++++++ ..._assembly_with_two_successful_level_1_tests.rs | 2 ++ ...re_is_an_assembly_with_two_successful_tests.rs | 2 ++ 4 files changed, 20 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs index 606629bb7cc..0a9f5d982a4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs @@ -2,5 +2,6 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_test_2_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_1_standard_output_feature; mod outputs_the_successful_test_1_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs new file mode 100644 index 00000000000..be2aa07cc60 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_1_standard_output_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_1 --nocapture --exact", + ); + then_the_standard_output_should_have(context, "pass_1 standard output"); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs index e4249dbff34..8cffd90fe1f 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs @@ -15,11 +15,13 @@ mod level_1 { #[wasm_bindgen_test] fn pass_1() { + console_log!("pass_1 standard output"); assert_eq!(1, 1); } #[wasm_bindgen_test] fn pass_2() { + console_log!("pass_2 standard output"); assert_eq!(1, 1); } } diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs index aa7e9f16003..1345304be28 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs @@ -14,12 +14,14 @@ use wasm_bindgen_test::*; #[cfg(test)] #[wasm_bindgen_test] fn pass_1() { + console_log!("pass_1 standard output"); assert_eq!(1, 1); } #[cfg(test)] #[wasm_bindgen_test] fn pass_2() { + console_log!("pass_2 standard output"); assert_eq!(1, 1); } "#, From a7e1c659eafc815059bc71f7355b171b03ce3b7f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 21 Apr 2024 20:59:52 +0100 Subject: [PATCH 209/224] wasm-bindgen-test-runner: Added test feature Outputs the successful test 1 standard output to the invocation with_an_assembly with_arguments TESTNAME --nocapture --exact with_successful_test_match_2_of_2. --- .../with_successful_test_match_2_of_2/mod.rs | 1 + ...e_successful_test_2_standard_output_feature.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs index 2a3457c7fc3..62b38432879 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs @@ -2,5 +2,6 @@ mod outputs_its_running_1_test_feature; mod outputs_no_error_feature; mod outputs_no_information_about_test_1_feature; mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_2_standard_output_feature; mod outputs_the_successful_test_2_summary_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs new file mode 100644 index 00000000000..660c759fc1b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_2_standard_output_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_two_successful_tests(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + &mut context, + "pass_2 --nocapture --exact", + ); + then_the_standard_output_should_have(context, "pass_2 standard output"); +} From 933fdec19a19edd12c74b446195e8b699051fce9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 22 Apr 2024 20:43:29 +0100 Subject: [PATCH 210/224] wasm-bindgen-test-runner: Added a lock based handler to prevent tmpdir concurrency conflict. --- crates/cli/Cargo.toml | 1 + .../src/bin/wasm-bindgen-test-runner/main.rs | 94 +++++++++++-------- .../wasm-bindgen-test-runner/tmp_dir_lock.rs | 75 +++++++++++++++ 3 files changed, 130 insertions(+), 40 deletions(-) create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 8872c8b2797..cd735f28321 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -23,6 +23,7 @@ bin-dir = "wasm-bindgen-{ version }-{ target }/{ bin }{ binary-ext }" docopt = "1.0" env_logger = "0.8" anyhow = "1.0" +fs2 = "0.4.3" log = "0.4" native-tls = { version = "0.2", default-features = false, optional = true } rouille = { version = "3.0.0", default-features = false } diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 4d7eb176b5f..a27c352622e 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -11,9 +11,9 @@ //! For more documentation about this see the `wasm-bindgen-test` crate README //! and source code. +use crate::tmp_dir_lock::TmpDirLock; use anyhow::{anyhow, bail, Context}; use docopt::Docopt; -use log::error; use serde::Deserialize; use std::env; use std::fs; @@ -26,6 +26,7 @@ mod headless; mod node; mod server; mod shell; +mod tmp_dir_lock; #[derive(Debug, Copy, Clone, Eq, PartialEq)] enum TestMode { @@ -57,13 +58,15 @@ impl TestMode { } } -struct TmpDirDeleteGuard(PathBuf); +struct TmpDirDeleteGuard<'a>(PathBuf, &'a TmpDirLock); -impl Drop for TmpDirDeleteGuard { +impl Drop for TmpDirDeleteGuard<'_> { fn drop(&mut self) { - if let Err(e) = fs::remove_dir_all(&self.0) { - error!("failed to remove temporary directory: {}", e); - } + /*if self.1.try_upgrade_lock().is_ok() && self.0.exists() { + if let Err(e) = fs::remove_dir_all(&self.0) { + error!("failed to remove temporary directory: {}", e); + } + }*/ } } @@ -249,28 +252,7 @@ fn main() -> anyhow::Result<()> { println!("Set timeout to {} seconds...", timeout); } - // Make the generated bindings available for the tests to execute against. - let shell = shell::Shell::new(); - shell.status("Executing bindgen..."); - let mut b = Bindgen::new(); - match test_mode { - TestMode::Node => b.nodejs(true)?, - TestMode::Deno => b.deno(true)?, - TestMode::Browser { .. } - | TestMode::DedicatedWorker { .. } - | TestMode::SharedWorker { .. } - | TestMode::ServiceWorker { .. } => { - if test_mode.no_modules() { - b.no_modules(true)? - } else { - b.web(true)? - } - } - }; - - if std::env::var("WASM_BINDGEN_SPLIT_LINKED_MODULES").is_ok() { - b.split_linked_modules(true); - } + let module = "wasm-bindgen-test"; // wasm_file_to_test may be // - a cargo-like directory layout and generate output at @@ -291,20 +273,52 @@ fn main() -> anyhow::Result<()> { .map(|p| p.join(format!("wbg-tmp-{}", file_name))) .ok_or_else(|| anyhow!("file to test doesn't follow the expected Cargo conventions"))?; - // Make sure there's no stale state from before - drop(fs::remove_dir_all(&tmpdir)); - fs::create_dir(&tmpdir).context("creating temporary directory")?; - let _guard = TmpDirDeleteGuard(tmpdir.clone()); + let shell = shell::Shell::new(); - let module = "wasm-bindgen-test"; + let lock = TmpDirLock::new(&tmpdir)?; + let _guard = TmpDirDeleteGuard(tmpdir.clone(), &lock); + + if lock.try_lock_exclusive().is_ok() { + // Make sure there's no stale state from before + drop(fs::remove_dir_all(&tmpdir)); + fs::create_dir(&tmpdir).context("creating temporary directory")?; + + // Make the generated bindings available for the tests to execute against. + shell.status("Executing bindgen..."); + let mut b = Bindgen::new(); + match test_mode { + TestMode::Node => b.nodejs(true)?, + TestMode::Deno => b.deno(true)?, + TestMode::Browser { .. } + | TestMode::DedicatedWorker { .. } + | TestMode::SharedWorker { .. } + | TestMode::ServiceWorker { .. } => { + if test_mode.no_modules() { + b.no_modules(true)? + } else { + b.web(true)? + } + } + }; + + if std::env::var("WASM_BINDGEN_SPLIT_LINKED_MODULES").is_ok() { + b.split_linked_modules(true); + } - b.debug(debug) - .input_module(module, wasm) - .keep_debug(false) - .emit_start(false) - .generate(&tmpdir) - .context("executing `wasm-bindgen` over the wasm file")?; - shell.clear(); + b.debug(debug) + .input_module(module, wasm) + .keep_debug(false) + .emit_start(false) + .generate(&tmpdir) + .context("executing `wasm-bindgen` over the wasm file")?; + shell.clear(); + + lock.downgrade_lock() + .context("failed to downgrade temporary directory lock")?; + } else { + lock.lock_shared() + .context("failed to aquire temporary directory shared lock")?; + } let args: Vec<_> = args.collect(); diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs new file mode 100644 index 00000000000..eca9a39df59 --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs @@ -0,0 +1,75 @@ +use fs2::FileExt; +use std::fs::File; +//use std::remove_file; +use std::ffi::OsStr; +use std::io::Error; +use std::path::PathBuf; + +pub struct TmpDirLock { + exclusive: File, + shared: File, + exclusive_path: PathBuf, + shared_path: PathBuf, +} + +impl TmpDirLock { + pub fn new(directory: &PathBuf) -> Result { + let base = directory.parent().unwrap(); + let name = directory.file_name().and_then(OsStr::to_str).unwrap(); + let exclusive = &base.join(format!("{}-exclusive.lock", name)); + let shared = &base.join(format!("{}-shared.lock", name)); + Ok(TmpDirLock { + exclusive: File::create(exclusive)?, + exclusive_path: exclusive.to_path_buf(), + shared: File::create(shared)?, + shared_path: shared.to_path_buf(), + }) + } + + pub fn downgrade_lock(&self) -> Result<(), Error> { + self.shared.unlock()?; + self.shared.lock_shared()?; + self.exclusive.unlock()?; + Ok(()) + } + + pub fn lock_shared(&self) -> Result<(), Error> { + self.shared.lock_shared() + } + + pub fn try_lock_exclusive(&self) -> Result<(), Error> { + self.exclusive.try_lock_exclusive()?; + let result = self.shared.try_lock_exclusive(); + if result.is_err() { + self.exclusive.unlock()?; + result + } else { + Ok(()) + } + } + + pub fn try_upgrade_lock(&self) -> Result<(), Error> { + self.exclusive.try_lock_exclusive()?; + let result = self.shared.unlock(); + if result.is_err() { + self.exclusive.unlock()?; + return result; + } + let result = self.shared.try_lock_exclusive(); + if result.is_err() { + self.exclusive.unlock()?; + result + } else { + Ok(()) + } + } +} + +impl Drop for TmpDirLock { + fn drop(&mut self) { + let _ = self.exclusive.unlock(); + let _ = self.shared.unlock(); + //let _ = remove_file(&self.exclusive_path); + //let _ = remove_file(&self.shared_path); + } +} From fb6d474c3872b0a3ac3a27c6494423459f0adf85 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 22 Apr 2024 21:15:11 +0100 Subject: [PATCH 211/224] wasm-bindgen-test-runner: Clippy improvements. --- crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs index eca9a39df59..f8c1da6cb17 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs @@ -3,6 +3,7 @@ use std::fs::File; //use std::remove_file; use std::ffi::OsStr; use std::io::Error; +use std::path::Path; use std::path::PathBuf; pub struct TmpDirLock { @@ -13,7 +14,7 @@ pub struct TmpDirLock { } impl TmpDirLock { - pub fn new(directory: &PathBuf) -> Result { + pub fn new(directory: &Path) -> Result { let base = directory.parent().unwrap(); let name = directory.file_name().and_then(OsStr::to_str).unwrap(); let exclusive = &base.join(format!("{}-exclusive.lock", name)); From d0b6aa393d5d6bc550a2daedd2086c3773298e3a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 22 Apr 2024 22:27:55 +0100 Subject: [PATCH 212/224] wasm-bindgen-test-runner: Updated to run bindgen on list and use it when running with exact. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 112 ++++++++++-------- .../wasm-bindgen-test-runner/tmp_dir_lock.rs | 76 ------------ 2 files changed, 64 insertions(+), 124 deletions(-) delete mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index a27c352622e..4ff9aaa41d3 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -11,9 +11,9 @@ //! For more documentation about this see the `wasm-bindgen-test` crate README //! and source code. -use crate::tmp_dir_lock::TmpDirLock; use anyhow::{anyhow, bail, Context}; use docopt::Docopt; +use log::error; use serde::Deserialize; use std::env; use std::fs; @@ -26,7 +26,6 @@ mod headless; mod node; mod server; mod shell; -mod tmp_dir_lock; #[derive(Debug, Copy, Clone, Eq, PartialEq)] enum TestMode { @@ -58,15 +57,13 @@ impl TestMode { } } -struct TmpDirDeleteGuard<'a>(PathBuf, &'a TmpDirLock); +struct TmpDirDeleteGuard(PathBuf); -impl Drop for TmpDirDeleteGuard<'_> { +impl Drop for TmpDirDeleteGuard { fn drop(&mut self) { - /*if self.1.try_upgrade_lock().is_ok() && self.0.exists() { - if let Err(e) = fs::remove_dir_all(&self.0) { - error!("failed to remove temporary directory: {}", e); - } - }*/ + if let Err(e) = fs::remove_dir_all(&self.0) { + error!("failed to remove temporary directory: {}", e); + } } } @@ -145,6 +142,7 @@ fn main() -> anyhow::Result<()> { walrus::Module::from_buffer(&wasm).context("failed to deserialize wasm module")?; if args_.flag_list { + let mut found = false; for export in wasm.exports.iter() { if !export.name.starts_with("___wbgt_") { continue; @@ -163,28 +161,33 @@ fn main() -> anyhow::Result<()> { let test = &test[test.find("::").unwrap_or(0) + 2..]; println!("{}: test", test); } + found = true; } - return Ok(()); + if !found || args_.flag_ignored { + return Ok(()); + } } - // Collect all tests that the test harness is supposed to run. We assume - // that any exported function with the prefix `__wbg_test` is a test we need - // to execute. let mut tests = Vec::new(); - for export in wasm.exports.iter() { - if !export.name.starts_with("__wbgt_") { - continue; + if !args_.flag_list { + // Collect all tests that the test harness is supposed to run. We assume + // that any exported function with the prefix `__wbg_test` is a test we need + // to execute. + for export in wasm.exports.iter() { + if !export.name.starts_with("__wbgt_") { + continue; + } + tests.push(export.name.to_string()); } - tests.push(export.name.to_string()); - } - // Right now there's a bug where if no tests are present then the - // `wasm-bindgen-test` runtime support isn't linked in, so just bail out - // early saying everything is ok. - if tests.is_empty() { - println!("no tests to run!"); - return Ok(()); + // Right now there's a bug where if no tests are present then the + // `wasm-bindgen-test` runtime support isn't linked in, so just bail out + // early saying everything is ok. + if tests.is_empty() { + println!("no tests to run!"); + return Ok(()); + } } // Figure out if this tests is supposed to execute in node.js or a browser. @@ -240,18 +243,6 @@ fn main() -> anyhow::Result<()> { return Ok(()); } - let timeout = env::var("WASM_BINDGEN_TEST_TIMEOUT") - .map(|timeout| { - timeout - .parse() - .expect("Could not parse 'WASM_BINDGEN_TEST_TIMEOUT'") - }) - .unwrap_or(20); - - if debug { - println!("Set timeout to {} seconds...", timeout); - } - let module = "wasm-bindgen-test"; // wasm_file_to_test may be @@ -273,18 +264,26 @@ fn main() -> anyhow::Result<()> { .map(|p| p.join(format!("wbg-tmp-{}", file_name))) .ok_or_else(|| anyhow!("file to test doesn't follow the expected Cargo conventions"))?; - let shell = shell::Shell::new(); - - let lock = TmpDirLock::new(&tmpdir)?; - let _guard = TmpDirDeleteGuard(tmpdir.clone(), &lock); + let shell = if !args_.flag_list { + Some(shell::Shell::new()) + } else { + None + }; + let _guard = if args_.flag_list || args_.flag_exact { + None + } else { + Some(TmpDirDeleteGuard(tmpdir.clone())) + }; - if lock.try_lock_exclusive().is_ok() { + if !args_.flag_exact || !tmpdir.exists() { // Make sure there's no stale state from before drop(fs::remove_dir_all(&tmpdir)); fs::create_dir(&tmpdir).context("creating temporary directory")?; // Make the generated bindings available for the tests to execute against. - shell.status("Executing bindgen..."); + if let Some(ref shell) = shell { + shell.status("Executing bindgen..."); + } let mut b = Bindgen::new(); match test_mode { TestMode::Node => b.nodejs(true)?, @@ -311,13 +310,30 @@ fn main() -> anyhow::Result<()> { .emit_start(false) .generate(&tmpdir) .context("executing `wasm-bindgen` over the wasm file")?; - shell.clear(); - lock.downgrade_lock() - .context("failed to downgrade temporary directory lock")?; - } else { - lock.lock_shared() - .context("failed to aquire temporary directory shared lock")?; + if let Some(ref shell) = shell { + shell.clear(); + } + } + + if args_.flag_list { + return Ok(()); + } + + let Some(shell) = shell else { + bail!("no shell available"); + }; + + let timeout = env::var("WASM_BINDGEN_TEST_TIMEOUT") + .map(|timeout| { + timeout + .parse() + .expect("Could not parse 'WASM_BINDGEN_TEST_TIMEOUT'") + }) + .unwrap_or(20); + + if debug { + println!("Set timeout to {} seconds...", timeout); } let args: Vec<_> = args.collect(); diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs deleted file mode 100644 index f8c1da6cb17..00000000000 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs +++ /dev/null @@ -1,76 +0,0 @@ -use fs2::FileExt; -use std::fs::File; -//use std::remove_file; -use std::ffi::OsStr; -use std::io::Error; -use std::path::Path; -use std::path::PathBuf; - -pub struct TmpDirLock { - exclusive: File, - shared: File, - exclusive_path: PathBuf, - shared_path: PathBuf, -} - -impl TmpDirLock { - pub fn new(directory: &Path) -> Result { - let base = directory.parent().unwrap(); - let name = directory.file_name().and_then(OsStr::to_str).unwrap(); - let exclusive = &base.join(format!("{}-exclusive.lock", name)); - let shared = &base.join(format!("{}-shared.lock", name)); - Ok(TmpDirLock { - exclusive: File::create(exclusive)?, - exclusive_path: exclusive.to_path_buf(), - shared: File::create(shared)?, - shared_path: shared.to_path_buf(), - }) - } - - pub fn downgrade_lock(&self) -> Result<(), Error> { - self.shared.unlock()?; - self.shared.lock_shared()?; - self.exclusive.unlock()?; - Ok(()) - } - - pub fn lock_shared(&self) -> Result<(), Error> { - self.shared.lock_shared() - } - - pub fn try_lock_exclusive(&self) -> Result<(), Error> { - self.exclusive.try_lock_exclusive()?; - let result = self.shared.try_lock_exclusive(); - if result.is_err() { - self.exclusive.unlock()?; - result - } else { - Ok(()) - } - } - - pub fn try_upgrade_lock(&self) -> Result<(), Error> { - self.exclusive.try_lock_exclusive()?; - let result = self.shared.unlock(); - if result.is_err() { - self.exclusive.unlock()?; - return result; - } - let result = self.shared.try_lock_exclusive(); - if result.is_err() { - self.exclusive.unlock()?; - result - } else { - Ok(()) - } - } -} - -impl Drop for TmpDirLock { - fn drop(&mut self) { - let _ = self.exclusive.unlock(); - let _ = self.shared.unlock(); - //let _ = remove_file(&self.exclusive_path); - //let _ = remove_file(&self.shared_path); - } -} From 429199e52bbd0d20a423add62376b649843c0000 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 22 Apr 2024 22:28:29 +0100 Subject: [PATCH 213/224] wasm-bindgen-test-runner: Updated test step to use the sandbox for regular --list. --- ...est_runner_is_invoked_with_the_assembly_and_the_arguments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs index 613306b77a2..4dc789f8904 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs @@ -6,7 +6,7 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_argume ) { let mut command = wasm_bindgen_test_runner_command(); - if arguments.starts_with("--list") { + if arguments.starts_with("--list") && arguments.contains("--ignored") { command.arg(context.sandbox().original()); } else { command.arg(context.sandbox_mut().assembly()); From e744d4404cc2847d68e276144351bb7c408d2721 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 16:19:54 +0100 Subject: [PATCH 214/224] wasm-bindgen-test-runner: Added feature tests for the invocation runtimes node with_one_successful_test. --- .../__features__/invocation/mod.rs | 1 + .../__features__/invocation/runtimes/mod.rs | 1 + .../__features__/invocation/runtimes/node/mod.rs | 1 + .../runtimes/node/with_one_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ .../outputs_no_error_feature.rs | 12 ++++++++++++ .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ ...outputs_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 12 ++++++++++++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ .../wasm_bindgen_test_runner/node/mod.rs | 3 +++ ...is_invoked_with_the_assembly_targeting_node.rs | 11 +++++++++++ 12 files changed, 90 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs index 9f56a85d115..9c1eab26336 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs @@ -1,3 +1,4 @@ mod options; +mod runtimes; mod with_an_assembly; mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs new file mode 100644 index 00000000000..274142d3454 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs @@ -0,0 +1 @@ +mod node; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..ea3f532711b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..a5e07692653 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..b53e424c4fc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..064244d1cbf --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..812d0e9a36c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index eeb2dfdf45e..646d98a46ba 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,3 +1,4 @@ +mod node; mod sandbox; mod wasm_bindgen_test_runner_command; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; @@ -5,6 +6,7 @@ mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; +pub use node::*; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/mod.rs new file mode 100644 index 00000000000..d9fa70b23a9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/mod.rs @@ -0,0 +1,3 @@ +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node; + +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs new file mode 100644 index 00000000000..46a05dc39b0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs @@ -0,0 +1,11 @@ +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; + +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(context: &mut Context) { + let mut command = wasm_bindgen_test_runner_command(); + + command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"); + + command.arg(context.sandbox_mut().assembly()); + + context.output_set(command.output()); +} From 2062aaac0cde3be2f0d1bc5bfdf2572e7bfdb66f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 18:34:15 +0100 Subject: [PATCH 215/224] wasm-bindgen-test-runner: Fixed minor bug in node exec that is reused by deno. --- crates/cli/src/bin/wasm-bindgen-test-runner/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs index c90d00251ba..58a6d6bd9c1 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs @@ -117,7 +117,7 @@ pub fn execute( #[cfg(unix)] pub fn exec(cmd: &mut Command) -> Result<(), Error> { use std::os::unix::prelude::*; - Err(Error::from(cmd.exec()).context("failed to execute `node`")) + Err(Error::from(cmd.exec()).context(format!("failed to execute `{}`", cmd.get_program().to_string_lossy()))) } #[cfg(windows)] From 1816b158351bafb5ecfd204b16b0a8b2a3433aa5 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 18:50:28 +0100 Subject: [PATCH 216/224] wasm-bindgen-test-runner: Added missing const to generated node run.js. --- crates/cli/src/bin/wasm-bindgen-test-runner/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs index 58a6d6bd9c1..c2fba1997b5 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs @@ -30,7 +30,7 @@ wrap("info"); wrap("warn"); wrap("error"); -cx = new wasm.WasmBindgenTestContext(); +const cx = new wasm.WasmBindgenTestContext(); handlers.on_console_debug = wasm.__wbgtest_console_debug; handlers.on_console_log = wasm.__wbgtest_console_log; handlers.on_console_info = wasm.__wbgtest_console_info; From ceabe5a307fff7c1dc9f4f3ce4b97ea72cb0e059 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 18:51:34 +0100 Subject: [PATCH 217/224] wasm-bindgen-test-runner: Improved test step formatting. --- ...test_runner_is_invoked_with_the_assembly_targeting_node.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs index 46a05dc39b0..aa5e66a2f09 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node.rs @@ -1,6 +1,8 @@ use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; -pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(context: &mut Context) { +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node( + context: &mut Context, +) { let mut command = wasm_bindgen_test_runner_command(); command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"); From 442f4b352601443f3837f39bf1cdd756b96a1d66 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 18:52:26 +0100 Subject: [PATCH 218/224] wasm-bindgen-test-runner: Improved node formatting. --- crates/cli/src/bin/wasm-bindgen-test-runner/node.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs index c2fba1997b5..0e1718119ae 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs @@ -117,7 +117,10 @@ pub fn execute( #[cfg(unix)] pub fn exec(cmd: &mut Command) -> Result<(), Error> { use std::os::unix::prelude::*; - Err(Error::from(cmd.exec()).context(format!("failed to execute `{}`", cmd.get_program().to_string_lossy()))) + Err(Error::from(cmd.exec()).context(format!( + "failed to execute `{}`", + cmd.get_program().to_string_lossy() + ))) } #[cfg(windows)] From 819b079497f225161f042f025b251034ba634c5a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 21:23:06 +0100 Subject: [PATCH 219/224] wasm-bindgen-test-runner: Fixed deno support. --- crates/cli-support/src/js/mod.rs | 3 ++- crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs | 12 +++++++----- crates/test/src/rt/detect.rs | 10 +++++++++- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index 8c270186bf7..a8e242e0d6a 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -345,7 +345,8 @@ impl<'a> Context<'a> { }} const wasmInstance = (await WebAssembly.instantiate(wasmCode, imports)).instance; - const wasm = wasmInstance.exports;", + const wasm = wasmInstance.exports; + export const __wasm = wasm;", module_name = module_name ) } diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs index a0b05cdbd5b..9a9f39ea505 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs @@ -18,7 +18,7 @@ pub fn execute( {console_override} - // global.__wbg_test_invoke = f => f(); + window.__wbg_test_invoke = f => f(); // Forward runtime arguments. These arguments are also arguments to the // `wasm-bindgen-test-runner` which forwards them to deno which we @@ -26,11 +26,8 @@ pub fn execute( // filters for now. cx.args(Deno.args.slice(1)); - const ok = await cx.run(tests.map(n => wasm.__wasm[n])); - if (!ok) Deno.exit(1); - const tests = []; - "#, +"#, module, console_override = SHARED_SETUP, ); @@ -39,6 +36,11 @@ pub fn execute( js_to_execute.push_str(&format!("tests.push('{}')\n", test)); } + js_to_execute.push_str( + r#"const ok = await cx.run(tests.map(n => wasm.__wasm[n])); +if (!ok) Deno.exit(1);"#, + ); + let js_path = tmpdir.join("run.js"); fs::write(&js_path, js_to_execute).context("failed to write JS file")?; diff --git a/crates/test/src/rt/detect.rs b/crates/test/src/rt/detect.rs index 235b14c67d6..f4cdd988d59 100644 --- a/crates/test/src/rt/detect.rs +++ b/crates/test/src/rt/detect.rs @@ -12,6 +12,11 @@ extern "C" { #[wasm_bindgen(method, getter, structural)] fn constructor(me: &Scope) -> Constructor; + #[wasm_bindgen(method, getter, structural, js_name = Deno)] + fn deno(me: &Scope) -> Option; + + type Deno; + type Constructor; #[wasm_bindgen(method, getter, structural)] fn name(me: &Constructor) -> String; @@ -27,7 +32,10 @@ pub fn detect() -> Runtime { "DedicatedWorkerGlobalScope" | "SharedWorkerGlobalScope" | "ServiceWorkerGlobalScope" => Runtime::Worker, - _ => Runtime::Browser, + _ => match scope.deno() { + Some(_) => Runtime::Node, + _ => Runtime::Browser, + }, }, None => Runtime::Node, } From c34fd8959d0ac63d449e24b8cf50be0f099b0d85 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 21:26:47 +0100 Subject: [PATCH 220/224] wasm-bindgen-test-runner: Added test features to the invocation runtimes deno with_one_successful_test. --- .../__features__/invocation/runtimes/deno/mod.rs | 1 + .../runtimes/deno/with_one_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ .../outputs_no_error_feature.rs | 12 ++++++++++++ .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ ...outputs_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 12 ++++++++++++ .../__features__/invocation/runtimes/mod.rs | 1 + .../wasm_bindgen_test_runner/deno/mod.rs | 3 +++ ...is_invoked_with_the_assembly_targeting_deno.rs | 13 +++++++++++++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ 11 files changed, 91 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..67da04b6554 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..f7886c57772 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..81c62af3b25 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..2770d2e256b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..54375f4692e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs index 274142d3454..916956de3cb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs @@ -1 +1,2 @@ +mod deno; mod node; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/mod.rs new file mode 100644 index 00000000000..ef6cfe81bac --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/mod.rs @@ -0,0 +1,3 @@ +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno; + +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno.rs new file mode 100644 index 00000000000..3cb17e9753c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno.rs @@ -0,0 +1,13 @@ +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; + +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno( + context: &mut Context, +) { + let mut command = wasm_bindgen_test_runner_command(); + + command.env("WASM_BINDGEN_USE_DENO", "true"); + + command.arg(context.sandbox_mut().assembly()); + + context.output_set(command.output()); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index 646d98a46ba..f489665c2ff 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,3 +1,4 @@ +mod deno; mod node; mod sandbox; mod wasm_bindgen_test_runner_command; @@ -6,6 +7,7 @@ mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; +pub use deno::*; pub use node::*; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; From 4b4ee016794ef9ce8aabc98fb4fd4c020f94715a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 21:38:05 +0100 Subject: [PATCH 221/224] wasm-bindgent-test-runner: Added deno to the test_native that runs all tests in ubuntu-latest. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0157c230edc..697aa7ee9e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -144,6 +144,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20' + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x - run: cargo test - run: cargo test -p wasm-bindgen-cli-support - run: cargo test -p wasm-bindgen-cli From 076cbfe7099fae84cb2fa6b22f5bc58078a7c3a1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 23:42:27 +0100 Subject: [PATCH 222/224] wasm-bindgen-test-runner: Added a way to specify that tests should be run in the browser. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 4ff9aaa41d3..11619a9f07b 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -211,6 +211,9 @@ fn main() -> anyhow::Result<()> { }, Some(_) => bail!("invalid __wasm_bingen_test_unstable value"), None if std::env::var("WASM_BINDGEN_USE_DENO").is_ok() => TestMode::Deno, + None if std::env::var("WASM_BINDGEN_USE_BROWSER").is_ok() => TestMode::Browser { + no_modules: std::env::var("WASM_BINDGEN_USE_NO_MODULE").is_ok(), + }, None => TestMode::Node, }; From ebae8a99e8f98b31878eeadae9fa24afe6370a1b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 27 Apr 2024 23:43:23 +0100 Subject: [PATCH 223/224] wasm-bindgen-test-runner: Added test features to the invocation runtimes firefox. --- .../invocation/runtimes/firefox/mod.rs | 1 + .../firefox/with_one_successful_test/mod.rs | 5 +++++ .../outputs_its_running_1_test_feature.rs | 12 ++++++++++++ .../outputs_no_error_feature.rs | 12 ++++++++++++ .../outputs_the_assembly_test_summary_feature.rs | 15 +++++++++++++++ ...outputs_the_successful_test_summary_feature.rs | 15 +++++++++++++++ .../returns_success_feature.rs | 12 ++++++++++++ .../__features__/invocation/runtimes/mod.rs | 1 + .../wasm_bindgen_test_runner/firefox/mod.rs | 3 +++ ...invoked_with_the_assembly_targeting_firefox.rs | 13 +++++++++++++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ 11 files changed, 91 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs new file mode 100644 index 00000000000..db99b0bac03 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs @@ -0,0 +1 @@ +mod with_one_successful_test; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/mod.rs new file mode 100644 index 00000000000..e47449a0ae8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/mod.rs @@ -0,0 +1,5 @@ +mod outputs_its_running_1_test_feature; +mod outputs_no_error_feature; +mod outputs_the_assembly_test_summary_feature; +mod outputs_the_successful_test_summary_feature; +mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs new file mode 100644 index 00000000000..31309ebed5b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox; +use crate::__steps__::Context; + +#[test] +fn outputs_its_running_1_test_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); + then_the_standard_output_should_have(context, "running 1 test"); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs new file mode 100644 index 00000000000..a454d9d748c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox; +use crate::__steps__::Context; + +#[test] +fn outputs_no_error_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); + then_the_standard_error_should_be_empty(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs new file mode 100644 index 00000000000..8aaa6aa42c7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox; +use crate::__steps__::Context; + +#[test] +fn outputs_the_assembly_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); + then_the_standard_output_should_have( + context, + "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs new file mode 100644 index 00000000000..d061e746ed8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -0,0 +1,15 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox; +use crate::__steps__::Context; + +#[test] +fn outputs_the_successful_test_summary_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); + then_the_standard_output_should_have( + context, + "test assembly_with_one_successful_test::pass ... ok", + ); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs new file mode 100644 index 00000000000..ddba852da20 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs @@ -0,0 +1,12 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox; +use crate::__steps__::Context; + +#[test] +fn returns_success_feature() { + let mut context = Context::new(); + given_there_is_an_assembly_with_one_successful_test(&mut context); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); + then_success_should_have_been_returned(context); +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs index 916956de3cb..dc0538e69b3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs @@ -1,2 +1,3 @@ mod deno; +mod firefox; mod node; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/mod.rs new file mode 100644 index 00000000000..f7e012ba261 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/mod.rs @@ -0,0 +1,3 @@ +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox; + +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox.rs new file mode 100644 index 00000000000..41cd924d0f7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox.rs @@ -0,0 +1,13 @@ +use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; + +pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox( + context: &mut Context, +) { + let mut command = wasm_bindgen_test_runner_command(); + + command.env("WASM_BINDGEN_USE_BROWSER", "firefox"); + + command.arg(context.sandbox_mut().assembly()); + + context.output_set(command.output()); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs index f489665c2ff..3c0e5a4a804 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs @@ -1,4 +1,5 @@ mod deno; +mod firefox; mod node; mod sandbox; mod wasm_bindgen_test_runner_command; @@ -8,6 +9,7 @@ mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; pub use deno::*; +pub use firefox::*; pub use node::*; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; From 29608d9ca529fe2995d8ee5ec967b543a6593283 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 24 May 2024 18:17:05 +0100 Subject: [PATCH 224/224] wasm-bindgen-test-runner: Updated then steps to work with &Context to allow aggregate execution of steps. --- ...en_test_runner_help_information_feature.rs | 2 +- .../options/__help/returns_success_feature.rs | 2 +- ...test_runner_version_information_feature.rs | 2 +- .../__version/returns_success_feature.rs | 2 +- ...en_test_runner_help_information_feature.rs | 2 +- .../options/_h/returns_success_feature.rs | 2 +- ...test_runner_version_information_feature.rs | 2 +- .../options/_v/returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- ...ts_the_assembly_failure_summary_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...the_failed_test_assertion_error_feature.rs | 2 +- ...outputs_the_failed_test_summary_feature.rs | 2 +- .../returns_failure_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...st_successful_execution_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...st_successful_execution_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...ts_the_assembly_failure_summary_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...the_failed_test_assertion_error_feature.rs | 2 +- ...outputs_the_failed_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_failure_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...st_successful_execution_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_nothing_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...gnored_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_nothing_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...gnored_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_nothing_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...gnored_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../without_tests/outputs_nothing_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- ...s_the_tests_in_the_terse_format_feature.rs | 21 +++++++++++++++++++ .../level_0/with_one_ignored_test/mod.rs | 1 + ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...s_all_tests_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...s_all_tests_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...s_all_tests_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...s_all_tests_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...s_all_tests_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...s_all_tests_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...ts_the_test_in_the_terse_format_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../without_tests/outputs_nothing_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...mation_about_the_skipped_test_1_feature.rs | 2 +- ...mation_about_the_skipped_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- .../outputs_its_running_0_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...uts_no_information_about_test_1_feature.rs | 2 +- ...uts_no_information_about_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...uts_no_information_about_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...ccessful_test_1_standard_output_feature.rs | 2 +- ...s_the_successful_test_1_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...uts_no_information_about_test_1_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...ccessful_test_2_standard_output_feature.rs | 2 +- ...s_the_successful_test_2_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_0_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...uts_no_information_about_test_1_feature.rs | 2 +- ...uts_no_information_about_test_2_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...s_the_successful_test_1_summary_feature.rs | 2 +- ...s_the_successful_test_2_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...ormation_about_the_skipped_test_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- ...ts_the_assembly_failure_summary_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...the_failed_test_assertion_error_feature.rs | 2 +- ...outputs_the_failed_test_summary_feature.rs | 2 +- .../returns_failure_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...utputs_the_ignored_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...utputs_the_ignored_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...ts_the_assembly_failure_summary_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...the_failed_test_assertion_error_feature.rs | 2 +- ...outputs_the_failed_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_failure_feature.rs | 2 +- .../outputs_its_running_2_tests_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...utputs_the_ignored_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../outputs_its_running_1_test_feature.rs | 2 +- .../outputs_no_error_feature.rs | 2 +- ...tputs_the_assembly_test_summary_feature.rs | 2 +- ...uts_the_successful_test_summary_feature.rs | 2 +- .../returns_success_feature.rs | 2 +- .../without_tests/outputs_no_error_feature.rs | 2 +- ...outputs_no_tests_to_run_warning_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 2 +- ...outputs_invalid_arguments_error_feature.rs | 2 +- ...n_test_runner_usage_information_feature.rs | 2 +- .../returns_failure_feature.rs | 2 +- .../__steps__/context.rs | 4 ++-- .../then_failure_should_have_been_returned.rs | 4 ++-- ...then_the_standard_error_should_be_empty.rs | 4 ++-- .../then_the_standard_error_should_have.rs | 4 ++-- ...hen_the_standard_output_should_be_empty.rs | 4 ++-- .../then_the_standard_output_should_have.rs | 4 ++-- ...hen_the_standard_output_should_not_have.rs | 4 ++-- .../then_success_should_have_been_returned.rs | 4 ++-- 400 files changed, 428 insertions(+), 406 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index 7147a577721..ac0663b9409 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--help"); then_the_standard_output_should_have( - context, + &context, r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs index a518ca2ae1e..5646cf0e1e6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--help"); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs index 1d7841eca0c..29d37056be1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_wasm_bindgen_test_runner_version_information_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--version"); then_the_standard_output_should_have( - context, + &context, &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs index b88cf473084..8a6631b2171 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "--version"); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs index e77e9c25dae..72309f4249f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_wasm_bindgen_test_runner_help_information_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-h"); then_the_standard_output_should_have( - context, + &context, r#"Execute all wasm bindgen unit and integration tests and build examples of a local package Usage: diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs index 5e48f77c99c..5a510db2f38 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-h"); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs index 21f7fcc7cb5..a0b9b572957 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_wasm_bindgen_test_runner_version_information_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-V"); then_the_standard_output_should_have( - context, + &context, &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs index 39e0fa9468f..51ca7e9b1a5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_option(&mut context, "-V"); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs index 67da04b6554..2289f314b89 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs index f7886c57772..258f256085a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 81c62af3b25..e2c99e90765 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index 2770d2e256b..72490f4ae9d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs index 54375f4692e..3dd3b1f5a95 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs index 31309ebed5b..f3b75e5f956 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs index a454d9d748c..4b6716ed170 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 8aaa6aa42c7..3102f8b6b37 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index d061e746ed8..7aa2195a05d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs index ddba852da20..afcc8105739 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs index ea3f532711b..6f365c0cdcb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs index a5e07692653..211e0d6960d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index b53e424c4fc..84330951590 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index 064244d1cbf..91d5f7519ef 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs index 812d0e9a36c..c3dc52b2c94 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs index 4e8fa6845db..73702c48b3f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--include-ignored", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs index aa05271fce2..644bc52ecc7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_failure_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "failures:\n\n assembly_with_one_failing_test::fail", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs index c479d2aa1d4..bf4cd5edbc6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs index b18431fa088..0106fc85a1b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_failed_test_assertion_error_feature() { "--include-ignored", ); then_the_standard_error_should_have( - context, + &context, "assertion `left == right` failed\n left: 1\n right: 2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs index 03fb083b5e0..cadbcddc111 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_failed_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_failing_test::fail ... FAIL", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs index 1549163b440..1e87eac8382 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/returns_failure_feature.rs @@ -11,5 +11,5 @@ fn returns_failure_feature() { &mut context, "--include-ignored", ); - then_failure_should_have_been_returned(context); + then_failure_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs index 1ff3f7031aa..cf8ed6aad02 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--include-ignored", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs index f59d5a5fa66..c3d5bd0613b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--include-ignored", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs index 2829e62e3fa..48fa4a8ec2e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs index 05dd0b1f0e7..65729651ab3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/outputs_the_ignored_test_successful_execution_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_ignored_test_successful_execution_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_ignored_test::ignored ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs index 9a678204c5d..936fa844629 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--include-ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs index a00ab92d3bc..e16094c68a7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--include-ignored", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs index bf394b62be9..d30a05565f8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--include-ignored", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs index 709eab76a24..7b1105fed08 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs index 5dd881d947f..838bf6d2f66 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_successful_execution_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_ignored_test_successful_execution_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_ignored_with_reason_test::ignored ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index b7ec485fa11..b48a604f434 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--include-ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs index 7c4534c8eff..80bbbd74c86 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_tests_feature() { &mut context, "--include-ignored", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs index bc038be33ce..e7ff4202083 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_failure_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs index 55e997bff14..b7400b1d582 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs index 96914af8ace..5f1fbfce069 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_failed_test_assertion_error_feature() { "--include-ignored", ); then_the_standard_error_should_have( - context, + &context, "assertion `left == right` failed\n left: 1\n right: 2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs index 80eb4becf79..c8868825063 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_failed_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs index 47549b68445..96b0e39dde5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_successful_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_failing_tests::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs index a7132bba7cc..aa5016d13d6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs @@ -11,5 +11,5 @@ fn returns_failure_feature() { &mut context, "--include-ignored", ); - then_failure_should_have_been_returned(context); + then_failure_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs index 730b8af7202..385e94b5068 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_tests_feature() { &mut context, "--include-ignored", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs index 78826e7cf96..1fc2c899342 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs index 85f3d10c8dc..283cab283f9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_successful_execution_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_ignored_test_successful_execution_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_ignored_tests::ignored ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs index 3f0da2a16c4..2a525df7843 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_ignored_test_successful_execution_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_ignored_tests::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index 0ba0725d76c..5f2f861fe2e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--include-ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs index c81bc5f4395..21fc8bfdf51 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--include-ignored", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs index e1beb4e6470..aadee81f6a1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--include-ignored", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 6cec28f0368..a39680b7c46 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index 205d687a9c8..48b9943ca6d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_successful_test_summary_feature() { "--include-ignored", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs index 4be9752541e..f9be0a78d65 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--include-ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs index ed1bb78158a..703eb43cf12 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"ignored: test"#); + then_the_standard_output_should_have(&context, r#"ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs index 51b6944c9a2..1d59c4b8d5c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs index 3cfa532fa74..f09ed1a68ba 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"ignored: test"#); + then_the_standard_output_should_have(&context, r#"ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index 5e0fd076034..9c4b70e5f04 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs index dfecba077c1..d58e4db180f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs @@ -11,5 +11,5 @@ fn outputs_nothing_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_be_empty(context); + then_the_standard_output_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs index c92b464350b..a7941478876 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs index a0e0bfb67fa..49776e97fca 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_ignored_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"ignored: test"#); + then_the_standard_output_should_have(&context, r#"ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index 75d6a7b54de..ef4bff0ad31 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs index 3e03e4adfd2..21d4f369668 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"level_1::ignored: test"#); + then_the_standard_output_should_have(&context, r#"level_1::ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs index b96a4339ea0..0f9bdb24f66 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs index 94741347e60..c25f3166911 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/outputs_nothing_feature.rs @@ -11,5 +11,5 @@ fn outputs_nothing_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_be_empty(context); + then_the_standard_output_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs index 276b713474d..fd6e1bcbd49 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs index b78bb983265..4d3ec213806 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_ignored_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"level_1::ignored: test"#); + then_the_standard_output_should_have(&context, r#"level_1::ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index 86d2610899e..1f394b13d77 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs index 45c108d4098..e34fe312691 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"level_1::level_2::ignored: test"#); + then_the_standard_output_should_have(&context, r#"level_1::level_2::ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs index 025b37eac75..094d0d52694 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs index 0c794b8772e..8e4db746ebf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/outputs_nothing_feature.rs @@ -11,5 +11,5 @@ fn outputs_nothing_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_be_empty(context); + then_the_standard_output_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/returns_success_feature.rs index 37b297b7905..3301c031207 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_failing_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs index 5f4de88cece..e10c77c47ca 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_ignored_test_in_the_terse_format_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_have(context, r#"level_1::level_2::ignored: test"#); + then_the_standard_output_should_have(&context, r#"level_1::level_2::ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index c747636414d..0e33872cf99 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs index 447b089b92b..50dfefaa994 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs @@ -11,5 +11,5 @@ fn outputs_nothing_feature() { &mut context, "--list --format terse --ignored", ); - then_the_standard_output_should_be_empty(context); + then_the_standard_output_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs index c2503dfd031..2ac3a95d2c0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse --ignored", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..8c8cf7128e8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs @@ -0,0 +1,21 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_ignored_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( + "--list --format terse", + ); + + "Ouputs the test in the terse format" { + then_the_standard_output_should_have("ignored: test"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/mod.rs index be94fe3d391..9c26b46a215 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/mod.rs @@ -1,2 +1,3 @@ +//mod lists_the_tests_in_the_terse_format_feature; mod outputs_the_test_in_the_terse_format_feature; mod returns_success_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs index a7d3c85392b..8a1303d073f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse", ); - then_the_standard_output_should_have(context, r#"ignored: test"#); + then_the_standard_output_should_have(&context, r#"ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/returns_success_feature.rs index a71a714f9c9..399054c71b2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs index d17da9fbe5b..98ad62e71cb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse", ); - then_the_standard_output_should_have(context, r#"ignored: test"#); + then_the_standard_output_should_have(&context, r#"ignored: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index 71e6e7abd81..454b4f930df 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs index d54414793a0..0bb8c9c9b87 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/outputs_all_tests_in_the_terse_format_feature.rs @@ -12,7 +12,7 @@ fn outputs_all_tests_in_the_terse_format_feature() { "--list --format terse", ); then_the_standard_output_should_have( - context, + &context, r#"pass: test fail: test"#, ); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs index 6c1046a44e1..73f842bea13 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_failing_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs index f484d5216e7..e1150fc988d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/outputs_all_tests_in_the_terse_format_feature.rs @@ -12,7 +12,7 @@ fn outputs_all_tests_in_the_terse_format_feature() { "--list --format terse", ); then_the_standard_output_should_have( - context, + &context, r#"pass: test ignored: test"#, ); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index c60ea02bf31..301563edf6b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs index fdc763aa14f..31eddcad5b5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -12,7 +12,7 @@ fn outputs_all_tests_in_the_terse_format_feature() { "--list --format terse", ); then_the_standard_output_should_have( - context, + &context, r#"level_1::pass: test level_1::fail: test"#, ); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs index 5c3670b8701..5ace5887c2e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs index a38735e8181..a8e43d28cf1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -12,7 +12,7 @@ fn outputs_all_tests_in_the_terse_format_feature() { "--list --format terse", ); then_the_standard_output_should_have( - context, + &context, r#"level_1::pass: test level_1::ignored: test"#, ); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs index c3f318dfa49..7ac9183ffb1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_and_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs index 615d3619389..2e6f20569c3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_test_in_the_terse_format_feature() { &mut context, "--list --format terse", ); - then_the_standard_output_should_have(context, r#"level_1::pass: test"#); + then_the_standard_output_should_have(&context, r#"level_1::pass: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs index 4c9d34cc26a..81d00b5f75f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs index 12740dbb4e0..c3874180899 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -12,7 +12,7 @@ fn outputs_all_tests_in_the_terse_format_feature() { "--list --format terse", ); then_the_standard_output_should_have( - context, + &context, r#"level_1::level_2::pass: test level_1::level_2::fail: test"#, ); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs index 1b611929d0d..3524b18af70 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_failing_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs index 79c111d4df0..e7162c43b4d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/outputs_all_tests_in_the_terse_format_feature.rs @@ -12,7 +12,7 @@ fn outputs_all_tests_in_the_terse_format_feature() { "--list --format terse", ); then_the_standard_output_should_have( - context, + &context, r#"level_1::level_2::pass: test level_1::level_2::ignored: test"#, ); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs index 07242a34355..8d20b80918f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_and_one_ignored_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs index 83edbe697c5..2275f4df246 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/outputs_the_test_in_the_terse_format_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--list --format terse", ); - then_the_standard_output_should_have(context, r#"level_1::level_2::pass: test"#); + then_the_standard_output_should_have(&context, r#"level_1::level_2::pass: test"#); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs index 7693981015a..a5834e5f8e2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs index 2cb60f40c18..1ddbc69080c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs @@ -11,5 +11,5 @@ fn outputs_nothing_feature() { &mut context, "--list --format terse", ); - then_the_standard_output_should_be_empty(context); + then_the_standard_output_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs index 243d442c27d..cf2ce970b7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--list --format terse", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs index 6e89f417821..ca4db76c506 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs index f8c3f1359ba..54f51e2588b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 55d495c1e84..9316b8a491c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=pass", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 31831089a4d..04185627d65 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs index e1a0218c57c..a6bbc4e4600 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs index b8eefb0456f..6bbf75e6406 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=as", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs index 6a887440d32..af1d3022cb9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=as", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index da7b21cb810..cf39cf3f45d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=as", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs index ab89a5b3c82..42141677669 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=as", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs index b67719be764..ff1d19f06b2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=as", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs index b3b4a896eed..82a3c9a9b53 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=pa", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs index 8ac2896abd9..b8138170fe7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pa", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 78b11338789..68a63b6629c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=pa", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index ab6fdcc0162..9c69b1ca5d5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pa", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs index d73ac18c10f..4b41d943c03 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pa", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs index 961c6c4c959..ab826e88eda 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=ss", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs index 3c747f803cd..e2d02ba026d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=ss", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 8476e2e8882..8824537da36 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=ss", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 758122f10bd..c54b88f53a5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=ss", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs index 8c0c9cdc246..acdc52c1fe8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=ss", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 47b0b5e866a..b5ebdc017e2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 73f12ea965d..1358c48ca1e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index c7a105c174b..2d265330617 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 43697c928fb..ce2637ba5d1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 91d4075d9b7..443613454ed 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs index 597ee0d8d0e..bef2b885035 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs index 6382d549a11..cd989383c6d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=pattern", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs index 919fa480644..ade91b782df 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pattern", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 3f9b08853c8..edac61892c6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pattern", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs index 876c531d785..2c2d60258ba 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_successful_test_summary_feature() { "--skip=pattern", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs index d5f1e20b613..11f21ff8244 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pattern", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs index 70c9a5ec79d..fb7834d91a5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=level_1::pass", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs index 064df12f7d6..b0eb06bacd3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=level_1::pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index cd32a8a2f0d..4ef0b8a298c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=level_1::pass", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 92fa77ef990..6e3c7f134ad 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=level_1::pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs index ee7614619d6..bc7e45f1547 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=level_1::pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs index d43a433fa9f..8cfbc64e470 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=1::", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs index 9f5e0580c8c..0526c51f7be 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=1::", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 4144cb73e31..db4fadb2ef6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=1::", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs index dad7efceb41..cbf3a02651b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=1::", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs index c9cdabe68a9..50a8ee84420 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=1::", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs index 413b51a7f02..ac864153c45 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=level_1", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs index 0bcf95a3478..9cc1d493527 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=level_1", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index a3a6f484ef0..55ea8c4a5a4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=level_1", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 9a05aa3b72f..1b1944e4df6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=level_1", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs index c8122581680..f5fdd55ec49 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=level_1", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs index cb144ae2455..a97dd6bfd0c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=ss", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs index 10932dab026..c7ce74349a1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=ss", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 525825d3c49..5007ea7fb90 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip=ss", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 6f643d4c777..8fe7ecc2350 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=ss", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs index ecb86eb6f36..e14eab5efbf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=ss", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index e44b2627efe..a9e71575332 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 65d883533d1..9f2406facbc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 8114ad0ff73..30355bccbec 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 37234a650f0..d8e480e7153 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip=pass", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 3d68f977867..7bcae2e959f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs index fbb9bca4f51..1caa22b1641 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs index 0ce9fa95fe1..f5734bb4c26 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip=pattern", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs index a9edcf6da92..5137403dca7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pattern", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 33baf9f043e..189484d711f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pattern", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs index aea87a9c326..8ac6d5b8997 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_successful_test_summary_feature() { "--skip=pattern", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_level_1_test::level_1::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs index 5b3d1d94c5a..9037069cc00 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pattern", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs index b010a40805f..8f248275fb5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_tests_to_run_warning_feature() { &mut context, "--skip=pattern", ); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs index 91d3b2be224..b13cd5471d2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pattern", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 7797afb2296..4872d185180 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip=pass_1 --skip=pass_2", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 010fe65a852..15405aae49e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pass_1 --skip=pass_2", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index aa76ea77cd2..fc103f21c8f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip=pass_1 --skip=pass_2", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index d94d40df56e..9eb15a98abd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip=pass_1 --skip=pass_2", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index a8c462a7f9a..4fa575d9110 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pass_1 --skip=pass_2", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs index 4b7b4ab65cb..ed6eca52319 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pass_1 --skip=pass_2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 38f70eb82ca..a0b93d6becd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip=pass_1 --skip=level_1", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 617da508ecb..f0537043703 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=pass_1 --skip=level_1", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index e2d6ad49cc8..8c256daefb2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip=pass_1 --skip=level_1", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 8970f3b49b5..685d5e01604 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip=pass_1 --skip=level_1", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 2e00e1db472..fe2402bac70 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=pass_1 --skip=level_1", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs index b00704b9217..dd2aa11626e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pass_1 --skip=level_1", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs index 0573718e25c..cf988cd4c2f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_tests_to_run_warning_feature() { &mut context, "--skip=pattern1 --skip=pattern2", ); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs index a9ddfdc8480..459ac43957a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pattern1 --skip=pattern2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 47bda63e80b..94af2aea6ff 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip=fail --skip=pass_1 --skip=pass_2", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 4f0979d40d6..353a0373e98 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip=fail --skip=pass_1 --skip=pass_2", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 05cbe2dee44..3524a6246a5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip=fail --skip=pass_1 --skip=pass_2", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 68316029df3..bb5c427962d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip=fail --skip=pass_1 --skip=pass_2", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index e3c06c898f0..4d98636abd6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip=fail --skip=pass_1 --skip=pass_2", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs index bc129df501c..5e3e07275af 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=fail --skip=pass_1 --skip=pass_2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index c0cee64766c..f34ae97b6dc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip fail --skip pass_1 --skip level_1", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 455ec31700f..71cecdc561c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip fail --skip pass_1 --skip level_1", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 1ba7f11e7a3..72b1db69f42 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip fail --skip pass_1 --skip level_1", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 6c79b5d8731..deafc9f8408 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip fail --skip pass_1 --skip level_1", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index c15c8946aff..3ea07d92105 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip fail --skip pass_1 --skip level_1", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs index 7a251f35bef..dfae4817a49 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip fail --skip pass_1 --skip level_1", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs index 5f9834b5e17..0b10f720326 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_tests_to_run_warning_feature() { &mut context, "--skip=pattern1 --skip=pattern2 --skip=pattern3", ); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs index 2944c838be9..75ada6f3340 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip=pattern1 --skip=pattern2 --skip=pattern3", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs index b3050f2f66f..1d54d3cf46c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs index 858a015acd6..4913fa80a89 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 3d12cb5b3a8..27a9b578261 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip pass", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 2d43755243c..f5521052669 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs index 420d0925d42..b24c47e9a99 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs index 7f323080242..5aaebf62a62 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip as", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs index d0df9d19f70..3562bf2f428 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip as", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 7a1e94e6b07..5208d237a68 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip as", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs index fed188682ae..9704223ed73 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip as", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs index 99837d8814d..e7f16779e59 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip as", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs index 8bb14773e37..6decabd868d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip pa", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs index cfa83173a66..6a0bf21844c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pa", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 933813c2045..755e7a6f3a2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip pa", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 286e7ab3359..3979facb611 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pa", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs index cf2f8cd8d93..846124205b2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pa", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs index e4e206b15b8..9c209971471 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip ss", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs index 0569fff20a6..bb7984ce4f9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip ss", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 3577ee0652a..d6534832a6e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip ss", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 24f09eef8df..ccbd1346ac4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip ss", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs index 99812870858..a69f9274c43 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip ss", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 63e2af0f332..c50197585f4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 557eccd955b..e5b5bf3dbb1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 91e91fff17c..4899d87df08 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 4089f8afbd0..885d2ada742 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 7936c3579d8..a5c90b8ff20 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs index d828db2b31d..697487ad26f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs index 0ddad7ae514..7aababd1e90 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip pattern", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs index c6780b818a9..332acd03fbe 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pattern", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 56a4fbc2ecf..01e231fbc8a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pattern", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs index b080c7d1026..e09e43b1dad 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_successful_test_summary_feature() { "--skip pattern", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs index cc9e5d329ec..724c53441ed 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pattern", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs index 23dec4e85cd..953585c84af 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip level_1::pass", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs index 51d14fd2ae4..6841aeb2d34 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip level_1::pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index bf178192139..94dbe635c40 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip level_1::pass", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 8c283ec66d9..3658591dcc1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip level_1::pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs index 3562ce8c936..e25b27a6483 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip level_1::pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs index 1606f655551..7efde920ff8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip 1::", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs index 687353eec0a..513b8feaee3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip 1::", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 0def2d0a136..1468ecd29bb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip 1::", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 24cf0f724b5..c6cdc790503 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip 1::", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs index 57367770a4e..4e8a4f76719 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip 1::", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs index 61ae21245d2..1ff5be75b26 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip level_1", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs index 483431c4118..115b9cb7b79 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip level_1", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 3d8e5252500..f6e9519ea2e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip level_1", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 1f78973395d..dc451ca8ccf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip level_1", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs index 8130fc571c2..9960ec353b7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip level_1", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs index 571d43d6ba0..f1beb1caf14 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip ss", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs index 5ea875742d3..98e62c858a1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip ss", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 4fe3e690b1c..6ea2922d154 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "--skip ss", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 4f5984d5b26..4a9736d3fbd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip ss", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs index f22fffe2983..8718b418014 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip ss", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index aa0fa5ca80e..e18002ebcb6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 63858ff58f6..76686fa887b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index a0f8e9256aa..2c25374fce6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 89bba929828..3786ea789a8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index e03c2088805..75163f06678 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs index ecf09be8c11..32eba739426 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs index d21c1483c27..c827e99cdd6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "--skip pattern", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs index 962c8e78864..99d3de866e6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pattern", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs index f84cd29644b..4161fa609a4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pattern", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs index bb954bfd2e9..21f48b017a8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_successful_test_summary_feature() { "--skip pattern", ); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_level_1_test::level_1::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs index 71df856cf13..f544aa31ed0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pattern", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs index f2a1cdcf45d..750ba2f7c9b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_tests_to_run_warning_feature() { &mut context, "--skip pattern", ); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs index 48ae04277f6..3cb9566b133 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pattern", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 8c2fe238e86..effdcb25094 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 34bd58d8a9b..965d519fd55 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 0263e158cb0..43a43c070ad 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 9c8762ea695..b5a207adcb7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 0980fd22b8e..fa7dfd1b60a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pass_1 --skip pass_2", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs index b0e05d0d56b..867e27e0c82 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pass_1 --skip pass_2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index f9931f499e7..c09f6245b55 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index de23478876b..96386748ae9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index a0ac999bf8e..e5d1efc580e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index a6d3add9499..6b5b0130f5b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 2f16a8d4685..809aed13fba 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip pass_1 --skip level_1", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs index c9d82ac0b90..a55183d8f5a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pass_1 --skip level_1", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs index 47ed8534ee8..8cc9a36128c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_tests_to_run_warning_feature() { &mut context, "--skip pattern1 --skip pattern2", ); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs index fcc91397b99..853a6d28329 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pattern1 --skip pattern2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 451d71ff1ca..58d43e324d9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index b188bc3e795..c9da73ed664 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index 09646ce3250..aaa78c8588f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index 26daa7df1a8..987c9f4c9e8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index f29473981af..71be8625186 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip fail --skip pass_1 --skip pass_2", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs index b2164127b33..22d76076318 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 3cd52d71a43..e7e3890eb5b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 48753cef83e..de08973608a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs index c8bbbe17caa..ad4c1dcbc19 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_1_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs index af3e78b0610..6574783ef19 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_no_information_about_the_skipped_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_the_skipped_test_2_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 37da5c888f0..a9607993039 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "--skip fail --skip pass_1 --skip pass_2", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs index bbcd6a41b98..ddade3af7f5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip fail --skip pass_1 --skip pass_2", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs index 46f356531eb..64b4a170bc0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_tests_to_run_warning_feature() { &mut context, "--skip pattern1 --skip pattern2 --skip pattern3", ); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs index ce47c2a7023..ec422d7be59 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "--skip pattern1 --skip pattern2 --skip pattern3", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs index a0c8ba0392b..e91d110dfec 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_its_running_0_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_0_tests_feature() { &mut context, "pass --nocapture --exact", ); - then_the_standard_output_should_have(context, "running 0 tests"); + then_the_standard_output_should_have(&context, "running 0 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs index e6969983627..dceff8e9661 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "pass --nocapture --exact", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs index 6a05ab5e6e7..57c31a9dae7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_test_1_feature() { &mut context, "pass --nocapture --exact", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs index af4138053ba..a86b995dbd4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_no_information_about_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_test_2_feature() { &mut context, "pass --nocapture --exact", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs index f9d0b3f3a96..94d490c8fd3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "pass --nocapture --exact", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs index 95f2bcf4a76..1b05be2b066 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "pass --nocapture --exact", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs index ffa390489c8..aff31c9ef70 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "pass_1 --nocapture --exact", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs index be7e98b6344..b5e7ccbeace 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "pass_1 --nocapture --exact", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs index 88ff60433c1..0a8d2c59b94 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_no_information_about_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_test_2_feature() { &mut context, "pass_1 --nocapture --exact", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs index 0b43f6d403c..be539a0b79c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "pass_1 --nocapture --exact", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs index be2aa07cc60..fa37a139ce3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_standard_output_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_1_standard_output_feature() { &mut context, "pass_1 --nocapture --exact", ); - then_the_standard_output_should_have(context, "pass_1 standard output"); + then_the_standard_output_should_have(&context, "pass_1 standard output"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs index 4753bb7da74..52a4fa397e7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/outputs_the_successful_test_1_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_1_summary_feature() { &mut context, "pass_1 --nocapture --exact", ); - then_the_standard_output_should_have(context, "pass_1 ... ok"); + then_the_standard_output_should_have(&context, "pass_1 ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs index 7d48e764c3e..8ded9955d32 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "pass_1 --nocapture --exact", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs index 0e06bd53c75..3f7878d1a5c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "pass_2 --nocapture --exact", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs index f1fba9fc07f..9b772d22b36 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "pass_2 --nocapture --exact", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs index c1ed06e35de..4bb2a49e2d8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_no_information_about_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_test_1_feature() { &mut context, "pass_2 --nocapture --exact", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs index 37a105e3ab0..8df859a7875 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "pass_2 --nocapture --exact", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs index 660c759fc1b..2492037d99d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_standard_output_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_2_standard_output_feature() { &mut context, "pass_2 --nocapture --exact", ); - then_the_standard_output_should_have(context, "pass_2 standard output"); + then_the_standard_output_should_have(&context, "pass_2 standard output"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs index 643aa952969..6fac684eb9b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/outputs_the_successful_test_2_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_2_summary_feature() { &mut context, "pass_2 --nocapture --exact", ); - then_the_standard_output_should_have(context, "pass_2 ... ok"); + then_the_standard_output_should_have(&context, "pass_2 ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs index 49bea46e2a2..8e72c9616f2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "pass_2 --nocapture --exact", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs index 517db12ec8c..713f57894d6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_its_running_0_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_0_tests_feature() { &mut context, "boo --nocapture --exact", ); - then_the_standard_output_should_have(context, "running 0 tests"); + then_the_standard_output_should_have(&context, "running 0 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs index 01004b3f31b..70f4732e227 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "boo --nocapture --exact", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs index 39bb602c693..6e8d5664695 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_1_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_test_1_feature() { &mut context, "boo --nocapture --exact", ); - then_the_standard_output_should_not_have(context, "pass_1"); + then_the_standard_output_should_not_have(&context, "pass_1"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs index d6c648577e6..da48e3fa31e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_information_about_test_2_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_information_about_test_2_feature() { &mut context, "boo --nocapture --exact", ); - then_the_standard_output_should_not_have(context, "pass_2"); + then_the_standard_output_should_not_have(&context, "pass_2"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs index c9b50efeec4..ee161447cb9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "boo --nocapture --exact", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs index b42ff67ac67..36872863399 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "boo --nocapture --exact", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs index de31b62c07b..5d33c558159 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "pass", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs index 4f91c351cfe..a6f683e7755 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 7412a21e46c..d32ee62261a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs index 2a1beb5dbe9..c97d519d350 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_summary_feature() { &mut context, "pass", ); - then_the_standard_output_should_have(context, "pass ... ok"); + then_the_standard_output_should_have(&context, "pass ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs index 194e6147639..58a0212e16e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs index 5836ba13bee..18e9536399f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "as", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs index 6a2873ee545..04bb065ffae 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "as", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 96e07246fd0..0415501f5e4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "as", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs index 0690354e5ac..0bad83c0c0a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_summary_feature() { &mut context, "as", ); - then_the_standard_output_should_have(context, "pass ... ok"); + then_the_standard_output_should_have(&context, "pass ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs index cd8fc1d3212..35297c6ad6a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "as", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs index 5a2a5912b9a..cefb96d00f0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "pa", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs index 452228f7b37..3fc2869a6f5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "pa", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 0e8a536ee7e..cca01a57901 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "pa", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs index 846de77b043..96940b741b3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_summary_feature() { &mut context, "pa", ); - then_the_standard_output_should_have(context, "pass ... ok"); + then_the_standard_output_should_have(&context, "pass ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs index 74617d6d331..bb6c1dd8d0e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "pa", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs index bacf65e4f20..2cf820d064c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "ss", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs index 0de17785e61..443ba658218 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "ss", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs index 263503c678b..0930884db7b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "ss", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs index 60538fb9223..b30cc4449a6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/outputs_the_successful_test_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_summary_feature() { &mut context, "ss", ); - then_the_standard_output_should_have(context, "pass ... ok"); + then_the_standard_output_should_have(&context, "pass ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs index 58bf7d51bc0..d1ba66cf007 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "ss", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs index 893313d2371..6f272c02c18 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_its_running_2_tests_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_2_test_feature() { &mut context, "pass", ); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs index 0e1dc06ebb8..85c3e786f59 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "pass", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs index 0275b1dda4e..afc98691d63 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "pass", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs index 7b1db097cf5..7656151feb9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_1_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_1_summary_feature() { &mut context, "pass", ); - then_the_standard_output_should_have(context, "pass_1 ... ok"); + then_the_standard_output_should_have(&context, "pass_1 ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs index 275d6a0a18a..47ebd4ff09b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/outputs_the_successful_test_2_summary_feature.rs @@ -11,5 +11,5 @@ fn outputs_the_successful_test_2_summary_feature() { &mut context, "pass", ); - then_the_standard_output_should_have(context, "pass_2 ... ok"); + then_the_standard_output_should_have(&context, "pass_2 ... ok"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs index 01a96af14a6..e9510645ab7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "pass", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs index febffab4b76..3487e70d3b9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_its_running_1_test_feature.rs @@ -11,5 +11,5 @@ fn outputs_its_running_1_test_feature() { &mut context, "cool", ); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs index 2469be5352c..7d0f9305659 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs @@ -11,5 +11,5 @@ fn outputs_no_error_feature() { &mut context, "cool", ); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs index 62c65c26d85..eec9fe7ea1e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_information_about_the_skipped_test_feature.rs @@ -12,7 +12,7 @@ fn outputs_no_information_about_the_skipped_test_feature() { "cool", ); then_the_standard_output_should_not_have( - context, + &context, "test assembly_with_one_successful_test::pass", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs index b36140f48d0..1adf56ef665 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -12,7 +12,7 @@ fn outputs_the_assembly_test_summary_feature() { "cool", ); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs index eeb6cc86510..57bee856988 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs @@ -11,5 +11,5 @@ fn returns_success_feature() { &mut context, "cool", ); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs index d9270eaa1e7..ccf6bb752af 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs index c4801881052..8313595e025 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_failure_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_failure_summary_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "failures:\n\n assembly_with_one_failing_test::fail", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs index 910af5cd6e8..b7de831ef1f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs index adcad113fb4..92288d2ee7f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_assertion_error_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_failed_test_assertion_error_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_error_should_have( - context, + &context, "assertion `left == right` failed\n left: 1\n right: 2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs index 8e81cbff2c2..2bf1f5af8c9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/outputs_the_failed_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_failed_test_summary_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_failing_test::fail ... FAIL", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs index 1d2dd3ccd88..47b417e76b6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs @@ -8,5 +8,5 @@ fn returns_failure_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_failure_should_have_been_returned(context); + then_failure_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs index 15cefdb74c0..3115ee423dd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_ignored_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs index e6c90eb3b17..30a2e080493 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_ignored_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs index 281c2aca9b2..a04301671f0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_ignored_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs index 95ea8313fc4..414682e57c7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_the_ignored_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_ignored_test_summary_feature() { given_there_is_an_assembly_with_one_ignored_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_ignored_test::ignored ... ignored", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs index 7e2226defae..cf2c5530769 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_ignored_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs index 43a919c8d82..7f088f8965b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs index f0763f328e0..d005b7c3a40 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs index 7062e938652..5e924fdd808 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs index e13f205796a..e01bb713910 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/outputs_the_ignored_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_ignored_test_summary_feature() { given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_ignored_with_reason_test::ignored ... ignored, test", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs index 68278f73026..c0b2c36f344 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_ignored_with_reason_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs index 8a891e0ed2c..7672c61985e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_its_running_2_tests_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_2_tests_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs index 2e5cc6c95d2..756450cfcf0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_failure_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_failure_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs index 31f3acb6b33..3b9b9625dd6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs index 45e364089e4..7b5d304560f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_assertion_error_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_failed_test_assertion_error_feature() { given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_error_should_have( - context, + &context, "assertion `left == right` failed\n left: 1\n right: 2", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs index 7f04aa7876d..b6b903a7fcc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_failed_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_failed_test_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs index e16dab16c9a..0f97c7d14d0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_failing_tests::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs index 920723012be..88a6a69d90b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/returns_failure_feature.rs @@ -8,5 +8,5 @@ fn returns_failure_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_failing_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_failure_should_have_been_returned(context); + then_failure_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs index c7348533a91..9ded9dcb74f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_its_running_2_tests_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_2_tests_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 2 tests"); + then_the_standard_output_should_have(&context, "running 2 tests"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs index 543a52859ef..5d75b080472 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 1 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs index 0caed366754..70459025bbe 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_ignored_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_ignored_test_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_ignored_tests::ignored ... ignored", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs index 73bb040fd42..eaa25c6f508 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_and_one_ignored_tests::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs index c1f9b50d225..519e245e818 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs index b964b39781a..bf861595afb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs index 1c7e3202bda..3c4a51bf5a8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 062a83acebf..ac2e4599fa3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index b128ae5a091..0d26c5ed5f3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_test::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs index d39fe20c7b3..2a4d9f053f3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs index 6107516fee3..f2ab09c3dd4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs index 7acf8cad11a..d2731e0289c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 2dbda383a10..280cc85469d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index cc76f5d1203..a3fc69f402b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_level_1_test::level_1::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs index 0c34d55a85c..0a0b83fcf3e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_level_1_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs index b44a7768536..44aaeaf603d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_its_running_1_test_feature.rs @@ -8,5 +8,5 @@ fn outputs_its_running_1_test_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "running 1 test"); + then_the_standard_output_should_have(&context, "running 1 test"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs index eb2f2ff15c7..dc728576566 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_error_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs index 621d97e927b..55f90e0d0f8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_assembly_test_summary_feature() { given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs index cd18f38c1ab..9c7a449c484 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_the_successful_test_summary_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_successful_test_summary_feature() { given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); then_the_standard_output_should_have( - context, + &context, "test assembly_with_one_successful_level_2_test::level_1::level_2::pass ... ok", ); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs index 33cee2f3af9..05a2aaded5f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_with_one_successful_level_2_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs index 4c45abbc111..dbe3ba0d600 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_tests_to_run_warning_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_error_should_be_empty(context); + then_the_standard_error_should_be_empty(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs index cc17773bef5..be6a8a9ddc3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs @@ -8,5 +8,5 @@ fn outputs_no_tests_to_run_warning_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_the_standard_output_should_have(context, "no tests to run!"); + then_the_standard_output_should_have(&context, "no tests to run!"); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs index d0b44b70fd9..448550aa7c9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs @@ -8,5 +8,5 @@ fn returns_success_feature() { let mut context = Context::new(); given_there_is_an_assembly_without_anything(&mut context); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(&mut context); - then_success_should_have_been_returned(context); + then_success_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs index 425369a347f..3c8ec44d914 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs @@ -6,5 +6,5 @@ use crate::__steps__::Context; fn outputs_test_file_missing_error_feature() { let mut context = Context::new(); when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); - then_the_standard_error_should_have(context, "Invalid arguments."); + then_the_standard_error_should_have(&context, "Invalid arguments."); } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs index 2b5eb0665ed..a34615937dd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs @@ -9,7 +9,7 @@ fn outputs_the_wasm_bindgen_test_runner_usage_information_feature() { given_there_is_an_assembly_with_one_failing_test(&mut context); when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); then_the_standard_error_should_have( - context, + &context, r#"Usage: wasm-bindgen-test-runner [options] [] [--include-ignored] [(--skip PATTERN)...] [--nocapture] wasm-bindgen-test-runner [options] [--nocapture] --exact diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs index a904190ab94..115af160f9b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs @@ -6,5 +6,5 @@ use crate::__steps__::Context; fn returns_an_error_code_feature() { let mut context = Context::new(); when_wasm_bindgen_test_runner_is_invoked_without_arguments(&mut context); - then_failure_should_have_been_returned(context); + then_failure_should_have_been_returned(&context); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/tests/wasm_bindgen_test_runner/__steps__/context.rs index 742b5319e65..41311b4caa5 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/context.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/context.rs @@ -14,8 +14,8 @@ impl Context { } } - pub fn into_output(self) -> Result { - self.output.unwrap() + pub fn output(&self) -> Result { + Ok(self.output.as_ref().unwrap().as_ref()?.clone()) } pub fn output_set(&mut self, output: Result) { diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs index 8b81dd15c56..c8a66cf273c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs @@ -1,8 +1,8 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; -pub fn then_failure_should_have_been_returned(context: Context) { - let output = context.into_output().expect("No output was produced"); +pub fn then_failure_should_have_been_returned(context: &Context) { + let output = context.output().expect("No output was produced"); output.assert().failure(); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs index d63cc772f75..846c88b0084 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs @@ -2,8 +2,8 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_error_should_be_empty(context: Context) { - let output = context.into_output().expect("No output was produced"); +pub fn then_the_standard_error_should_be_empty(context: &Context) { + let output = context.output().expect("No output was produced"); output.assert().stderr(str::is_empty()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs index 20ad78a5391..b8de94dc6ab 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs @@ -2,8 +2,8 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_error_should_have(context: Context, content: &str) { - let output = context.into_output().expect("No output was produced"); +pub fn then_the_standard_error_should_have(context: &Context, content: &str) { + let output = context.output().expect("No output was produced"); output.assert().stderr(str::contains(content)); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs index 2371d590942..57074eea6a8 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs @@ -2,8 +2,8 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_output_should_be_empty(context: Context) { - let output = context.into_output().expect("No output was produced"); +pub fn then_the_standard_output_should_be_empty(context: &Context) { + let output = context.output().expect("No output was produced"); output.assert().stdout(str::is_empty()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs index f8eca918b61..ec21c468b96 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs @@ -2,8 +2,8 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_output_should_have(context: Context, content: &str) { - let output = context.into_output().expect("No output was produced"); +pub fn then_the_standard_output_should_have(context: &Context, content: &str) { + let output = context.output().expect("No output was produced"); output.assert().stdout(str::contains(content)); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs index fb218fae7cc..9ecd7a5a096 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs @@ -3,8 +3,8 @@ use assert_cmd::prelude::*; use predicates::boolean::PredicateBooleanExt; use predicates::str; -pub fn then_the_standard_output_should_not_have(context: Context, content: &str) { - let output = context.into_output().expect("No output was produced"); +pub fn then_the_standard_output_should_not_have(context: &Context, content: &str) { + let output = context.output().expect("No output was produced"); output.assert().stdout(str::contains(content).not()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs b/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs index dfc829d7961..4b62def3181 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs @@ -1,8 +1,8 @@ use crate::__steps__::Context; use assert_cmd::prelude::*; -pub fn then_success_should_have_been_returned(context: Context) { - let output = context.into_output().expect("No output was produced"); +pub fn then_success_should_have_been_returned(context: &Context) { + let output = context.output().expect("No output was produced"); output.assert().success(); }