From d40d5d50d23529998a9f6541ff301f7fbfb5ef42 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 18 Mar 2024 21:09:54 +0000 Subject: [PATCH 001/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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/323] 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(); } From f86254eb49d2344d7376d496b046b7f2ab0d0867 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 24 May 2024 20:51:29 +0100 Subject: [PATCH 225/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../invocation/options/__help/mod.rs | 3 +-- .../outputs_the_help_information_feature.rs} | 24 ++++++++++++------- .../options/__help/returns_success_feature.rs | 12 ---------- .../invocation/options/__version/mod.rs | 3 +-- ...outputs_the_version_information_feature.rs | 21 ++++++++++++++++ ...test_runner_version_information_feature.rs | 15 ------------ .../__version/returns_success_feature.rs | 12 ---------- .../__features__/invocation/options/_h/mod.rs | 3 +-- .../outputs_the_help_information_feature.rs} | 24 ++++++++++++------- .../options/_h/returns_success_feature.rs | 12 ---------- .../__features__/invocation/options/_v/mod.rs | 3 +-- ...outputs_the_version_information_feature.rs | 21 ++++++++++++++++ ...test_runner_version_information_feature.rs | 15 ------------ .../options/_v/returns_success_feature.rs | 12 ---------- 14 files changed, 76 insertions(+), 104 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/options/{_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs => __help/outputs_the_help_information_feature.rs} (72%) delete 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/__version/outputs_the_version_information_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/options/{__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs => _h/outputs_the_help_information_feature.rs} (72%) delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs delete 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/__help/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs index 1e1b94d44eb..cf94f06384b 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,2 +1 @@ -mod outputs_the_wasm_bindgen_test_runner_help_information_feature; -mod returns_success_feature; +mod outputs_the_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/__help/outputs_the_help_information_feature.rs similarity index 72% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs index 72309f4249f..b5d02299bf7 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/__help/outputs_the_help_information_feature.rs @@ -1,16 +1,17 @@ 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__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; -#[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_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 +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_option("--help"); + + "Outputs the wasm-bindgen-test-runner help information" { + then_the_standard_output_should_have( + 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)...] [--nocapture] @@ -38,5 +39,10 @@ Arguments: Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, - ); + ); + } + + "Returns success" { + then_success_should_have_been_returned(); + } } 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 deleted file mode 100644 index 5646cf0e1e6..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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_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_option(&mut context, "--help"); - then_success_should_have_been_returned(&context); -} 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 bb037e0f91c..bf4a3a88823 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,2 +1 @@ -mod outputs_the_wasm_bindgen_test_runner_version_information_feature; -mod returns_success_feature; +mod outputs_the_version_information_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs new file mode 100644 index 00000000000..0908784865c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs @@ -0,0 +1,21 @@ +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__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_option("--version"); + + "Outputs the wasm-bindgen-test-runner version information" { + then_the_standard_output_should_have( + &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), + ); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 deleted file mode 100644 index 29d37056be1..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_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_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 deleted file mode 100644 index 8a6631b2171..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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_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_option(&mut context, "--version"); - 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 1e1b94d44eb..cf94f06384b 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,2 +1 @@ -mod outputs_the_wasm_bindgen_test_runner_help_information_feature; -mod returns_success_feature; +mod outputs_the_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/_h/outputs_the_help_information_feature.rs similarity index 72% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_wasm_bindgen_test_runner_help_information_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs index ac0663b9409..641fd7e43b1 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/_h/outputs_the_help_information_feature.rs @@ -1,16 +1,17 @@ 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__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; -#[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_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 +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_option("-h"); + + "Outputs the wasm-bindgen-test-runner help information" { + then_the_standard_output_should_have( + 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)...] [--nocapture] @@ -38,5 +39,10 @@ Arguments: Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html "#, - ); + ); + } + + "Returns success" { + then_success_should_have_been_returned(); + } } 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 deleted file mode 100644 index 5a510db2f38..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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_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_option(&mut context, "-h"); - 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 bb037e0f91c..bf4a3a88823 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,2 +1 @@ -mod outputs_the_wasm_bindgen_test_runner_version_information_feature; -mod returns_success_feature; +mod outputs_the_version_information_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs new file mode 100644 index 00000000000..f400bfd64b9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs @@ -0,0 +1,21 @@ +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__::success::then_success_should_have_been_returned; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_option("-V"); + + "Outputs the wasm-bindgen-test-runner version information" { + then_the_standard_output_should_have( + &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), + ); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 deleted file mode 100644 index a0b9b572957..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_wasm_bindgen_test_runner_version_information_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_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_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 deleted file mode 100644 index 51ca7e9b1a5..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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_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_option(&mut context, "-V"); - then_success_should_have_been_returned(&context); -} From 9988372a5a5e9c1fd01c8f1054f5eb7a1a0d8431 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 24 May 2024 20:53:29 +0100 Subject: [PATCH 226/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- ...s => handles_missing_arguments_feature.rs} | 28 +++++++++++++------ .../invocation/without_arguments/mod.rs | 4 +-- ...outputs_invalid_arguments_error_feature.rs | 10 ------- .../returns_failure_feature.rs | 10 ------- 4 files changed, 20 insertions(+), 32 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/{outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs => handles_missing_arguments_feature.rs} (53%) delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs 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/handles_missing_arguments_feature.rs similarity index 53% rename from tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_the_wasm_bindgen_test_runner_usage_information_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs index a34615937dd..31382b55506 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/handles_missing_arguments_feature.rs @@ -1,20 +1,30 @@ 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__::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; +use auroka_morpheus_macros_feature::feature; -#[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, - r#"Usage: +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_without_arguments(); + + "Outputs the wasm-bindgen-test-runner usage information" { + then_the_standard_error_should_have(r#" +Usage: 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"#, - ); + ); + } + + "Outputs test file missing error" { + then_the_standard_error_should_have("Invalid arguments."); + } + + "Returns an error code" { + then_failure_should_have_been_returned(); + } } 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 34fb4fe6ffa..c8d19e73a5d 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,3 +1 @@ -mod outputs_invalid_arguments_error_feature; -mod outputs_the_wasm_bindgen_test_runner_usage_information_feature; -mod returns_failure_feature; +mod handles_missing_arguments_feature; 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 deleted file mode 100644 index 3c8ec44d914..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/outputs_invalid_arguments_error_feature.rs +++ /dev/null @@ -1,10 +0,0 @@ -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, "Invalid arguments."); -} 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 deleted file mode 100644 index 115af160f9b..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/returns_failure_feature.rs +++ /dev/null @@ -1,10 +0,0 @@ -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; - -#[test] -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); -} From 20a9cd63e807e1a97d110f58155a207b78f0b94a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 24 May 2024 21:08:12 +0100 Subject: [PATCH 227/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_test_feature.rs | 32 +++++++++++++++++++ .../deno/with_one_successful_test/mod.rs | 6 +--- .../outputs_its_running_1_test_feature.rs | 12 ------- .../outputs_no_error_feature.rs | 12 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 --------- ...uts_the_successful_test_summary_feature.rs | 15 --------- .../returns_success_feature.rs | 12 ------- .../executes_test_feature.rs | 32 +++++++++++++++++++ .../firefox/with_one_successful_test/mod.rs | 6 +--- .../outputs_its_running_1_test_feature.rs | 12 ------- .../outputs_no_error_feature.rs | 12 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 --------- ...uts_the_successful_test_summary_feature.rs | 15 --------- .../returns_success_feature.rs | 12 ------- .../executes_test_feature.rs | 32 +++++++++++++++++++ .../node/with_one_successful_test/mod.rs | 6 +--- .../outputs_its_running_1_test_feature.rs | 12 ------- .../outputs_no_error_feature.rs | 12 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 --------- ...uts_the_successful_test_summary_feature.rs | 15 --------- .../returns_success_feature.rs | 12 ------- 21 files changed, 99 insertions(+), 213 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs delete 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/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs delete 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/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..b6643c5aaab --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::standard_error::then_the_standard_error_should_be_empty; +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; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..4fd4981528c 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index 2289f314b89..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 258f256085a..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index e2c99e90765..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 72490f4ae9d..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 3dd3b1f5a95..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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/firefox/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..d055385f9d8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::standard_error::then_the_standard_error_should_be_empty; +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; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..4fd4981528c 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index f3b75e5f956..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 4b6716ed170..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 3102f8b6b37..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 7aa2195a05d..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index afcc8105739..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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/node/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..4601f60e21a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::standard_error::then_the_standard_error_should_be_empty; +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; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..4fd4981528c 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index 6f365c0cdcb..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_its_running_1_test_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 211e0d6960d..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 84330951590..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_assembly_test_summary_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 91d5f7519ef..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/outputs_the_successful_test_summary_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index c3dc52b2c94..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} From 90f158bcc1117f27595b2a4a6131012a88caeba9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 24 May 2024 22:56:33 +0100 Subject: [PATCH 228/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_failing_test_feature.rs | 36 +++++++++++++++++ .../level_0/with_one_failing_test/mod.rs | 7 +--- .../outputs_its_running_1_test_feature.rs | 15 ------- ...ts_the_assembly_failure_summary_feature.rs | 18 --------- ...tputs_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 ------- .../executes_ignored_test_feature.rs | 32 +++++++++++++++ .../level_0/with_one_ignored_test/mod.rs | 6 +-- .../outputs_its_running_1_test_feature.rs | 15 ------- .../outputs_no_error_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- ...st_successful_execution_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 ------- .../executes_ignored_test_feature.rs | 32 +++++++++++++++ .../with_one_ignored_with_reason_test/mod.rs | 6 +-- .../outputs_its_running_1_test_feature.rs | 15 ------- .../outputs_no_error_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- ...st_successful_execution_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 ------- ...es_successful_and_failing_tests_feature.rs | 40 +++++++++++++++++++ .../mod.rs | 8 +--- .../outputs_its_running_2_tests_feature.rs | 15 ------- ...ts_the_assembly_failure_summary_feature.rs | 18 --------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- ...the_failed_test_assertion_error_feature.rs | 18 --------- ...outputs_the_failed_test_summary_feature.rs | 18 --------- ...uts_the_successful_test_summary_feature.rs | 18 --------- .../returns_failure_feature.rs | 15 ------- ...es_successful_and_ignored_tests_feature.rs | 32 +++++++++++++++ .../mod.rs | 6 +-- .../outputs_its_running_2_tests_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- ...st_successful_execution_summary_feature.rs | 18 --------- ...uts_the_successful_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 ------- .../executes_test_feature.rs | 32 +++++++++++++++ .../level_0/with_one_successful_test/mod.rs | 6 +-- .../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 ------- 45 files changed, 210 insertions(+), 582 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/executes_ignored_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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/executes_ignored_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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/executes_successful_and_failing_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/executes_successful_and_ignored_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs new file mode 100644 index 00000000000..23bbfcc3af4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs @@ -0,0 +1,36 @@ +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__::error_code::then_failure_should_have_been_returned; +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; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the failed test summary" { + then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); + } + + "Outputs the failed test assertion error" { + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + } + + "Outputs the assembly failure summary" { + then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out"); + } + + "Returns failure" { + then_failure_should_have_been_returned(); + } +} 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 index a1167f8d4ad..c20d0badafb 100644 --- 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 @@ -1,6 +1 @@ -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; +mod executes_failing_test_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 deleted file mode 100644 index 73702c48b3f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 644bc52ecc7..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index bf4cd5edbc6..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 0106fc85a1b..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index cadbcddc111..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 1e87eac8382..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_ignored_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs new file mode 100644 index 00000000000..cec95219975 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs @@ -0,0 +1,32 @@ +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__::standard_error::then_the_standard_error_should_be_empty; +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("--include-ignored"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the ignored test successful execution summary" { + then_the_standard_output_should_have("test assembly_with_one_ignored_test::ignored ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index c40ba06016b..069b3d7ad57 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_ignored_test_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 deleted file mode 100644 index cf8ed6aad02..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index c3d5bd0613b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 48fa4a8ec2e..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 65729651ab3..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 936fa844629..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_ignored_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/executes_ignored_test_feature.rs new file mode 100644 index 00000000000..7b27477895e --- /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/executes_ignored_test_feature.rs @@ -0,0 +1,32 @@ +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__::standard_error::then_the_standard_error_should_be_empty; +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_with_reason_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the ignored test successful execution summary" { + then_the_standard_output_should_have("test assembly_with_one_ignored_with_reason_test::ignored ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index c40ba06016b..069b3d7ad57 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_ignored_test_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 deleted file mode 100644 index e16094c68a7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index d30a05565f8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 7b1105fed08..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 838bf6d2f66..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index b48a604f434..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs new file mode 100644 index 00000000000..0d26d815003 --- /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/executes_successful_and_failing_tests_feature.rs @@ -0,0 +1,40 @@ +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__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::error_code::then_failure_should_have_been_returned; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::pass ... ok"); + } + + "Outputs the failed test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL"); + } + + "Outputs the failed test assertion error" { + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + } + + "Outputs the assembly failure summary" { + then_the_standard_output_should_have("failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have( "test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out"); + } + + "Returns failure" { + then_failure_should_have_been_returned(); + } +} 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 index e4b0a4ed3f8..e448a065d5a 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/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 @@ -1,7 +1 @@ -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; +mod executes_successful_and_failing_tests_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 deleted file mode 100644 index 80bbbd74c86..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index e7ff4202083..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index b7400b1d582..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 5f1fbfce069..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index c8868825063..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 96b0e39dde5..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index aa5016d13d6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs new file mode 100644 index 00000000000..f20a2bfcb55 --- /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/executes_successful_and_ignored_tests_feature.rs @@ -0,0 +1,32 @@ +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__::success::then_success_should_have_been_returned; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::pass ... ok"); + } + + "Outputs the ignored test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::ignored ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} + 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 index 307645a1f9a..0ade722ef00 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/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 @@ -1,5 +1 @@ -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; +mod executes_successful_and_ignored_tests_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 deleted file mode 100644 index 385e94b5068..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 1fc2c899342..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 283cab283f9..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 2a525df7843..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 5f2f861fe2e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..c964fdb8ff8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..4fd4981528c 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index 21fc8bfdf51..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index aadee81f6a1..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index a39680b7c46..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 48b9943ca6d..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index f9be0a78d65..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} From 0b9aad3ff1aab0b7c2c9ed2cf74e0d68345d7ed9 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 24 May 2024 23:13:04 +0100 Subject: [PATCH 229/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_test_feature.rs | 2 +- .../executes_test_feature.rs | 2 +- .../executes_test_feature.rs | 2 +- .../executes_failing_test_feature.rs | 2 +- .../executes_ignored_test_feature.rs | 4 ++-- .../executes_ignored_test_feature.rs | 2 +- ...es_successful_and_failing_tests_feature.rs | 4 ++-- ...es_successful_and_ignored_tests_feature.rs | 3 +-- ...ts_the_test_in_the_terse_format_feature.rs | 19 ++++++++++++++++ .../level_0/with_one_ignored_test/mod.rs | 3 +-- ...ts_the_test_in_the_terse_format_feature.rs | 15 ------------- .../returns_success_feature.rs | 15 ------------- ...s_the_test_in_the_terse_format_feature.rs} | 22 +++++++++++-------- .../with_one_ignored_with_reason_test/mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- ...ng_feature.rs => lists_nothing_feature.rs} | 22 +++++++++++-------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- 18 files changed, 58 insertions(+), 95 deletions(-) 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/lists_the_test_in_the_terse_format_feature.rs delete 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 delete 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 rename 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 => lists_the_test_in_the_terse_format_feature.rs} (54%) delete mode 100644 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 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 => lists_nothing_feature.rs} (56%) delete 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_failing_tests/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs index b6643c5aaab..0a7e6e4d280 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs @@ -1,6 +1,6 @@ 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__::standard_error::then_the_standard_error_should_be_empty; +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_targeting_deno; use crate::__steps__::Context; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs index d055385f9d8..0766f3ede2c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs @@ -1,6 +1,6 @@ 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__::standard_error::then_the_standard_error_should_be_empty; +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_targeting_firefox; use crate::__steps__::Context; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs index 4601f60e21a..6fa8406b5dd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs @@ -1,6 +1,6 @@ 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__::standard_error::then_the_standard_error_should_be_empty; +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_targeting_node; use crate::__steps__::Context; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs index 23bbfcc3af4..7c9a59730aa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs @@ -1,7 +1,7 @@ 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__::error_code::then_failure_should_have_been_returned; use crate::__steps__::standard_error::then_the_standard_error_should_have; +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; use auroka_morpheus_macros_feature::feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs index cec95219975..1964edd1098 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs @@ -1,6 +1,6 @@ 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__::standard_error::then_the_standard_error_should_be_empty; +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; @@ -27,6 +27,6 @@ feature! { } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } 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/executes_ignored_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/executes_ignored_test_feature.rs index 7b27477895e..7c6cbe61f26 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_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/executes_ignored_test_feature.rs @@ -1,6 +1,6 @@ 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__::standard_error::then_the_standard_error_should_be_empty; +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; 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/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs index 0d26d815003..2e00d3f2b22 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/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs @@ -1,8 +1,8 @@ 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__::standard_error::then_the_standard_error_should_have; 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__::standard_error::then_the_standard_error_should_have; -use crate::__steps__::error_code::then_failure_should_have_been_returned; use crate::__steps__::Context; use auroka_morpheus_macros_feature::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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs index f20a2bfcb55..c47e8f3176d 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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs @@ -1,7 +1,7 @@ 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__::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; @@ -29,4 +29,3 @@ feature! { then_success_should_have_been_returned(); } } - 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/lists_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/lists_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..fda575ca823 --- /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/lists_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +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 --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"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/__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 be94fe3d391..d05380e92ab 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,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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 deleted file mode 100644 index 703eb43cf12..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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"#); -} 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 deleted file mode 100644 index 1d59c4b8d5c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_test_in_the_terse_format_feature.rs similarity index 54% rename from 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 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/lists_the_test_in_the_terse_format_feature.rs index f09ed1a68ba..ab5d4632036 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +1,19 @@ 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__::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; -#[test] -fn outputs_the_test_in_the_terse_format_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, - "--list --format terse --ignored", - ); - then_the_standard_output_should_have(&context, r#"ignored: test"#); +feature! { + given_there_is_an_assembly_with_one_ignored_with_reason_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"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/__ignored/level_0/with_one_ignored_with_reason_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 index be94fe3d391..d05380e92ab 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/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 @@ -1,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index 9c4b70e5f04..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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, - "--list --format terse --ignored", - ); - 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/lists_nothing_feature.rs similarity index 56% rename from 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 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/lists_nothing_feature.rs index d58e4db180f..f8c6eec7b88 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/lists_nothing_feature.rs @@ -1,15 +1,19 @@ 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__::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; -#[test] -fn outputs_nothing_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, - "--list --format terse --ignored", - ); - then_the_standard_output_should_be_empty(&context); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs nothing" { + then_the_standard_output_should_be_empty(); + } + + "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/__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/__list/__format_terse/__ignored/level_0/with_one_successful_and_one_failing_tests/mod.rs index 78d02776662..4dab07680fe 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/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 @@ -1,2 +1 @@ -mod outputs_nothing_feature; -mod returns_success_feature; +mod lists_nothing_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_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 deleted file mode 100644 index a7941478876..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[test] -fn returns_success_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, - "--list --format terse --ignored", - ); - then_success_should_have_been_returned(&context); -} From d5387925d4098c4dfc4fdc893734dd4ac25b2e64 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 25 May 2024 00:09:51 +0100 Subject: [PATCH 230/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- ...s_the_test_in_the_terse_format_feature.rs} | 22 +++++++++++-------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- ...ts_the_test_in_the_terse_format_feature.rs | 19 ++++++++++++++++ .../level_1/with_one_ignored_test/mod.rs | 3 +-- ...ts_the_test_in_the_terse_format_feature.rs | 15 ------------- .../returns_success_feature.rs | 15 ------------- ...ng_feature.rs => lists_nothing_feature.rs} | 22 +++++++++++-------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- ...s_the_test_in_the_terse_format_feature.rs} | 22 +++++++++++-------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- ...ts_the_test_in_the_terse_format_feature.rs | 19 ++++++++++++++++ .../level_2/with_one_ignored_test/mod.rs | 3 +-- ...ts_the_test_in_the_terse_format_feature.rs | 15 ------------- .../returns_success_feature.rs | 15 ------------- ...ng_feature.rs => lists_nothing_feature.rs} | 22 +++++++++++-------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- ...s_the_test_in_the_terse_format_feature.rs} | 22 +++++++++++-------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ------------- .../without_tests/lists_nothing_feature.rs | 19 ++++++++++++++++ .../__ignored/without_tests/mod.rs | 3 +-- .../without_tests/outputs_nothing_feature.rs | 15 ------------- .../without_tests/returns_success_feature.rs | 15 ------------- 27 files changed, 130 insertions(+), 226 deletions(-) rename 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 => lists_the_test_in_the_terse_format_feature.rs} (54%) delete 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 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/lists_the_test_in_the_terse_format_feature.rs delete 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 delete 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 rename 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 => lists_nothing_feature.rs} (56%) delete 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 rename 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 => lists_the_test_in_the_terse_format_feature.rs} (53%) delete 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 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/lists_the_test_in_the_terse_format_feature.rs delete 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 delete 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 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_tests/{outputs_nothing_feature.rs => lists_nothing_feature.rs} (56%) delete 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_tests/returns_success_feature.rs rename 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 => lists_the_test_in_the_terse_format_feature.rs} (53%) delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs delete mode 100644 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/__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/lists_the_test_in_the_terse_format_feature.rs similarity index 54% rename from 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 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_ignored_tests/lists_the_test_in_the_terse_format_feature.rs index 49776e97fca..a16fb660209 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +1,19 @@ 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__::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; -#[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"#); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"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/__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 58c4d30934d..d05380e92ab 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,2 +1 @@ -mod outputs_the_ignored_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index ef4bff0ad31..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_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/lists_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..bc8691d4922 --- /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/lists_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +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__::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_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"level_1::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/__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 be94fe3d391..d05380e92ab 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,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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 deleted file mode 100644 index 21d4f369668..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/__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 deleted file mode 100644 index 0f9bdb24f66..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_nothing_feature.rs similarity index 56% rename from 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 rename to 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/lists_nothing_feature.rs index c25f3166911..1f1079d57ba 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/lists_nothing_feature.rs @@ -1,15 +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_be_empty; +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; -#[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); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs nothing" { + then_the_standard_output_should_be_empty(); + } + + "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/__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 78d02776662..4dab07680fe 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,2 +1 @@ -mod outputs_nothing_feature; -mod returns_success_feature; +mod lists_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/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 deleted file mode 100644 index fd6e1bcbd49..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_test_in_the_terse_format_feature.rs similarity index 53% rename from 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 rename to 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/lists_the_test_in_the_terse_format_feature.rs index 4d3ec213806..1215d62b6a5 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +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__::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; -#[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"#); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"level_1::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/__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 58c4d30934d..d05380e92ab 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,2 +1 @@ -mod outputs_the_ignored_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index 1f394b13d77..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_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/lists_the_test_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..82669406272 --- /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/lists_the_test_in_the_terse_format_feature.rs @@ -0,0 +1,19 @@ +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__::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_level_2_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have("level_1::level_2::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/__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 be94fe3d391..d05380e92ab 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,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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 deleted file mode 100644 index e34fe312691..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/__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 deleted file mode 100644 index 094d0d52694..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_nothing_feature.rs similarity index 56% 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_tests/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/lists_nothing_feature.rs index 8e4db746ebf..f803ae5c9a2 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/lists_nothing_feature.rs @@ -1,15 +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_be_empty; +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; -#[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); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs nothing" { + then_the_standard_output_should_be_empty(); + } + + "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/__ignored/level_2/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_2/with_one_successful_and_one_failing_tests/mod.rs index 78d02776662..4dab07680fe 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/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 @@ -1,2 +1 @@ -mod outputs_nothing_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index 3301c031207..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_test_in_the_terse_format_feature.rs similarity index 53% 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_ignored_tests/outputs_the_ignored_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_2/with_one_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs index e10c77c47ca..c074bcd909c 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +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__::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; -#[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"#); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs the test in the terse format" { + then_the_standard_output_should_have("level_1::level_2::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/__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 58c4d30934d..d05380e92ab 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,2 +1 @@ -mod outputs_the_ignored_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index 0e33872cf99..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs new file mode 100644 index 00000000000..afa5d5562b6 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); + + "Outputs nothing" { + then_the_standard_output_should_be_empty(); + } + + "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/__ignored/without_tests/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs index 78d02776662..4dab07680fe 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs @@ -1,2 +1 @@ -mod outputs_nothing_feature; -mod returns_success_feature; +mod lists_nothing_feature; 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 deleted file mode 100644 index 50dfefaa994..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/outputs_nothing_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_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( - &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/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 deleted file mode 100644 index 2ac3a95d2c0..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 8ecb059c62b3e368b80aa4699ef6ae70ed7906c3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 25 May 2024 17:34:04 +0100 Subject: [PATCH 231/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- ...s_the_test_in_the_terse_format_feature.rs} | 4 +-- .../level_0/with_one_ignored_test/mod.rs | 4 +-- ...ts_the_test_in_the_terse_format_feature.rs | 15 ----------- .../returns_success_feature.rs | 15 ----------- ...s_the_test_in_the_terse_format_feature.rs} | 22 ++++++++------- .../with_one_ignored_with_reason_test/mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- ...s_the_tests_in_the_terse_format_feature.rs | 20 ++++++++++++++ .../mod.rs | 3 +-- ...s_all_tests_in_the_terse_format_feature.rs | 19 ------------- .../returns_success_feature.rs | 15 ----------- ...s_the_tests_in_the_terse_format_feature.rs | 20 ++++++++++++++ .../mod.rs | 3 +-- ...s_all_tests_in_the_terse_format_feature.rs | 19 ------------- .../returns_success_feature.rs | 15 ----------- ..._the_tests_in_the_terse_format_feature.rs} | 27 ++++++++++--------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- ..._the_tests_in_the_terse_format_feature.rs} | 27 ++++++++++--------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- ...s_the_test_in_the_terse_format_feature.rs} | 22 ++++++++------- .../level_1/with_one_successful_test/mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- ..._the_tests_in_the_terse_format_feature.rs} | 27 ++++++++++--------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- ..._the_tests_in_the_terse_format_feature.rs} | 27 ++++++++++--------- .../mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- ...s_the_test_in_the_terse_format_feature.rs} | 22 ++++++++------- .../level_2/with_one_successful_test/mod.rs | 3 +-- .../returns_success_feature.rs | 15 ----------- .../without_tests/lists_nothing_feature.rs | 19 +++++++++++++ .../default/without_tests/mod.rs | 3 +-- .../without_tests/outputs_nothing_feature.rs | 15 ----------- .../without_tests/returns_success_feature.rs | 15 ----------- 37 files changed, 166 insertions(+), 338 deletions(-) rename 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 => lists_the_test_in_the_terse_format_feature.rs} (92%) delete mode 100644 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 delete mode 100644 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 rename 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 => lists_the_test_in_the_terse_format_feature.rs} (55%) delete mode 100644 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 create mode 100644 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/lists_the_tests_in_the_terse_format_feature.rs delete mode 100644 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 delete mode 100644 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 create mode 100644 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/lists_the_tests_in_the_terse_format_feature.rs delete mode 100644 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 delete mode 100644 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 rename 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 => lists_the_tests_in_the_terse_format_feature.rs} (53%) delete 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 rename 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 => lists_the_tests_in_the_terse_format_feature.rs} (53%) delete 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 rename 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 => lists_the_test_in_the_terse_format_feature.rs} (54%) delete 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 rename 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 => lists_the_tests_in_the_terse_format_feature.rs} (52%) delete 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 rename 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 => lists_the_tests_in_the_terse_format_feature.rs} (52%) delete 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 rename 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 => lists_the_test_in_the_terse_format_feature.rs} (54%) delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs delete mode 100644 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/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_test_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_ignored_test/lists_the_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_ignored_test/lists_the_test_in_the_terse_format_feature.rs index 8c8cf7128e8..2194d3ea9ee 100644 --- 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_test_in_the_terse_format_feature.rs @@ -7,9 +7,7 @@ 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", - ); + 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"); 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 9c26b46a215..d05380e92ab 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,3 +1 @@ -//mod lists_the_tests_in_the_terse_format_feature; -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index 8a1303d073f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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"#); -} 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 deleted file mode 100644 index 399054c71b2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_test_in_the_terse_format_feature.rs similarity index 55% rename from 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 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/lists_the_test_in_the_terse_format_feature.rs index 98ad62e71cb..0ba1854db30 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +1,19 @@ 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__::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; -#[test] -fn outputs_the_test_in_the_terse_format_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, - "--list --format terse", - ); - then_the_standard_output_should_have(&context, r#"ignored: test"#); +feature! { + given_there_is_an_assembly_with_one_ignored_with_reason_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_with_reason_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 index be94fe3d391..d05380e92ab 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/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 @@ -1,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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_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 deleted file mode 100644 index 454b4f930df..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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, - "--list --format terse", - ); - 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/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_successful_and_one_failing_tests/lists_the_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..6dc0fdf0e09 --- /dev/null +++ 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/lists_the_tests_in_the_terse_format_feature.rs @@ -0,0 +1,20 @@ +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__::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_successful_and_one_failing_tests(); + 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(r#"pass: test +fail: 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_successful_and_one_failing_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_failing_tests/mod.rs index 2fe6eb0f83f..d82787ea767 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/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 @@ -1,2 +1 @@ -mod outputs_all_tests_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_the_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_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 deleted file mode 100644 index 0bb8c9c9b87..00000000000 --- 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 +++ /dev/null @@ -1,19 +0,0 @@ -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_all_tests_in_the_terse_format_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, - "--list --format terse", - ); - then_the_standard_output_should_have( - &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 deleted file mode 100644 index 73f842bea13..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[test] -fn returns_success_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, - "--list --format terse", - ); - 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/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_successful_and_one_ignored_tests/lists_the_tests_in_the_terse_format_feature.rs new file mode 100644 index 00000000000..cf7ef49bd3c --- /dev/null +++ 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/lists_the_tests_in_the_terse_format_feature.rs @@ -0,0 +1,20 @@ +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__::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_successful_and_one_ignored_tests(); + 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(r#"pass: test +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_successful_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 index 2fe6eb0f83f..d82787ea767 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/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 @@ -1,2 +1 @@ -mod outputs_all_tests_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_the_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_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 deleted file mode 100644 index e1150fc988d..00000000000 --- 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 +++ /dev/null @@ -1,19 +0,0 @@ -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_all_tests_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", - ); - then_the_standard_output_should_have( - &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 deleted file mode 100644 index 301563edf6b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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", - ); - 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/lists_the_tests_in_the_terse_format_feature.rs similarity index 53% rename from 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 rename to 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/lists_the_tests_in_the_terse_format_feature.rs index 31eddcad5b5..6d91e459434 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/lists_the_tests_in_the_terse_format_feature.rs @@ -1,19 +1,20 @@ 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__::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; -#[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"#, - ); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(); + 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(r#"level_1::pass: test +level_1::fail: 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_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 2fe6eb0f83f..d82787ea767 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,2 +1 @@ -mod outputs_all_tests_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_the_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/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 deleted file mode 100644 index 5ace5887c2e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_tests_in_the_terse_format_feature.rs similarity index 53% rename from 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 rename to 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/lists_the_tests_in_the_terse_format_feature.rs index a8e43d28cf1..69130114771 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/lists_the_tests_in_the_terse_format_feature.rs @@ -1,19 +1,20 @@ 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__::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; -#[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"#, - ); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(); + 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(r#"level_1::pass: test +level_1::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_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 2fe6eb0f83f..d82787ea767 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,2 +1 @@ -mod outputs_all_tests_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_the_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/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 deleted file mode 100644 index 7ac9183ffb1..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_test_in_the_terse_format_feature.rs similarity index 54% rename from 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 rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_the_test_in_the_terse_format_feature.rs index 2e6f20569c3..43a9fe4a00e 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +1,19 @@ 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__::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; -#[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"#); +feature! { + given_there_is_an_assembly_with_one_successful_level_1_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(r#"level_1::pass: 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_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 be94fe3d391..d05380e92ab 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,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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/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 deleted file mode 100644 index 81d00b5f75f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_tests_in_the_terse_format_feature.rs similarity index 52% rename from 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 rename to 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/lists_the_tests_in_the_terse_format_feature.rs index c3874180899..59c9145ee7f 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/lists_the_tests_in_the_terse_format_feature.rs @@ -1,19 +1,20 @@ 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__::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; -#[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"#, - ); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(); + 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(r#"level_1::level_2::pass: test +level_1::level_2::fail: 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_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 2fe6eb0f83f..d82787ea767 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,2 +1 @@ -mod outputs_all_tests_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_the_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/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 deleted file mode 100644 index 3524b18af70..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_tests_in_the_terse_format_feature.rs similarity index 52% rename from 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 rename to 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/lists_the_tests_in_the_terse_format_feature.rs index e7162c43b4d..651ab06add2 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/lists_the_tests_in_the_terse_format_feature.rs @@ -1,19 +1,20 @@ 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__::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; -#[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"#, - ); +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(); + 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(r#"level_1::level_2::pass: test +level_1::level_2::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_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 2fe6eb0f83f..d82787ea767 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,2 +1 @@ -mod outputs_all_tests_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_the_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/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 deleted file mode 100644 index 8d20b80918f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/lists_the_test_in_the_terse_format_feature.rs similarity index 54% rename from 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 rename to tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/lists_the_test_in_the_terse_format_feature.rs index 2275f4df246..246ce2d1949 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/lists_the_test_in_the_terse_format_feature.rs @@ -1,15 +1,19 @@ 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__::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; -#[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"#); +feature! { + given_there_is_an_assembly_with_one_successful_level_2_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("level_1::level_2::pass: 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_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 be94fe3d391..d05380e92ab 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,2 +1 @@ -mod outputs_the_test_in_the_terse_format_feature; -mod returns_success_feature; +mod lists_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/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 deleted file mode 100644 index a5834e5f8e2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs new file mode 100644 index 00000000000..5649ee8e954 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); + + "Outputs nothing" { + then_the_standard_output_should_be_empty(); + } + + "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/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 index 78d02776662..4dab07680fe 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/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 @@ -1,2 +1 @@ -mod outputs_nothing_feature; -mod returns_success_feature; +mod lists_nothing_feature; 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 deleted file mode 100644 index 1ddbc69080c..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/outputs_nothing_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_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( - &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/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 deleted file mode 100644 index cf2ce970b7d..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 6527b5a9fbb023df98f3f0f494581691c6d796d8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 25 May 2024 21:36:22 +0100 Subject: [PATCH 232/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../without_match_successful_test/mod.rs | 6 +-- .../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 -------- .../skips_no_tests_feature.rs | 32 ++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../without_match_successful_test/mod.rs | 6 +-- .../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 -------- .../skips_no_tests_feature.rs | 32 ++++++++++++++++ .../count_1/without_tests/mod.rs | 3 +- ...outputs_no_tests_to_run_warning_feature.rs | 15 -------- .../without_tests/returns_success_feature.rs | 15 -------- .../warns_tests_missing_feature.rs | 19 ++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../count_2/without_tests/mod.rs | 3 +- ...outputs_no_tests_to_run_warning_feature.rs | 15 -------- .../without_tests/returns_success_feature.rs | 15 -------- .../warns_tests_missing_feature.rs | 19 ++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../count_3/without_tests/mod.rs | 3 +- ...outputs_no_tests_to_run_warning_feature.rs | 15 -------- .../without_tests/returns_success_feature.rs | 10 ----- .../warns_tests_missing_feature.rs | 19 ++++++++++ 130 files changed, 626 insertions(+), 1545 deletions(-) delete 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 delete 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 delete 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 delete 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 delete 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_full_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_partial_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_prefix_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_one_suffix_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_0/without_match_successful_test/skips_no_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_full_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_partial_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_prefix_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_one_suffix_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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/level_1/without_match_successful_test/skips_no_tests_feature.rs delete 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 delete 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_1/without_tests/warns_tests_missing_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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_0/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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_2/without_tests/warns_tests_missing_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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_0/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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/warns_tests_missing_feature.rs 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index ca4db76c506..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 54f51e2588b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 9316b8a491c..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 04185627d65..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index a6bbc4e4600..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_full_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..5d3a2ffbdcb --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index 6bbf75e6406..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index af1d3022cb9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index cf39cf3f45d..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 42141677669..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index ff1d19f06b2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_partial_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..2cf410db9ef --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=as"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index 82a3c9a9b53..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index b8138170fe7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 68a63b6629c..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 9c69b1ca5d5..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 4b41d943c03..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_prefix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..9f966080c71 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pa"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index ab826e88eda..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index e2d02ba026d..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 8824537da36..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index c54b88f53a5..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index acdc52c1fe8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_one_suffix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..aee2939bea1 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=ss"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index b5ebdc017e2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 1358c48ca1e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 2d265330617..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index ce2637ba5d1..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 443613454ed..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index bef2b885035..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..f7c994a0b21 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..808935399e4 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/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 @@ -1,5 +1 @@ -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; +mod skips_no_tests_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 deleted file mode 100644 index cd989383c6d..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index ade91b782df..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index edac61892c6..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 2c2d60258ba..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 11f21ff8244..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_0/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs new file mode 100644 index 00000000000..9b19f9f9967 --- /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/skips_no_tests_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pattern"); + + "Outputs the successful test information" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index fb7834d91a5..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index b0eb06bacd3..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 4ef0b8a298c..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 6e3c7f134ad..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index bc7e45f1547..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_full_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..d97754f9221 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=level_1::pass"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index 8cfbc64e470..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 0526c51f7be..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index db4fadb2ef6..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index cbf3a02651b..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 50a8ee84420..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_partial_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..b9ee7545af3 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=1::"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index ac864153c45..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 9cc1d493527..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 55ea8c4a5a4..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 1b1944e4df6..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index f5fdd55ec49..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_prefix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..224c03dbf44 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=level_1"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index a97dd6bfd0c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index c7ce74349a1..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 5007ea7fb90..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 8fe7ecc2350..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index e14eab5efbf..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_one_suffix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..3916b1a9fed --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=ss"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index a9e71575332..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 9f2406facbc..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 30355bccbec..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index d8e480e7153..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 7bcae2e959f..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 1caa22b1641..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..a1c8e191d11 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..808935399e4 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/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 @@ -1,5 +1 @@ -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; +mod skips_no_tests_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 deleted file mode 100644 index f5734bb4c26..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 5137403dca7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 189484d711f..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 8ac6d5b8997..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 9037069cc00..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_1/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs new file mode 100644 index 00000000000..822461b7305 --- /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/skips_no_tests_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pattern"); + + "Outputs the successful test information" { + then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index c7accad4a1e..2c8451c43e5 100644 --- 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 @@ -1,2 +1 @@ -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_tests_missing_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 deleted file mode 100644 index 8f248275fb5..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index b13cd5471d2..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_1/without_tests/warns_tests_missing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs new file mode 100644 index 00000000000..d796530f052 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pattern"); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Returns true" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index 4872d185180..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 15405aae49e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index fc103f21c8f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 9eb15a98abd..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 4fa575d9110..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index ed6eca52319..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..72318d8be72 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass_1 --skip=pass_2"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index a0b93d6becd..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index f0537043703..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 8c256daefb2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 685d5e01604..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index fe2402bac70..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index dd2aa11626e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_1/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..c606e96d1d6 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass_1 --skip=level_1"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index c7accad4a1e..2c8451c43e5 100644 --- 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 @@ -1,2 +1 @@ -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_tests_missing_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 deleted file mode 100644 index cf988cd4c2f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 459ac43957a..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_2/without_tests/warns_tests_missing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs new file mode 100644 index 00000000000..dc9cec6d4b8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pattern1 --skip=pattern2"); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Returns true" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index 94af2aea6ff..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 353a0373e98..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 3524a6246a5..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index bb5c427962d..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 4d98636abd6..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 5e3e07275af..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..8b9e4737932 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=fail --skip=pass_1 --skip=pass_2"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index f34ae97b6dc..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 71cecdc561c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 72b1db69f42..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index deafc9f8408..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 3ea07d92105..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index dfae4817a49..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_1/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..b0832aa0d89 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip fail --skip pass_1 --skip level_1"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index c7accad4a1e..2c8451c43e5 100644 --- 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 @@ -1,2 +1 @@ -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_tests_missing_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 deleted file mode 100644 index 0b10f720326..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 index 75ada6f3340..7afe439c379 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 @@ -3,13 +3,3 @@ 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/count_3/without_tests/warns_tests_missing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs new file mode 100644 index 00000000000..b5e2264f575 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments( "--skip=pattern1 --skip=pattern2 --skip=pattern3"); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Returns true" { + then_success_should_have_been_returned(); + } +} From fd852a19d938c2ec1d0df39c161b08aec68b05c8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 25 May 2024 23:02:52 +0100 Subject: [PATCH 233/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../without_match_successful_test/mod.rs | 6 +-- .../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 -------- .../skips_no_tests_feature.rs | 32 ++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 6 +-- .../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 -------- .../skips_test_feature.rs | 33 +++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../without_match_successful_test/mod.rs | 6 +-- .../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 -------- .../skips_no_tests_feature.rs | 32 ++++++++++++++++ .../count_1/without_tests/mod.rs | 3 +- ...outputs_no_tests_to_run_warning_feature.rs | 15 -------- .../without_tests/returns_success_feature.rs | 15 -------- .../warns_tests_missing_feature.rs | 19 ++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../count_2/without_tests/mod.rs | 3 +- ...outputs_no_tests_to_run_warning_feature.rs | 15 -------- .../without_tests/returns_success_feature.rs | 15 -------- .../warns_tests_missing_feature.rs | 19 ++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...mation_about_the_skipped_test_1_feature.rs | 15 -------- ...mation_about_the_skipped_test_2_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 --------- .../returns_success_feature.rs | 15 -------- .../skips_tests_feature.rs | 37 +++++++++++++++++++ .../count_3/without_tests/mod.rs | 3 +- ...outputs_no_tests_to_run_warning_feature.rs | 15 -------- .../without_tests/returns_success_feature.rs | 15 -------- .../warns_tests_missing_feature.rs | 19 ++++++++++ 130 files changed, 626 insertions(+), 1550 deletions(-) delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_no_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_full_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_partial_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_prefix_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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_one_suffix_match_successful_test/skips_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_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_pattern/count_1/without_tests/warns_tests_missing_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 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/skips_tests_feature.rs delete 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_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_pattern/count_2/without_tests/warns_tests_missing_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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_0/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs delete 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_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_pattern/count_3/without_tests/warns_tests_missing_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 eaa6fdd8f20..e8271a45eeb 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,5 +1 @@ -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; +mod skips_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 deleted file mode 100644 index 1d54d3cf46c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 4913fa80a89..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 27a9b578261..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index f5521052669..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index b24c47e9a99..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_pattern/count_1/level_0/with_one_full_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..ce9717c2800 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 eaa6fdd8f20..e8271a45eeb 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,5 +1 @@ -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; +mod skips_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 deleted file mode 100644 index 5aaebf62a62..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 3562bf2f428..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 5208d237a68..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index 9704223ed73..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index e7f16779e59..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_pattern/count_1/level_0/with_one_partial_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..1e68a9e7db0 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip as"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 eaa6fdd8f20..e8271a45eeb 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,5 +1 @@ -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; +mod skips_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 deleted file mode 100644 index 6decabd868d..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 6a0bf21844c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 755e7a6f3a2..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index 3979facb611..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index 846124205b2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_pattern/count_1/level_0/with_one_prefix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..077233605ba --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pa"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 eaa6fdd8f20..e8271a45eeb 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,5 +1 @@ -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; +mod skips_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_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 deleted file mode 100644 index 9c209971471..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index bb7984ce4f9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index d6534832a6e..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index ccbd1346ac4..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index a69f9274c43..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_pattern/count_1/level_0/with_one_suffix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..f0b88b780d1 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip ss"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index c50197585f4..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index e5b5bf3dbb1..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 4899d87df08..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 885d2ada742..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index a5c90b8ff20..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 697487ad26f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_pattern/count_1/level_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..8d86cfac65e --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 e47449a0ae8..808935399e4 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,5 +1 @@ -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; +mod skips_no_tests_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 deleted file mode 100644 index 7aababd1e90..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 332acd03fbe..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 01e231fbc8a..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index e09e43b1dad..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index 724c53441ed..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_0/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs new file mode 100644 index 00000000000..aec1779e678 --- /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/skips_no_tests_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern"); + + "Outputs the successful test information" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index 953585c84af..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 6841aeb2d34..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 94dbe635c40..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 3658591dcc1..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index e25b27a6483..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_full_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..10542e4fba4 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip level_1::pass"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index 7efde920ff8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 513b8feaee3..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 1468ecd29bb..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index c6cdc790503..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 4e8a4f76719..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_partial_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..e5afdee971e --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip 1::"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index 1ff5be75b26..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 115b9cb7b79..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index f6e9519ea2e..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index dc451ca8ccf..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 9960ec353b7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_prefix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..ec73fc6ad99 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip level_1"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index eaa6fdd8f20..e8271a45eeb 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/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 @@ -1,5 +1 @@ -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; +mod skips_test_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 deleted file mode 100644 index f1beb1caf14..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 98e62c858a1..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 6ea2922d154..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 4a9736d3fbd..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 8718b418014..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_one_suffix_match_successful_test/skips_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/skips_test_feature.rs new file mode 100644 index 00000000000..42d76d4f857 --- /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/skips_test_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip ss"); + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index e18002ebcb6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 76686fa887b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 2c25374fce6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 3786ea789a8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 75163f06678..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 32eba739426..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..7d3507bcf4e --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..808935399e4 100644 --- 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 @@ -1,5 +1 @@ -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; +mod skips_no_tests_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 deleted file mode 100644 index c827e99cdd6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 99d3de866e6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 4161fa609a4..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 21f48b017a8..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index f544aa31ed0..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_1/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs new file mode 100644 index 00000000000..72acd044a67 --- /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/skips_no_tests_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern"); + + "Outputs the successful test information" { + then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + } + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/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 index c7accad4a1e..2c8451c43e5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/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 @@ -1,2 +1 @@ -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_tests_missing_feature; 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 deleted file mode 100644 index 750ba2f7c9b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 3cb9566b133..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_pattern/count_1/without_tests/warns_tests_missing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/warns_tests_missing_feature.rs new file mode 100644 index 00000000000..434b6f59fb1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/warns_tests_missing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern"); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Returns true" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index effdcb25094..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 965d519fd55..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 43a43c070ad..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index b5a207adcb7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index fa7dfd1b60a..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 867e27e0c82..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..a5cce23462f --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass_1 --skip pass_2"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index c09f6245b55..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 96386748ae9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index e5d1efc580e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 6b5b0130f5b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 809aed13fba..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index a55183d8f5a..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_1/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..7bb26f3a226 --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass_1 --skip level_1"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 c7accad4a1e..2c8451c43e5 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,2 +1 @@ -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_tests_missing_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 deleted file mode 100644 index 8cc9a36128c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index 853a6d28329..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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/count_2/without_tests/warns_tests_missing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs new file mode 100644 index 00000000000..f9b684c9c8f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern1 --skip pattern2"); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Returns true" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index 58d43e324d9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index c9da73ed664..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index aaa78c8588f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 987c9f4c9e8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 71be8625186..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 22d76076318..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..e445010980d --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip fail --skip pass_1 --skip pass_2"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index 20549276099..65ba9e942cf 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/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 @@ -1,6 +1 @@ -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; +mod skips_tests_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 deleted file mode 100644 index e7e3890eb5b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index de08973608a..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index ad4c1dcbc19..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 6574783ef19..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index a9607993039..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index ddade3af7f5..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/level_1/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs new file mode 100644 index 00000000000..c3c5e9d9dff --- /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/skips_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_level_1_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip fail --skip pass_1 --skip pass_2"); + + "Outputs no information about the skipped test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the skipped test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns Success" { + then_success_should_have_been_returned(); + } +} 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 index c7accad4a1e..2c8451c43e5 100644 --- 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 @@ -1,2 +1 @@ -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_tests_missing_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 deleted file mode 100644 index 64b4a170bc0..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index ec422d7be59..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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/count_3/without_tests/warns_tests_missing_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs new file mode 100644 index 00000000000..9ae6cec25fc --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs @@ -0,0 +1,19 @@ +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__::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_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern1 --skip pattern2 --skip pattern3"); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Returns true" { + then_success_should_have_been_returned(); + } +} From 0890856f978a815484ccb62a28fcd887948cacd6 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 26 May 2024 15:51:00 +0100 Subject: [PATCH 234/323] wasm-bindgen-test-runner: Improved help information. --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 2 +- .../options/__help/outputs_the_help_information_feature.rs | 2 +- .../options/_h/outputs_the_help_information_feature.rs | 2 +- 3 files changed, 3 insertions(+), 3 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 11619a9f07b..c298fe6f276 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -82,7 +82,7 @@ Options: -V, --version Print the version number of wasm-bindgen-test-runner The wasm file to test - Run only the tests with the given name + If specified, only executes the tests containing in their names Arguments: --include-ignored Include ignored tests in the test run diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs index b5d02299bf7..a0f0cbb4786 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs @@ -25,7 +25,7 @@ Options: -V, --version Print the version number of wasm-bindgen-test-runner The wasm file to test - Run only the tests with the given name + If specified, only executes the tests containing in their names Arguments: --include-ignored Include ignored tests in the test run diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs index 641fd7e43b1..2005eef4552 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs @@ -25,7 +25,7 @@ Options: -V, --version Print the version number of wasm-bindgen-test-runner The wasm file to test - Run only the tests with the given name + If specified, only executes the tests containing in their names Arguments: --include-ignored Include ignored tests in the test run From d3e6e18f38f2b4dcaa9a80666cf644789932b082 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 26 May 2024 16:21:10 +0100 Subject: [PATCH 235/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_test_feature.rs | 32 +++++++++++++++++ .../mod.rs | 6 +--- .../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 | 15 -------- .../returns_success_feature.rs | 15 -------- .../executes_test_feature.rs | 32 +++++++++++++++++ .../mod.rs | 6 +--- .../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 | 15 -------- .../returns_success_feature.rs | 15 -------- .../executes_test_feature.rs | 32 +++++++++++++++++ .../mod.rs | 6 +--- .../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 | 15 -------- .../returns_success_feature.rs | 15 -------- .../executes_test_feature.rs | 32 +++++++++++++++++ .../mod.rs | 6 +--- .../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 | 15 -------- .../returns_success_feature.rs | 15 -------- .../executes_tests_feature.rs | 36 +++++++++++++++++++ .../mod.rs | 7 +--- .../outputs_its_running_2_tests_feature.rs | 15 -------- .../outputs_no_error_feature.rs | 15 -------- ...tputs_the_assembly_test_summary_feature.rs | 18 ---------- ...s_the_successful_test_1_summary_feature.rs | 15 -------- ...s_the_successful_test_2_summary_feature.rs | 15 -------- .../returns_success_feature.rs | 15 -------- .../executes_no_tests_feature.rs | 33 +++++++++++++++++ .../without_match_successful_test/mod.rs | 6 +--- .../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 -------- 43 files changed, 203 insertions(+), 517 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs delete 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 delete 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 delete mode 100644 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 delete 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..9f3965534b1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..4fd4981528c 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index 5d33c558159..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index a6f683e7755..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index d32ee62261a..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index c97d519d350..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 58a0212e16e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..3ce52b228ef --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("as"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 e47449a0ae8..4fd4981528c 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 @@ -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; +mod executes_test_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 deleted file mode 100644 index 18e9536399f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 04bb065ffae..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 0415501f5e4..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 0bad83c0c0a..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 35297c6ad6a..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..af7e2ccf4da --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pa"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index e47449a0ae8..4fd4981528c 100644 --- 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 @@ -1,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index cefb96d00f0..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 3fc2869a6f5..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index cca01a57901..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 96940b741b3..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index bb6c1dd8d0e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..02a8c3e2ba9 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("ss"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 e47449a0ae8..4fd4981528c 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 @@ -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; +mod executes_test_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 deleted file mode 100644 index 2cf820d064c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 443ba658218..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 0930884db7b..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index b30cc4449a6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index d1ba66cf007..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs new file mode 100644 index 00000000000..a358887ac0c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs @@ -0,0 +1,36 @@ +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__::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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass"); + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the successful test 1 summary" { + then_the_standard_output_should_have("pass_1 ... ok"); + } + + "Outputs the successful test 2 summary" { + then_the_standard_output_should_have("pass_2 ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index 914c3b09505..a430fba8f7d 100644 --- 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 @@ -1,6 +1 @@ -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; +mod executes_tests_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 deleted file mode 100644 index 6f272c02c18..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 85c3e786f59..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index afc98691d63..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 7656151feb9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 47ebd4ff09b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index e9510645ab7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs new file mode 100644 index 00000000000..d112f0e4093 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs @@ -0,0 +1,33 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("cool"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs no information about the skipped test" { + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 eaa6fdd8f20..a3d5d33fada 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 @@ -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; +mod executes_no_tests_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 deleted file mode 100644 index 3487e70d3b9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 7d0f9305659..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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_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 deleted file mode 100644 index eec9fe7ea1e..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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, - "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/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 deleted file mode 100644 index 1adf56ef665..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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/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 deleted file mode 100644 index 57bee856988..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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); -} From b3bf847e848d0ea729500bd1c111389089f7ab55 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 26 May 2024 17:03:04 +0100 Subject: [PATCH 236/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_test_feature.rs | 36 +++++++++++++++++ .../level_0/with_one_failing_test/mod.rs | 7 +--- .../outputs_its_running_1_test_feature.rs | 12 ------ ...ts_the_assembly_failure_summary_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 ------- ...the_failed_test_assertion_error_feature.rs | 15 ------- ...outputs_the_failed_test_summary_feature.rs | 15 ------- .../returns_failure_feature.rs | 12 ------ .../ignores_test_feature.rs | 32 +++++++++++++++ .../level_0/with_one_ignored_test/mod.rs | 6 +-- .../outputs_its_running_1_test_feature.rs | 12 ------ .../outputs_no_error_feature.rs | 12 ------ ...tputs_the_assembly_test_summary_feature.rs | 15 ------- ...utputs_the_ignored_test_summary_feature.rs | 15 ------- .../returns_success_feature.rs | 12 ------ .../ignores_test_feature.rs | 32 +++++++++++++++ .../with_one_ignored_with_reason_test/mod.rs | 6 +-- .../outputs_its_running_1_test_feature.rs | 12 ------ .../outputs_no_error_feature.rs | 12 ------ ...tputs_the_assembly_test_summary_feature.rs | 15 ------- ...utputs_the_ignored_test_summary_feature.rs | 15 ------- .../returns_success_feature.rs | 12 ------ .../executes_tests_feature.rs | 40 +++++++++++++++++++ .../mod.rs | 8 +--- .../outputs_its_running_2_tests_feature.rs | 12 ------ ...ts_the_assembly_failure_summary_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 ------- ...the_failed_test_assertion_error_feature.rs | 15 ------- ...outputs_the_failed_test_summary_feature.rs | 15 ------- ...uts_the_successful_test_summary_feature.rs | 15 ------- .../returns_failure_feature.rs | 12 ------ ...es_one_test_and_ignores_another_feature.rs | 36 +++++++++++++++++ .../mod.rs | 6 +-- .../outputs_its_running_2_tests_feature.rs | 12 ------ ...tputs_the_assembly_test_summary_feature.rs | 15 ------- ...utputs_the_ignored_test_summary_feature.rs | 15 ------- ...uts_the_successful_test_summary_feature.rs | 15 ------- .../returns_success_feature.rs | 12 ------ .../executes_test_feature.rs | 32 +++++++++++++++ .../level_0/with_one_successful_test/mod.rs | 6 +-- .../outputs_its_running_1_test_feature.rs | 12 ------ .../outputs_no_error_feature.rs | 12 ------ ...tputs_the_assembly_test_summary_feature.rs | 15 ------- ...uts_the_successful_test_summary_feature.rs | 15 ------- .../returns_success_feature.rs | 12 ------ 45 files changed, 214 insertions(+), 483 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs delete mode 100644 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 delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/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/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_tests_feature.rs delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 delete mode 100644 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs delete mode 100644 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 delete mode 100644 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 delete mode 100644 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/level_0/with_one_failing_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs new file mode 100644 index 00000000000..289bdae7cd1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs @@ -0,0 +1,36 @@ +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__::standard_error::then_the_standard_error_should_have; +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; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_failing_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the failed test summary" { + then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); + } + + "Outputs the failed test assertion error" { + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + } + + "Outpus the assembly failure summary" { + then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out"); + } + + "Returns failure" { + then_failure_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/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 index a1167f8d4ad..4fd4981528c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/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 @@ -1,6 +1 @@ -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; +mod executes_test_feature; 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 deleted file mode 100644 index ccf6bb752af..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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/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 deleted file mode 100644 index 8313595e025..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/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 deleted file mode 100644 index b7de831ef1f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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", - ); -} 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 deleted file mode 100644 index 92288d2ee7f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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); - 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/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 deleted file mode 100644 index 2bf1f5af8c9..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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", - ); -} 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 deleted file mode 100644 index 47b417e76b6..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/returns_failure_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs new file mode 100644 index 00000000000..1bb9e9bbb52 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs @@ -0,0 +1,32 @@ +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__::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; +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(); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the ignored test summary" { + then_the_standard_output_should_have("test assembly_with_one_ignored_test::ignored ... ignored"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/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 index 734c2b900dc..a30bf9b336b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/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 @@ -1,5 +1 @@ -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; +mod ignores_test_feature; 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 deleted file mode 100644 index 3115ee423dd..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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"); -} 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 deleted file mode 100644 index 30a2e080493..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} 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 deleted file mode 100644 index a04301671f0..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/__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 deleted file mode 100644 index 414682e57c7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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", - ); -} 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 deleted file mode 100644 index cf2c5530769..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs new file mode 100644 index 00000000000..141939c0de3 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs @@ -0,0 +1,32 @@ +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__::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; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_ignored_with_reason_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the ignored test summary" { + then_the_standard_output_should_have("test assembly_with_one_ignored_with_reason_test::ignored ... ignored, test"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_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 index 734c2b900dc..a30bf9b336b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_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 @@ -1,5 +1 @@ -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; +mod ignores_test_feature; 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 deleted file mode 100644 index 7f088f8965b..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&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_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 deleted file mode 100644 index d005b7c3a40..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&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_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 deleted file mode 100644 index 5e924fdd808..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&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/__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 deleted file mode 100644 index e01bb713910..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[test] -fn outputs_the_ignored_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(&mut context); - then_the_standard_output_should_have( - &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 deleted file mode 100644 index c0b2c36f344..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&mut 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/executes_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/executes_tests_feature.rs new file mode 100644 index 00000000000..54b3cbc8191 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_tests_feature.rs @@ -0,0 +1,40 @@ +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__::standard_error::then_the_standard_error_should_have; +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; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the failed test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::pass ... ok"); + } + + "Outputs the failed test assertion error" { + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + } + + "Outpus the assembly failure summary" { + then_the_standard_output_should_have("failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out"); + } + + "Returns failure" { + then_failure_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/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 index e4b0a4ed3f8..a430fba8f7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/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 @@ -1,7 +1 @@ -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; +mod executes_tests_feature; 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 deleted file mode 100644 index 7672c61985e..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&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_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 deleted file mode 100644 index 756450cfcf0..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&mut context); - 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/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 deleted file mode 100644 index 3b9b9625dd6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&mut context); - 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/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 deleted file mode 100644 index 7b5d304560f..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&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/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 deleted file mode 100644 index b6b903a7fcc..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&mut context); - 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/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 deleted file mode 100644 index 0f97c7d14d0..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&mut context); - 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/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 deleted file mode 100644 index 88a6a69d90b..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&mut 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/executes_one_test_and_ignores_another_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs new file mode 100644 index 00000000000..81ecc64de8a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs @@ -0,0 +1,36 @@ +use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; +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; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 2 tests" { + then_the_standard_output_should_have("running 2 tests"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::pass ... ok"); + } + + "Outputs the ignored test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::ignored ... ignored"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 1 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/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 index d9bddeea739..ac2bfb61d14 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/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 @@ -1,5 +1 @@ -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; +mod executes_one_test_and_ignores_another_feature; 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 deleted file mode 100644 index 9ded9dcb74f..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&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_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 deleted file mode 100644 index 5d75b080472..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[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(&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/__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 deleted file mode 100644 index 70459025bbe..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[test] -fn outputs_the_ignored_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(&mut context); - then_the_standard_output_should_have( - &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 deleted file mode 100644 index eaa25c6f508..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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; - -#[test] -fn outputs_the_successful_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(&mut context); - 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/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 deleted file mode 100644 index 519e245e818..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&mut 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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..25ed5e99425 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 1 tests" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/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 index e47449a0ae8..4fd4981528c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/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 @@ -1,5 +1 @@ -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; +mod executes_test_feature; 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 deleted file mode 100644 index bf861595afb..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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_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"); -} 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 deleted file mode 100644 index 3c4a51bf5a8..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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_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); -} 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 deleted file mode 100644 index ac2e4599fa3..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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_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 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 deleted file mode 100644 index 0d26c5ed5f3..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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", - ); -} 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 deleted file mode 100644 index 2a4d9f053f3..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} From e01cf17d57943c92a2ed9f7a8614a0b841ac555e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 26 May 2024 17:35:09 +0100 Subject: [PATCH 237/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_test_feature.rs | 32 +++++++++++++++++++ .../level_1/with_one_successful_test/mod.rs | 6 +--- .../outputs_its_running_1_test_feature.rs | 12 ------- .../outputs_no_error_feature.rs | 12 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 --------- ...uts_the_successful_test_summary_feature.rs | 15 --------- .../returns_success_feature.rs | 12 ------- .../executes_test_feature.rs | 32 +++++++++++++++++++ .../level_2/with_one_successful_test/mod.rs | 6 +--- .../outputs_its_running_1_test_feature.rs | 12 ------- .../outputs_no_error_feature.rs | 12 ------- ...tputs_the_assembly_test_summary_feature.rs | 15 --------- ...uts_the_successful_test_summary_feature.rs | 15 --------- .../returns_success_feature.rs | 12 ------- .../without_arguments/without_tests/mod.rs | 4 +-- .../without_tests/outputs_no_error_feature.rs | 12 ------- ...outputs_no_tests_to_run_warning_feature.rs | 12 ------- .../without_tests/returns_success_feature.rs | 12 ------- .../warns_no_tests_to_run_feature.rs | 24 ++++++++++++++ 19 files changed, 91 insertions(+), 181 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..e0ef45f8308 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_level_1_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 1 tests" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 e47449a0ae8..4fd4981528c 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,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index f2ab09c3dd4..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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"); -} 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 deleted file mode 100644 index d2731e0289c..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} 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 deleted file mode 100644 index 280cc85469d..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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", - ); -} 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 deleted file mode 100644 index a3fc69f402b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/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 deleted file mode 100644 index 0a0b83fcf3e..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs new file mode 100644 index 00000000000..ad1e875eb5d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs @@ -0,0 +1,32 @@ +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__::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; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_level_2_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs its running 1 tests" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_level_2_test::level_1::level_2::pass ... ok"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 e47449a0ae8..4fd4981528c 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,5 +1 @@ -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; +mod executes_test_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 deleted file mode 100644 index 44aaeaf603d..00000000000 --- 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 +++ /dev/null @@ -1,12 +0,0 @@ -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"); -} 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 deleted file mode 100644 index dc728576566..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} 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 deleted file mode 100644 index 55f90e0d0f8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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", - ); -} 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 deleted file mode 100644 index 9c7a449c484..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/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 deleted file mode 100644 index 05a2aaded5f..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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); -} 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/without_tests/mod.rs index ecb3f016be0..829ab29e8ab 100644 --- 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/without_tests/mod.rs @@ -1,3 +1 @@ -mod outputs_no_error_feature; -mod outputs_no_tests_to_run_warning_feature; -mod returns_success_feature; +mod warns_no_tests_to_run_feature; 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 deleted file mode 100644 index dbe3ba0d600..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_error_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&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/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 deleted file mode 100644 index be6a8a9ddc3..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/outputs_no_tests_to_run_warning_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&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/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 deleted file mode 100644 index 448550aa7c9..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,12 +0,0 @@ -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; - -#[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(&mut 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/warns_no_tests_to_run_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs new file mode 100644 index 00000000000..98d6ff5955b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs @@ -0,0 +1,24 @@ +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__::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; +use crate::__steps__::Context; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_without_anything(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + + "Outputs no tests to run warning" { + then_the_standard_output_should_have("no tests to run!"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns an error code" { + then_success_should_have_been_returned(); + } +} From 4c10aba17fbfc495a1a4b774766ee88da546ac4c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 26 May 2024 21:00:45 +0100 Subject: [PATCH 238/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../executes_no_tests_feature.rs | 37 +++++++++++++++++ .../__exact/with_partial_test_match/mod.rs | 7 +--- .../outputs_its_running_0_tests_feature.rs | 15 ------- .../outputs_no_error_feature.rs | 15 ------- ...uts_no_information_about_test_1_feature.rs | 15 ------- ...uts_no_information_about_test_2_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 -------- .../returns_success_feature.rs | 15 ------- .../executes_only_one_test_feature.rs | 41 +++++++++++++++++++ .../with_successful_test_match_1_of_2/mod.rs | 8 +--- .../outputs_its_running_1_test_feature.rs | 15 ------- .../outputs_no_error_feature.rs | 15 ------- ...uts_no_information_about_test_2_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 -------- ...ccessful_test_1_standard_output_feature.rs | 15 ------- ...s_the_successful_test_1_summary_feature.rs | 15 ------- .../returns_success_feature.rs | 15 ------- .../executes_only_one_test_feature.rs | 41 +++++++++++++++++++ .../with_successful_test_match_2_of_2/mod.rs | 8 +--- .../outputs_its_running_1_test_feature.rs | 15 ------- .../outputs_no_error_feature.rs | 15 ------- ...uts_no_information_about_test_1_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 -------- ...ccessful_test_2_standard_output_feature.rs | 15 ------- ...s_the_successful_test_2_summary_feature.rs | 15 ------- .../returns_success_feature.rs | 15 ------- .../executes_no_tests_feature.rs | 37 +++++++++++++++++ .../__exact/without_test_match/mod.rs | 7 +--- .../outputs_its_running_0_tests_feature.rs | 15 ------- .../outputs_no_error_feature.rs | 15 ------- ...uts_no_information_about_test_1_feature.rs | 15 ------- ...uts_no_information_about_test_2_feature.rs | 15 ------- ...tputs_the_assembly_test_summary_feature.rs | 18 -------- .../returns_success_feature.rs | 15 ------- 34 files changed, 160 insertions(+), 428 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 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/executes_only_one_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/__exact/with_successful_test_match_2_of_2/executes_only_one_test_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 delete 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 create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs delete 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 delete 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 delete 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 delete 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 delete 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 delete 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/with_partial_test_match/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs new file mode 100644 index 00000000000..49ab4fe59fb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass --nocapture --exact"); + + "Outputs its running 0 tests" { + then_the_standard_output_should_have("running 0 tests"); + } + + "Outputs no information about the test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index c4cbfed6801..a3d5d33fada 100644 --- 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 @@ -1,6 +1 @@ -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; +mod executes_no_tests_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 deleted file mode 100644 index e91d110dfec..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index dceff8e9661..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 57c31a9dae7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index a86b995dbd4..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 94d490c8fd3..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 1b05be2b066..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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/executes_only_one_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/executes_only_one_test_feature.rs new file mode 100644 index 00000000000..a146436b90d --- /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/executes_only_one_test_feature.rs @@ -0,0 +1,41 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass_1 --nocapture --exact"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test 1 summary" { + then_the_standard_output_should_have("pass_1 ... ok"); + } + + "Outputs the successful test 1 standard output" { + then_the_standard_output_should_have("pass_1 standard output"); + } + + "Outputs no information about the test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 0a9f5d982a4..f10b6dd8657 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,7 +1 @@ -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; +mod executes_only_one_test_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 deleted file mode 100644 index aff31c9ef70..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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"); -} 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 deleted file mode 100644 index b5e7ccbeace..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} 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 deleted file mode 100644 index 0a8d2c59b94..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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"); -} 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 deleted file mode 100644 index be539a0b79c..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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", - ); -} 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 deleted file mode 100644 index fa37a139ce3..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/__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 deleted file mode 100644 index 52a4fa397e7..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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"); -} 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 deleted file mode 100644 index 8ded9955d32..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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/__exact/with_successful_test_match_2_of_2/executes_only_one_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/executes_only_one_test_feature.rs new file mode 100644 index 00000000000..992eb0ae003 --- /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/executes_only_one_test_feature.rs @@ -0,0 +1,41 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass_2 --nocapture --exact"); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test 2 summary" { + then_the_standard_output_should_have("pass_2 ... ok"); + } + + "Outputs the successful test 2 standard output" { + then_the_standard_output_should_have("pass_2 standard output"); + } + + "Outputs no information about the test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 1 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 62b38432879..f10b6dd8657 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 @@ -1,7 +1 @@ -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; +mod executes_only_one_test_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 deleted file mode 100644 index 3f7878d1a5c..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 9b772d22b36..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 4bb2a49e2d8..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 8df859a7875..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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_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 deleted file mode 100644 index 2492037d99d..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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"); -} 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 deleted file mode 100644 index 6fac684eb9b..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 8e72c9616f2..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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); -} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs new file mode 100644 index 00000000000..5519333d7d5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs @@ -0,0 +1,37 @@ +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__::standard_output::then_the_standard_output_should_have; +use crate::__steps__::standard_output::then_the_standard_output_should_not_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_two_successful_tests(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("boo --nocapture --exact"); + + "Outputs its running 0 tests" { + then_the_standard_output_should_have("running 0 tests"); + } + + "Outputs no information about the test 1" { + then_the_standard_output_should_not_have("pass_1"); + } + + "Outputs no information about the test 2" { + then_the_standard_output_should_not_have("pass_2"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 2 filtered out"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} 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 index c4cbfed6801..a3d5d33fada 100644 --- 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 @@ -1,6 +1 @@ -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; +mod executes_no_tests_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 deleted file mode 100644 index 713f57894d6..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 70f4732e227..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/outputs_no_error_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 6e8d5664695..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index da48e3fa31e..00000000000 --- 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 +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index ee161447cb9..00000000000 --- 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 +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index 36872863399..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/returns_success_feature.rs +++ /dev/null @@ -1,15 +0,0 @@ -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 10972725d17c3e9795500049be14de10fcb8eff5 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 26 May 2024 21:30:32 +0100 Subject: [PATCH 239/323] wasm-bindgen-test-runner: Migrating some features to the feature macro format. --- .../outputs_the_version_information_feature.rs | 4 +--- .../executes_failing_test_feature.rs | 10 +++++----- .../executes_ignored_test_feature.rs | 4 ++-- .../executes_ignored_test_feature.rs | 4 ++-- .../executes_test_feature.rs | 10 +++++----- ...lists_the_test_in_the_terse_format_feature.rs | 2 +- ...lists_the_test_in_the_terse_format_feature.rs | 6 +++--- ...ists_the_tests_in_the_terse_format_feature.rs | 10 +++++----- ...ists_the_tests_in_the_terse_format_feature.rs | 16 ++++++++-------- ...ists_the_tests_in_the_terse_format_feature.rs | 6 +++--- ...ists_the_tests_in_the_terse_format_feature.rs | 8 ++++---- ...lists_the_test_in_the_terse_format_feature.rs | 2 +- ...ists_the_tests_in_the_terse_format_feature.rs | 12 ++++++------ ...ists_the_tests_in_the_terse_format_feature.rs | 12 ++++++------ ...lists_the_test_in_the_terse_format_feature.rs | 2 +- .../without_tests/returns_success_feature.rs | 5 ----- .../executes_test_feature.rs | 10 +++++----- .../executes_test_feature.rs | 10 +++++----- .../executes_test_feature.rs | 10 +++++----- .../executes_test_feature.rs | 10 +++++----- .../executes_tests_feature.rs | 12 ++++++------ .../executes_no_tests_feature.rs | 10 +++++----- .../executes_test_feature.rs | 12 ++++++------ .../ignores_test_feature.rs | 10 +++++----- .../ignores_test_feature.rs | 10 +++++----- .../executes_tests_feature.rs | 14 +++++++------- ...cutes_one_test_and_ignores_another_feature.rs | 12 ++++++------ .../executes_test_feature.rs | 10 +++++----- .../executes_test_feature.rs | 10 +++++----- .../executes_test_feature.rs | 10 +++++----- .../warns_no_tests_to_run_feature.rs | 6 +++--- .../handles_missing_arguments_feature.rs | 6 +++--- 32 files changed, 134 insertions(+), 141 deletions(-) delete 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 diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs index 0908784865c..4c9091b4cc9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs @@ -10,9 +10,7 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_option("--version"); "Outputs the wasm-bindgen-test-runner version information" { - then_the_standard_output_should_have( - &format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION")), - ); + then_the_standard_output_should_have(&format!("wasm-bindgen-test-runner {}", env!("CARGO_PKG_VERSION"))); } "Returns success" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs index 7c9a59730aa..679bb81aaff 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs @@ -11,23 +11,23 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); + then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } "Outputs the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); + then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out"); } "Returns failure" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs index 1964edd1098..358ad0cd4cb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs @@ -23,10 +23,10 @@ feature! { } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } 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/executes_ignored_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/executes_ignored_test_feature.rs index 7c6cbe61f26..4dbb5bf1471 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_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/executes_ignored_test_feature.rs @@ -23,10 +23,10 @@ feature! { } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs index c964fdb8ff8..93246e7d0c0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + 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/lists_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/lists_the_test_in_the_terse_format_feature.rs index 2194d3ea9ee..867d8199727 100644 --- 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_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/lists_the_test_in_the_terse_format_feature.rs @@ -9,7 +9,7 @@ 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" { + "Outputs the test in the terse format" { then_the_standard_output_should_have("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/lists_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/lists_the_test_in_the_terse_format_feature.rs index 0ba1854db30..27755e13357 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/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -9,11 +9,11 @@ feature! { given_there_is_an_assembly_with_one_ignored_with_reason_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"); + "Outputs the test in the terse format" { + then_the_standard_output_should_have("ignored: test"); } "Returns success" { - then_success_should_have_been_returned(); + 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_successful_and_one_failing_tests/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_successful_and_one_failing_tests/lists_the_tests_in_the_terse_format_feature.rs index 6dc0fdf0e09..9000cb59982 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/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_successful_and_one_failing_tests/lists_the_tests_in_the_terse_format_feature.rs @@ -6,15 +6,15 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + 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(r#"pass: test + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"pass: test fail: test"#); } "Returns success" { - then_success_should_have_been_returned(); + 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_successful_and_one_ignored_tests/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_successful_and_one_ignored_tests/lists_the_tests_in_the_terse_format_feature.rs index cf7ef49bd3c..de04d0018d2 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/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_successful_and_one_ignored_tests/lists_the_tests_in_the_terse_format_feature.rs @@ -6,15 +6,15 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + 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(r#"pass: test + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"pass: test ignored: test"#); - } + } - "Returns success" { - then_success_should_have_been_returned(); - } + "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_1/with_one_successful_and_one_failing_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_1/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs index 6d91e459434..6d63590a731 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/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_1/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs @@ -9,12 +9,12 @@ feature! { given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(); 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(r#"level_1::pass: test + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"level_1::pass: test level_1::fail: test"#); } "Returns success" { - then_success_should_have_been_returned(); + 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_1/with_one_successful_and_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_1/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs index 69130114771..23565050e2a 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/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_1/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs @@ -9,12 +9,12 @@ feature! { given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(); 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(r#"level_1::pass: test + "Ouputs the test in the terse format" { + then_the_standard_output_should_have(r#"level_1::pass: test level_1::ignored: test"#); } - "Returns success" { - then_success_should_have_been_returned(); + "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_1/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs index 43a9fe4a00e..12b4a05874e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -9,7 +9,7 @@ feature! { given_there_is_an_assembly_with_one_successful_level_1_test(); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); - "Ouputs the test in the terse format" { + "Outputs the test in the terse format" { then_the_standard_output_should_have(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_2/with_one_successful_and_one_failing_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_2/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs index 59c9145ee7f..f4f28fccf88 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/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_2/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs @@ -9,12 +9,12 @@ feature! { given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(); 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(r#"level_1::level_2::pass: test + "Ouputs the test in the terse format" { + then_the_standard_output_should_have(r#"level_1::level_2::pass: test level_1::level_2::fail: test"#); - } + } - "Returns success" { - then_success_should_have_been_returned(); - } + "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_2/with_one_successful_and_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_2/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs index 651ab06add2..954c923ec51 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/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_2/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs @@ -9,12 +9,12 @@ feature! { given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(); 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(r#"level_1::level_2::pass: test + "Outputs the test in the terse format" { + then_the_standard_output_should_have(r#"level_1::level_2::pass: test level_1::level_2::ignored: test"#); - } + } - "Returns success" { - then_success_should_have_been_returned(); - } + "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_2/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs index 246ce2d1949..4fdfd8bfdb5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -9,7 +9,7 @@ feature! { given_there_is_an_assembly_with_one_successful_level_2_test(); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); - "Ouputs the test in the terse format" { + "Outputs the test in the terse format" { then_the_standard_output_should_have("level_1::level_2::pass: test"); } 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 deleted file mode 100644 index 7afe439c379..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/returns_success_feature.rs +++ /dev/null @@ -1,5 +0,0 @@ -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; - diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs index 9f3965534b1..5ce2062f9b0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("pass ... ok"); + then_the_standard_output_should_have("pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs index 3ce52b228ef..2aee9d5ed95 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("as"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("pass ... ok"); + then_the_standard_output_should_have("pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs index af7e2ccf4da..caa5b2c285e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pa"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("pass ... ok"); + then_the_standard_output_should_have("pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs index 02a8c3e2ba9..ec118a61551 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("ss"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("pass ... ok"); + then_the_standard_output_should_have("pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs index a358887ac0c..823938170cd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs @@ -11,26 +11,26 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass"); "Outputs its running 2 tests" { - then_the_standard_output_should_have("running 2 tests"); + then_the_standard_output_should_have("running 2 tests"); } "Outputs the successful test 1 summary" { - then_the_standard_output_should_have("pass_1 ... ok"); + then_the_standard_output_should_have("pass_1 ... ok"); } "Outputs the successful test 2 summary" { - then_the_standard_output_should_have("pass_2 ... ok"); + then_the_standard_output_should_have("pass_2 ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs index d112f0e4093..1894731a291 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs @@ -12,22 +12,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("cool"); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 0 ignored; 1 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs index 289bdae7cd1..fea9d2d72fa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs @@ -11,26 +11,26 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); + then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } "Outpus the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); + then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 filtered out"); } "Returns failure" { - then_failure_should_have_been_returned(); + then_failure_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs index 1bb9e9bbb52..266ffc60652 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_ignored_test::ignored ... ignored"); + then_the_standard_output_should_have("test assembly_with_one_ignored_test::ignored ... ignored"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs index 141939c0de3..4a5c6629348 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 1 test" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_ignored_with_reason_test::ignored ... ignored, test"); + then_the_standard_output_should_have("test assembly_with_one_ignored_with_reason_test::ignored ... ignored, test"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 0 passed; 0 failed; 1 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_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/executes_tests_feature.rs index 54b3cbc8191..a34b143c445 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_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/executes_tests_feature.rs @@ -11,30 +11,30 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 2 tests" { - then_the_standard_output_should_have("running 2 tests"); + then_the_standard_output_should_have("running 2 tests"); } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL"); + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::pass ... ok"); + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::pass ... ok"); } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } "Outpus the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n"); + then_the_standard_output_should_have("failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n"); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 filtered out"); } "Returns failure" { - then_failure_should_have_been_returned(); + then_failure_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs index 81ecc64de8a..733a244d0d5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs @@ -11,26 +11,26 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 2 tests" { - then_the_standard_output_should_have("running 2 tests"); + then_the_standard_output_should_have("running 2 tests"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::pass ... ok"); + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::pass ... ok"); } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::ignored ... ignored"); + then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::ignored ... ignored"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 1 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 1 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs index 25ed5e99425..5e8845eea0f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 1 tests" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs index e0ef45f8308..c94ff50b660 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 1 tests" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs index ad1e875eb5d..574fca15652 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs @@ -11,22 +11,22 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs its running 1 tests" { - then_the_standard_output_should_have("running 1 test"); + then_the_standard_output_should_have("running 1 test"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_level_2_test::level_1::level_2::pass ... ok"); + then_the_standard_output_should_have("test assembly_with_one_successful_level_2_test::level_1::level_2::pass ... ok"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Outputs the assembly test summary" { - then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); } "Returns success" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs index 98d6ff5955b..e0947fe77f5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs @@ -11,14 +11,14 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); "Outputs no tests to run warning" { - then_the_standard_output_should_have("no tests to run!"); + then_the_standard_output_should_have("no tests to run!"); } "Outputs no error" { - then_the_standard_error_should_be_empty(); + then_the_standard_error_should_be_empty(); } "Returns an error code" { - then_success_should_have_been_returned(); + then_success_should_have_been_returned(); } } diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs index 31382b55506..7e07e1a7c29 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs @@ -10,7 +10,7 @@ feature! { when_wasm_bindgen_test_runner_is_invoked_without_arguments(); "Outputs the wasm-bindgen-test-runner usage information" { - then_the_standard_error_should_have(r#" + then_the_standard_error_should_have(r#" Usage: wasm-bindgen-test-runner [options] [] [--include-ignored] [(--skip PATTERN)...] [--nocapture] wasm-bindgen-test-runner [options] [--nocapture] --exact @@ -21,10 +21,10 @@ Usage: } "Outputs test file missing error" { - then_the_standard_error_should_have("Invalid arguments."); + then_the_standard_error_should_have("Invalid arguments."); } "Returns an error code" { - then_failure_should_have_been_returned(); + then_failure_should_have_been_returned(); } } From f4a77069df6a294e1bb8843df55a3c5dc04149f4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 24 Jun 2024 00:49:12 +0100 Subject: [PATCH 240/323] wasm-bindgen-test-runner: Added support for enabling filtering the specific browser intended. --- .../bin/wasm-bindgen-test-runner/headless.rs | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) 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 a4886800260..347061acc12 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -234,12 +234,18 @@ impl Driver { .collect::>() }; - let drivers = [ - ("geckodriver", Driver::Gecko as fn(Locate) -> Driver), - ("safaridriver", Driver::Safari as fn(Locate) -> Driver), - ("chromedriver", Driver::Chrome as fn(Locate) -> Driver), - ("msedgedriver", Driver::Edge as fn(Locate) -> Driver), - ]; + let drivers = match Self::filter().unwrap_or_default().as_str() { + "firefox" => vec![("geckodriver", Driver::Gecko as fn(Locate) -> Driver)], + "safari" => vec![("safaridriver", Driver::Safari as fn(Locate) -> Driver)], + "chrome" => vec![("chromedriver", Driver::Chrome as fn(Locate) -> Driver)], + "edge" => vec![("msedgedriver", Driver::Edge as fn(Locate) -> Driver)], + _ => vec![ + ("geckodriver", Driver::Gecko as fn(Locate) -> Driver), + ("safaridriver", Driver::Safari as fn(Locate) -> Driver), + ("chromedriver", Driver::Chrome as fn(Locate) -> Driver), + ("msedgedriver", Driver::Edge as fn(Locate) -> Driver), + ], + }; // First up, if env vars like GECKODRIVER_REMOTE are present, use those // to allow forcing usage of a particular remote driver. @@ -311,6 +317,24 @@ an issue against rustwasm/wasm-bindgen! ) } + /// Checks if a filter for a specific Browser to be used was set using WASM_BINDGEN_USE_BROWSER + fn filter() -> Option { + if let Ok(browser) = env::var("WASM_BINDGEN_USE_BROWSER") { + match browser.to_lowercase().as_str() { + "firefox" | "safari" | "chrome" | "edge" => Some(browser), + other => { + println!( + "unknown browser: {} referenced in WASM_BINDGEN_USE_BROWSER", + other + ); + None + } + } + } else { + None + } + } + fn browser(&self) -> &str { match self { Driver::Gecko(_) => "Firefox", From 6ee04f307fb95417d2ed82421c624b510c9ceeb3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 26 Jun 2024 21:00:30 +0100 Subject: [PATCH 241/323] wasm-bindgen-test-runner: Removed extra tabs that were being injected to browsers only. --- crates/test/src/rt/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs index 2d6086ffbb1..08939db04f3 100644 --- a/crates/test/src/rt/mod.rs +++ b/crates/test/src/rt/mod.rs @@ -709,7 +709,7 @@ impl State { } logs.push_str(which); logs.push_str(" output:\n"); - logs.push_str(&tab(output)); + logs.push_str(output); logs.push('\n'); } @@ -747,7 +747,7 @@ impl State { logs.push_str(&tab(&error_string)); } - let msg = format!("---- {} output ----\n{}", test.name, tab(&logs)); + let msg = format!("---- {} output ----\n{}", test.name, &logs); self.formatter.writeln(&msg); } } From a0fdaba54eb2fb7bfe643fb7bb7e44a141adb06e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 26 Jun 2024 21:02:01 +0100 Subject: [PATCH 242/323] wasm-bindgen-test-runner: Updated feature to be parametric. --- .../executes_test_feature.rs | 12 ++++++---- .../wasm_bindgen_test_runner/__steps__/mod.rs | 2 ++ .../__steps__/runtime.rs | 9 ++++++++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ ...s_invoked_with_the_assembly_for_runtime.rs | 23 +++++++++++++++++++ 5 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/runtime.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs index fea9d2d72fa..3670e620e53 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs @@ -1,14 +1,16 @@ 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__::standard_error::then_the_standard_error_should_have; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime; use crate::__steps__::Context; +use crate::__steps__::Runtime; use auroka_morpheus_macros_feature::feature; feature! { + runtime: Runtime + given_there_is_an_assembly_with_one_failing_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime(runtime); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); @@ -19,7 +21,9 @@ feature! { } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_output_should_have(r#"assertion `left == right` failed + left: 1 + right: 2"#); } "Outpus the assembly failure summary" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index 1f0114f0740..89ed6b45681 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,9 +1,11 @@ pub mod assembly; mod context; pub mod error_code; +mod runtime; pub mod standard_error; pub mod standard_output; pub mod success; pub mod wasm_bindgen_test_runner; pub use context::*; +pub use runtime::Runtime; diff --git a/tests/wasm_bindgen_test_runner/__steps__/runtime.rs b/tests/wasm_bindgen_test_runner/__steps__/runtime.rs new file mode 100644 index 00000000000..89b598e54ce --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/runtime.rs @@ -0,0 +1,9 @@ +pub enum Runtime { + Default, + Chrome, + Deno, + Edge, + Node, + Firefox, + Safari, +} 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 3c0e5a4a804..e8b9a6e8be6 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 @@ -5,6 +5,7 @@ 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_with_the_assembly_and_the_arguments; +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime; mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; @@ -15,5 +16,6 @@ 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_with_the_assembly_and_the_arguments::*; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime::*; 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_assembly_for_runtime.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime.rs new file mode 100644 index 00000000000..7b767d05089 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime.rs @@ -0,0 +1,23 @@ +use crate::__steps__::Runtime; +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_for_runtime( + context: &mut Context, + runtime: Runtime, +) { + let mut command = wasm_bindgen_test_runner_command(); + + match runtime { + Runtime::Chrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), + Runtime::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), + Runtime::Edge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), + Runtime::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), + Runtime::Firefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), + Runtime::Safari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + Runtime::Default => &mut command, + }; + + command.arg(context.sandbox_mut().assembly()); + + context.output_set(command.output()); +} From 49a803eac9ba46a12e3750ce0fde477932e515e4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 29 Jun 2024 23:24:33 +0100 Subject: [PATCH 243/323] wasm-bindgen-test-runner: Added a File Lock to prevent multiple safaridriver executing at the same time. --- .../bin/wasm-bindgen-test-runner/headless.rs | 116 +++++++++++++++--- 1 file changed, 99 insertions(+), 17 deletions(-) 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 347061acc12..5177f2f0c98 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -57,9 +57,13 @@ pub struct LegacyNewSessionParameters { /// will return an error if some tests failed. pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error> { let driver = Driver::find()?; - let mut drop_log: Box = Box::new(|| ()); - let driver_url = match driver.location() { - Locate::Remote(url) => Ok(url.clone()), + let mut client = match driver.location() { + Locate::Remote(url) => Client { + agent: Agent::new(), + driver_url: url.clone(), + session: None, + background_child: None, + }, Locate::Local((path, args)) => { // Allow tests to run in parallel (in theory) by finding any open port // available for our driver. We can't bind the port for the driver, but @@ -70,8 +74,8 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error // threads. We'll print this output later. let mut cmd = Command::new(path); cmd.args(args).arg(format!("--port={}", driver_addr.port())); - let mut child = BackgroundChild::spawn(path, &mut cmd, shell)?; - drop_log = Box::new(move || child.print_stdio_on_drop = false); + + let child = BackgroundChild::spawn(path, &mut cmd, shell)?; // Wait for the driver to come online and bind its port before we try to // connect to it. @@ -88,20 +92,20 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error if !bound { bail!("driver failed to bind port during startup") } - Url::parse(&format!("http://{}", driver_addr)).map_err(Error::from) + Client { + agent: Agent::new(), + driver_url: Url::parse(&format!("http://{}", driver_addr)).map_err(Error::from)?, + session: None, + background_child: Some(child), + } } - }?; + }; println!( "Running headless tests in {} on `{}`", driver.browser(), - driver_url.as_str(), + client.driver_url().as_str(), ); - let mut client = Client { - agent: Agent::new(), - driver_url, - session: None, - }; println!("Try find `webdriver.json` for configure browser's capabilities:"); let capabilities: Capabilities = match File::open("webdriver.json") { Ok(file) => { @@ -180,7 +184,7 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error // If the tests harness finished (either successfully or unsuccessfully) // then in theory all the info needed to debug the failure is in its own // output, so we shouldn't need the driver logs to get printed. - drop_log(); + client.drop_log(); } else { println!("Failed to detect test as having been run. It might have timed out."); if !output.is_empty() { @@ -354,10 +358,11 @@ an issue against rustwasm/wasm-bindgen! } } -struct Client { +struct Client<'b> { agent: Agent, driver_url: Url, session: Option, + background_child: Option>, } enum Method<'a> { @@ -370,7 +375,17 @@ enum Method<'a> { // I'm not too familiar with them myself, but these seem to work! I mostly // copied the `webdriver-client` crate when writing the below bindings. -impl Client { +impl<'b> Client<'b> { + fn driver_url(&self) -> &Url { + &self.driver_url + } + + fn drop_log(&mut self) { + if let Some(child) = self.background_child.as_mut() { + child.print_stdio_on_drop = false; + } + } + fn new_session(&mut self, driver: &Driver, mut cap: Capabilities) -> Result { match driver { Driver::Gecko(_) => { @@ -606,7 +621,7 @@ impl Client { } } -impl Drop for Client { +impl<'b> Drop for Client<'b> { fn drop(&mut self) { let id = match &self.session { Some(id) => id.clone(), @@ -640,6 +655,7 @@ struct BackgroundChild<'a> { stderr: Option>>>, shell: &'a Shell, print_stdio_on_drop: bool, + lock: Option, } impl<'a> BackgroundChild<'a> { @@ -648,6 +664,8 @@ impl<'a> BackgroundChild<'a> { cmd: &mut Command, shell: &'a Shell, ) -> Result, Error> { + let lock = Self::lock(path); + cmd.stdout(Stdio::piped()) .stderr(Stdio::piped()) .stdin(Stdio::null()); @@ -665,8 +683,31 @@ impl<'a> BackgroundChild<'a> { stderr, shell, print_stdio_on_drop: true, + lock, }) } + + fn lock(path: &Path) -> Option { + if path.to_string_lossy().contains("safaridriver") { + let mut lock = SafariLock::new(); + while !lock.enter() { + thread::sleep(Duration::from_millis(100)); + } + Some(lock) + } else { + None + } + } +} + +fn is_safaridriver_running() -> bool { + let output = Command::new("pgrep") + .arg("-x") + .arg("safaridriver") + .output() + .expect("Failed to execute pgrep command"); + + !output.stdout.is_empty() } impl<'a> Drop for BackgroundChild<'a> { @@ -690,3 +731,44 @@ impl<'a> Drop for BackgroundChild<'a> { } } } + +struct SafariLock { + counter: u32, + file: PathBuf, +} + +impl SafariLock { + fn new() -> Self { + let file = env::temp_dir().join("safaridriver.lock"); + Self { counter: 0, file } + } + + fn enter(&mut self) -> bool { + if self.file.exists() { + if !is_safaridriver_running() { + self.counter += 1; + } + if self.counter < 10 { + return false; + } + self.counter = 0; + std::fs::remove_file(&self.file).unwrap(); + } + + std::fs::OpenOptions::new() + .write(true) + .create_new(true) + .open(&self.file).is_ok() + } +} + +impl Drop for SafariLock { + fn drop(&mut self) { + while is_safaridriver_running() { + thread::sleep(Duration::from_millis(100)); + } + if self.file.exists() { + std::fs::remove_file(&self.file).unwrap(); + } + } +} From 91e5f7cde5d068afdf06b651b265dd8caad4ec69 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 30 Jun 2024 01:23:44 +0100 Subject: [PATCH 244/323] wasm-bindgen-test: Updated to allow default on WASM_BINDGEN_USE_BROWSER. --- crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs | 1 + 1 file changed, 1 insertion(+) 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 5177f2f0c98..a616e641c29 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -326,6 +326,7 @@ an issue against rustwasm/wasm-bindgen! if let Ok(browser) = env::var("WASM_BINDGEN_USE_BROWSER") { match browser.to_lowercase().as_str() { "firefox" | "safari" | "chrome" | "edge" => Some(browser), + "yes" => None, other => { println!( "unknown browser: {} referenced in WASM_BINDGEN_USE_BROWSER", From b0abdcb954a6b535868c077347f05577b415b92a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 30 Jun 2024 01:26:24 +0100 Subject: [PATCH 245/323] wasm-bindgen-test-runner: Renamed Runtime to TestMode as its the name its already used in the test runner. --- .../__data__/test_mode.rs | 11 +++++++++ .../executes_test_feature.rs | 8 +++---- .../wasm_bindgen_test_runner/__steps__/mod.rs | 4 ++-- .../__steps__/runtime.rs | 9 ------- .../__steps__/test_mode.rs | 10 ++++++++ .../__steps__/wasm_bindgen_test_runner/mod.rs | 4 ++-- ...s_invoked_with_the_assembly_for_runtime.rs | 23 ------------------ ...invoked_with_the_assembly_for_test_mode.rs | 24 +++++++++++++++++++ 8 files changed, 53 insertions(+), 40 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__data__/test_mode.rs delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/runtime.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/test_mode.rs delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs diff --git a/tests/wasm_bindgen_test_runner/__data__/test_mode.rs b/tests/wasm_bindgen_test_runner/__data__/test_mode.rs new file mode 100644 index 00000000000..80c20931676 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__data__/test_mode.rs @@ -0,0 +1,11 @@ +enum TestMode { + Default, + Deno, + Node, + BrowserDefault, + BrowserChrome, + BrowserEdge, + BrowserFirefox, + #[cfg(host_os = "macos")] + BrowserSafari, +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs index 3670e620e53..0165b1ef401 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs @@ -1,16 +1,16 @@ 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__::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_for_runtime; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; -use crate::__steps__::Runtime; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - runtime: Runtime + mode: TestMode given_there_is_an_assembly_with_one_failing_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime(runtime); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(mode); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index 89ed6b45681..aa7261c6eb9 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,11 +1,11 @@ pub mod assembly; mod context; pub mod error_code; -mod runtime; +mod test_mode; pub mod standard_error; pub mod standard_output; pub mod success; pub mod wasm_bindgen_test_runner; pub use context::*; -pub use runtime::Runtime; +pub use test_mode::TestMode; diff --git a/tests/wasm_bindgen_test_runner/__steps__/runtime.rs b/tests/wasm_bindgen_test_runner/__steps__/runtime.rs deleted file mode 100644 index 89b598e54ce..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/runtime.rs +++ /dev/null @@ -1,9 +0,0 @@ -pub enum Runtime { - Default, - Chrome, - Deno, - Edge, - Node, - Firefox, - Safari, -} diff --git a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs new file mode 100644 index 00000000000..4b4722894c1 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs @@ -0,0 +1,10 @@ +pub enum TestMode { + Default, + Deno, + Node, + BrowserDefault, + BrowserChrome, + BrowserEdge, + BrowserFirefox, + BrowserSafari, +} 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 e8b9a6e8be6..9fd11c77837 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 @@ -5,7 +5,7 @@ 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_with_the_assembly_and_the_arguments; -mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime; +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; @@ -16,6 +16,6 @@ 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_with_the_assembly_and_the_arguments::*; -pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime::*; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode::*; 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_assembly_for_runtime.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime.rs deleted file mode 100644 index 7b767d05089..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_runtime.rs +++ /dev/null @@ -1,23 +0,0 @@ -use crate::__steps__::Runtime; -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_for_runtime( - context: &mut Context, - runtime: Runtime, -) { - let mut command = wasm_bindgen_test_runner_command(); - - match runtime { - Runtime::Chrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), - Runtime::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), - Runtime::Edge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), - Runtime::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), - Runtime::Firefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), - Runtime::Safari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), - Runtime::Default => &mut command, - }; - - 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_for_test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs new file mode 100644 index 00000000000..3e58ca207a5 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs @@ -0,0 +1,24 @@ +use crate::__steps__::TestMode; +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_for_test_mode( + context: &mut Context, + mode: TestMode, +) { + let mut command = wasm_bindgen_test_runner_command(); + + match mode { + TestMode::Default => &mut command, + TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), + TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), + TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), + TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), + TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), + TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), + TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + }; + + command.arg(context.sandbox_mut().assembly()); + + context.output_set(command.output()); +} From b0bb3f9c3431c2a2986267447e28684f5daf3708 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 30 Jun 2024 02:08:40 +0100 Subject: [PATCH 246/323] wasm-bindgen-test-runner: Converted feature tests to be parametric over TestMode. --- .../with_one_failing_test/executes_test_feature.rs | 10 ++++------ .../with_one_ignored_test/ignores_test_feature.rs | 7 +++++-- .../ignores_test_feature.rs | 7 +++++-- .../executes_tests_feature.rs | 12 +++++++----- .../executes_one_test_and_ignores_another_feature.rs | 7 +++++-- .../executes_test_feature.rs | 7 +++++-- .../executes_test_feature.rs | 7 +++++-- .../executes_test_feature.rs | 7 +++++-- 8 files changed, 41 insertions(+), 23 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs index 0165b1ef401..7949cf12e6c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs @@ -7,10 +7,10 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - mode: TestMode + test_mode: TestMode given_there_is_an_assembly_with_one_failing_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(mode); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); @@ -21,12 +21,10 @@ feature! { } "Outputs the failed test assertion error" { - then_the_standard_output_should_have(r#"assertion `left == right` failed - left: 1 - right: 2"#); + then_the_standard_output_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } - "Outpus the assembly failure summary" { + "Outputs the assembly failure summary" { then_the_standard_output_should_have("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_ignored_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs index 266ffc60652..f821eca15bc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs @@ -2,13 +2,16 @@ 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__::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; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_ignored_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 test" { then_the_standard_output_should_have("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/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs index 4a5c6629348..54854cf16e0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + mode: TestMode + given_there_is_an_assembly_with_one_ignored_with_reason_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(mode); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_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/executes_tests_feature.rs index a34b143c445..5b2ea912457 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_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/executes_tests_feature.rs @@ -1,14 +1,16 @@ 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__::standard_error::then_the_standard_error_should_have; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 2 tests" { then_the_standard_output_should_have("running 2 tests"); @@ -23,10 +25,10 @@ feature! { } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_output_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } - "Outpus the assembly failure summary" { + "Outputs the assembly failure summary" { then_the_standard_output_should_have("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_ignored_tests/executes_one_test_and_ignores_another_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs index 733a244d0d5..81fef4c07a8 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_a use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 2 tests" { then_the_standard_output_should_have("running 2 tests"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs index 5e8845eea0f..46d82109c8f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 tests" { then_the_standard_output_should_have("running 1 test"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs index c94ff50b660..39d0a4c1f69 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_l use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 tests" { then_the_standard_output_should_have("running 1 test"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs index 574fca15652..426a51a1986 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_l use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_2_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 tests" { then_the_standard_output_should_have("running 1 test"); From 59f49a07c8ca284b5ad390023aa4464e944168d4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 30 Jun 2024 12:41:07 +0100 Subject: [PATCH 247/323] wasm-bindgen-test-runner: Improved the headless SafariLock. --- .../src/bin/wasm-bindgen-test-runner/headless.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 a616e641c29..65ad44f06e8 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -746,20 +746,25 @@ impl SafariLock { fn enter(&mut self) -> bool { if self.file.exists() { - if !is_safaridriver_running() { - self.counter += 1; + if is_safaridriver_running() { + self.counter = 0; + return false; } + if self.counter < 10 { + self.counter += 1; return false; } + self.counter = 0; std::fs::remove_file(&self.file).unwrap(); } std::fs::OpenOptions::new() - .write(true) - .create_new(true) - .open(&self.file).is_ok() + .write(true) + .create_new(true) + .open(&self.file) + .is_ok() } } From 24968f8d0e62bdfe37fdb9783dd362b26e3cf104 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 30 Jun 2024 12:41:33 +0100 Subject: [PATCH 248/323] wasm-bindgen-test-runner: Improved formatting. --- tests/wasm_bindgen_test_runner/__steps__/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index aa7261c6eb9..61ea3cf4caf 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,10 +1,10 @@ pub mod assembly; mod context; pub mod error_code; -mod test_mode; pub mod standard_error; pub mod standard_output; pub mod success; +mod test_mode; pub mod wasm_bindgen_test_runner; pub use context::*; From c030ecddfaf7888ddee076c7c43e769c8c1855e2 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 1 Jul 2024 01:39:11 +0100 Subject: [PATCH 249/323] wasm-bindgen-test-runner: Extracted Lock from SafariLock, improved to be more resilient. Improved BackgroundChild cleanup. --- .../bin/wasm-bindgen-test-runner/headless.rs | 78 +++---------- .../src/bin/wasm-bindgen-test-runner/lock.rs | 105 ++++++++++++++++++ .../src/bin/wasm-bindgen-test-runner/main.rs | 1 + 3 files changed, 119 insertions(+), 65 deletions(-) create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs 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 65ad44f06e8..1aee4823d00 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -1,3 +1,4 @@ +use crate::lock::{is_process_running, Lock}; use crate::shell::Shell; use anyhow::{bail, format_err, Context, Error}; use log::{debug, warn}; @@ -656,7 +657,7 @@ struct BackgroundChild<'a> { stderr: Option>>>, shell: &'a Shell, print_stdio_on_drop: bool, - lock: Option, + lock: Option, } impl<'a> BackgroundChild<'a> { @@ -665,7 +666,7 @@ impl<'a> BackgroundChild<'a> { cmd: &mut Command, shell: &'a Shell, ) -> Result, Error> { - let lock = Self::lock(path); + let lock = Self::lock(path)?; cmd.stdout(Stdio::piped()) .stderr(Stdio::piped()) @@ -688,33 +689,26 @@ impl<'a> BackgroundChild<'a> { }) } - fn lock(path: &Path) -> Option { + fn lock(path: &Path) -> Result, Error> { if path.to_string_lossy().contains("safaridriver") { - let mut lock = SafariLock::new(); - while !lock.enter() { - thread::sleep(Duration::from_millis(100)); - } - Some(lock) + Ok(Some(Lock::try_new("safaridriver")?)) } else { - None + Ok(None) } } } -fn is_safaridriver_running() -> bool { - let output = Command::new("pgrep") - .arg("-x") - .arg("safaridriver") - .output() - .expect("Failed to execute pgrep command"); - - !output.stdout.is_empty() -} - impl<'a> Drop for BackgroundChild<'a> { fn drop(&mut self) { + let pid = self.child.id(); + self.child.kill().unwrap(); let status = self.child.wait().unwrap(); + + while is_process_running(pid) { + thread::sleep(Duration::from_millis(100)); + } + if !self.print_stdio_on_drop { return; } @@ -732,49 +726,3 @@ impl<'a> Drop for BackgroundChild<'a> { } } } - -struct SafariLock { - counter: u32, - file: PathBuf, -} - -impl SafariLock { - fn new() -> Self { - let file = env::temp_dir().join("safaridriver.lock"); - Self { counter: 0, file } - } - - fn enter(&mut self) -> bool { - if self.file.exists() { - if is_safaridriver_running() { - self.counter = 0; - return false; - } - - if self.counter < 10 { - self.counter += 1; - return false; - } - - self.counter = 0; - std::fs::remove_file(&self.file).unwrap(); - } - - std::fs::OpenOptions::new() - .write(true) - .create_new(true) - .open(&self.file) - .is_ok() - } -} - -impl Drop for SafariLock { - fn drop(&mut self) { - while is_safaridriver_running() { - thread::sleep(Duration::from_millis(100)); - } - if self.file.exists() { - std::fs::remove_file(&self.file).unwrap(); - } - } -} diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs new file mode 100644 index 00000000000..6715b163ba1 --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -0,0 +1,105 @@ +use anyhow::Result; +use std::fs::{hard_link, File, OpenOptions}; +use std::io::{Read, Write}; +use std::path::PathBuf; +use std::process::{id, Command}; +use std::time::Duration; +use std::{env, thread}; + +pub struct Lock { + file: PathBuf, + lock: PathBuf, +} + +impl Lock { + pub fn try_new(name: &str) -> Result { + let mut lock = Self { + file: Self::create_file(name)?, + lock: Self::create_lock(name)?, + }; + lock.aquire()?; + Ok(lock) + } + + fn aquire(&mut self) -> Result<()> { + while !self.try_aquire()? { + thread::sleep(Duration::from_millis(100)); + } + Ok(()) + } + + fn try_aquire(&mut self) -> Result { + if self.lock.exists() { + let pid = Self::read_pid(&self.lock); + + if pid.is_ok() && is_process_running(pid.unwrap()) { + return Ok(false); + } + + std::fs::remove_file(&self.lock).ok(); + } + + hard_link(&self.file, &self.lock).ok(); + + let pid = Self::read_pid(&self.lock); + if pid.is_err() || pid.unwrap() != id() { + return Ok(false); + } + + Ok(true) + } + + fn create_file(name: &str) -> Result { + let id = id(); + + let file = env::temp_dir().join(format!("{}.{}", name, id)); + + let mut file_handle = OpenOptions::new() + .write(true) + .create(true) + .truncate(true) + .open(&file)?; + + file_handle.write_all(id.to_string().as_bytes())?; + file_handle.sync_all()?; + + Ok(file) + } + + fn create_lock(name: &str) -> Result { + Ok(env::temp_dir().join(format!("{}.lock", name))) + } + + fn read_pid(path: &PathBuf) -> Result { + let mut file = File::open(path)?; + let mut pid = String::new(); + file.read_to_string(&mut pid)?; + Ok(pid.parse()?) + } +} + +impl Drop for Lock { + fn drop(&mut self) { + if self.file.exists() { + std::fs::remove_file(&self.file).ok(); + } + if self.lock.exists() { + let pid = Self::read_pid(&self.lock); + if pid.is_ok() && pid.unwrap() == id() { + std::fs::remove_file(&self.lock).ok(); + } + } + } +} + +pub fn is_process_running(pid: u32) -> bool { + let output = Command::new("ps") + .arg("-o") + .arg("pid=") + .arg("-p") + .arg(pid.to_string()) + .output() + .expect("Failed to execute ps command"); + + !output.stdout.is_empty() +} 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 c298fe6f276..a1c0b4bf606 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -23,6 +23,7 @@ use wasm_bindgen_cli_support::Bindgen; mod deno; mod headless; +mod lock; mod node; mod server; mod shell; From a89311b005ae0cf5988b26c3bc3900c67ec2cb24 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 2 Jul 2024 00:18:38 +0100 Subject: [PATCH 250/323] wasm-bindgen-test-runner: Updated headless to terminate Safari --automation if necessary, forcing safaridriver to start it again. --- .../bin/wasm-bindgen-test-runner/headless.rs | 60 ++++++++++++++++--- 1 file changed, 53 insertions(+), 7 deletions(-) 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 1aee4823d00..825ea069123 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -444,7 +444,14 @@ impl<'b> Client<'b> { "capabilities": { } }); - let x: Response = self.post("/session", &request)?; + let mut x: Result = self.post("/session", &request); + if let Some(_) = self.background_child.as_ref() { + while x.is_err() { + terminate_safari_automation(); + x = self.post("/session", &request); + } + } + let x = x?; Ok(x.clone() .session_id .or_else(|| x.value.map(|v| v.session_id.unwrap())) @@ -700,15 +707,9 @@ impl<'a> BackgroundChild<'a> { impl<'a> Drop for BackgroundChild<'a> { fn drop(&mut self) { - let pid = self.child.id(); - self.child.kill().unwrap(); let status = self.child.wait().unwrap(); - while is_process_running(pid) { - thread::sleep(Duration::from_millis(100)); - } - if !self.print_stdio_on_drop { return; } @@ -726,3 +727,48 @@ impl<'a> Drop for BackgroundChild<'a> { } } } + +fn get_safari_automation_pids() -> Vec { + let output = Command::new("pgrep") + .args(&["-f", "Safari --automation"]) + .output() + .ok() + .expect("failed to execute pgrep"); + + if output.stdout.is_empty() { + return Vec::new(); + } + + let pids = String::from_utf8(output.stdout) + .ok() + .expect("failed to parse pgrep output"); + + pids.trim() + .split('\n') + .map(|pid| pid.parse().expect("failed to parse pid")) + .collect() +} + +fn terminate_safari_automation() { + for pid in get_safari_automation_pids() { + terminate_process(pid); + } +} + +fn terminate_process(pid: u32) { + let output = Command::new("kill") + .arg("-9") // SIGTERM + .arg(pid.to_string()) + .output() + .map_err(|e| format!("Failed to execute kill command: {}", e)) + .unwrap(); + + if !output.status.success() { + let error = String::from_utf8_lossy(&output.stderr); + println!("Failed to terminate process: {}", error); + } + + while is_process_running(pid) { + thread::sleep(Duration::from_millis(100)); + } +} From 6558b6e9ad4abc784038dd6e1b314a96c9a923a3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 2 Jul 2024 00:38:31 +0100 Subject: [PATCH 251/323] wasm-bindgen-test-runner: Converted more feature tests to be parametric on the test mode. --- .../executes_failing_test_feature.rs | 10 +++--- .../executes_ignored_test_feature.rs | 7 +++-- .../executes_ignored_test_feature.rs | 7 +++-- ...es_successful_and_failing_tests_feature.rs | 10 +++--- ...es_successful_and_ignored_tests_feature.rs | 7 +++-- .../executes_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_no_tests_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_no_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_no_tests_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_test_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_no_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../skips_tests_feature.rs | 7 +++-- .../executes_no_tests_feature.rs | 7 +++-- .../executes_only_one_test_feature.rs | 7 +++-- .../executes_only_one_test_feature.rs | 7 +++-- .../executes_no_tests_feature.rs | 7 +++-- .../executes_test_feature.rs | 7 +++-- .../executes_test_feature.rs | 7 +++-- .../executes_test_feature.rs | 7 +++-- .../executes_test_feature.rs | 7 +++-- .../executes_tests_feature.rs | 7 +++-- .../executes_no_tests_feature.rs | 7 +++-- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 ++ ...ssembly_for_test_mode_and_the_arguments.rs | 31 +++++++++++++++++++ 50 files changed, 275 insertions(+), 100 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs index 679bb81aaff..1c9bbc4ba66 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs @@ -1,14 +1,16 @@ 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__::standard_error::then_the_standard_error_should_have; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_failing_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); @@ -19,7 +21,7 @@ feature! { } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_output_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } "Outputs the assembly failure summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs index 358ad0cd4cb..13c1def7603 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs @@ -2,13 +2,16 @@ 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__::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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_ignored_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { then_the_standard_output_should_have("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/executes_ignored_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/executes_ignored_test_feature.rs index 4dbb5bf1471..112a55b6b1a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_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/executes_ignored_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_ignored_with_reason_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { then_the_standard_output_should_have("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_and_one_failing_tests/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs index 2e00d3f2b22..c31bd076a89 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/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs @@ -1,14 +1,16 @@ 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__::standard_error::then_the_standard_error_should_have; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 2 tests" { then_the_standard_output_should_have("running 2 tests"); @@ -23,7 +25,7 @@ feature! { } "Outputs the failed test assertion error" { - then_the_standard_error_should_have("assertion `left == right` failed\n left: 1\n right: 2"); + then_the_standard_output_should_have("assertion `left == right` failed\n left: 1\n right: 2"); } "Outputs the assembly failure summary" { 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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs index c47e8f3176d..bb675007b85 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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs @@ -1,13 +1,16 @@ 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__::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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 2 tests" { then_the_standard_output_should_have("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_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs index 93246e7d0c0..395f71db65c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--include-ignored"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { then_the_standard_output_should_have("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/skips_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/skips_test_feature.rs index 5d3a2ffbdcb..43c2b8e973a 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 2cf410db9ef..fdb4247a0a6 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=as"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=as"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 9f966080c71..4eac50a472b 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pa"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pa"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index aee2939bea1..f4d85348be6 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=ss"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=ss"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index f7c994a0b21..5e5fadf796d 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("pass_1"); 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/skips_no_tests_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/skips_no_tests_feature.rs index 9b19f9f9967..880aa0bbae7 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/skips_no_tests_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/skips_no_tests_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pattern"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pattern"); "Outputs the successful test information" { then_the_standard_output_should_have("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_1/with_one_full_match_successful_test/skips_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/skips_test_feature.rs index d97754f9221..b98401a26f9 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=level_1::pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=level_1::pass"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index b9ee7545af3..601f521f9b7 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=1::"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=1::"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 224c03dbf44..84776d2f7f2 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=level_1"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=level_1"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 3916b1a9fed..9d55a2b8f9e 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=ss"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=ss"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index a1c8e191d11..4ce547ec8ac 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_level_1_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("pass_1"); 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/skips_no_tests_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/skips_no_tests_feature.rs index 822461b7305..ab78f2a6cd9 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/skips_no_tests_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/skips_no_tests_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_l use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pattern"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pattern"); "Outputs the successful test information" { then_the_standard_output_should_have("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_2/level_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index 72318d8be72..cee18d51959 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass_1 --skip=pass_2"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass_1 --skip=pass_2"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("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/skips_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/skips_tests_feature.rs index c606e96d1d6..5e8115c3b1c 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_level_1_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=pass_1 --skip=level_1"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass_1 --skip=level_1"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("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/skips_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/skips_tests_feature.rs index 8b9e4737932..7cfd547cbc1 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip=fail --skip=pass_1 --skip=pass_2"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=fail --skip=pass_1 --skip=pass_2"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("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/skips_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/skips_tests_feature.rs index b0832aa0d89..3bc116b1deb 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_level_1_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip fail --skip pass_1 --skip level_1"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip fail --skip pass_1 --skip level_1"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("pass_1"); 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/skips_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/skips_test_feature.rs index ce9717c2800..078b32d1a2e 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 1e68a9e7db0..76425268e17 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip as"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip as"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 077233605ba..93e0e138bc0 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pa"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pa"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index f0b88b780d1..c884f70aec4 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip ss"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip ss"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index 8d86cfac65e..3cb4e4bfa9c 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("pass_1"); 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/skips_no_tests_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/skips_no_tests_feature.rs index aec1779e678..f7ee3af7810 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pattern"); "Outputs the successful test information" { then_the_standard_output_should_have("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_1/with_one_full_match_successful_test/skips_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/skips_test_feature.rs index 10542e4fba4..72eef312195 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip level_1::pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip level_1::pass"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index e5afdee971e..76d2ea49f4d 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip 1::"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip 1::"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index ec73fc6ad99..7f23f78754c 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip level_1"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip level_1"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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/skips_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/skips_test_feature.rs index 42d76d4f857..f457fb92b8b 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/skips_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/skips_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip ss"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip ss"); "Outputs no information about the skipped test" { then_the_standard_output_should_not_have("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_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index 7d3507bcf4e..872023c8c06 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_level_1_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("pass_1"); 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/skips_no_tests_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/skips_no_tests_feature.rs index 72acd044a67..dda69489312 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_l use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_level_1_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pattern"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pattern"); "Outputs the successful test information" { then_the_standard_output_should_have("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_2/level_0/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index a5cce23462f..e0eb45d4d90 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass_1 --skip pass_2"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass_1 --skip pass_2"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("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/skips_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/skips_tests_feature.rs index 7bb26f3a226..7406b0db117 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_level_1_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip pass_1 --skip level_1"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass_1 --skip level_1"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("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/skips_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/skips_tests_feature.rs index e445010980d..a0c36f24adc 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip fail --skip pass_1 --skip pass_2"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip fail --skip pass_1 --skip pass_2"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("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/skips_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/skips_tests_feature.rs index c3c5e9d9dff..bda4ae7bc08 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/skips_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/skips_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_level_1_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--skip fail --skip pass_1 --skip pass_2"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip fail --skip pass_1 --skip pass_2"); "Outputs no information about the skipped test 1" { then_the_standard_output_should_not_have("pass_1"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs index 49ab4fe59fb..42775d5e988 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass --nocapture --exact"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass --nocapture --exact"); "Outputs its running 0 tests" { then_the_standard_output_should_have("running 0 tests"); 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/executes_only_one_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/executes_only_one_test_feature.rs index a146436b90d..4ec70d2354b 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/executes_only_one_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/executes_only_one_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass_1 --nocapture --exact"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass_1 --nocapture --exact"); "Outputs its running 1 test" { then_the_standard_output_should_have("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/executes_only_one_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/executes_only_one_test_feature.rs index 992eb0ae003..4c22896b0a1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/executes_only_one_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/executes_only_one_test_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass_2 --nocapture --exact"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass_2 --nocapture --exact"); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs index 5519333d7d5..ccdb24aeddd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("boo --nocapture --exact"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "boo --nocapture --exact"); "Outputs its running 0 tests" { then_the_standard_output_should_have("running 0 tests"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs index 5ce2062f9b0..aa07af69940 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass"); "Outputs its running 1 test" { then_the_standard_output_should_have("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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs index 2aee9d5ed95..51cb20982ff 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("as"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "as"); "Outputs its running 1 test" { then_the_standard_output_should_have("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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs index caa5b2c285e..e3064868603 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pa"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pa"); "Outputs its running 1 test" { then_the_standard_output_should_have("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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs index ec118a61551..7bdc6c2e242 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("ss"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "ss"); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs index 823938170cd..c5446847c3a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs @@ -2,13 +2,16 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_two_successful_tests(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("pass"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass"); "Outputs its running 2 tests" { then_the_standard_output_should_have("running 2 tests"); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs index 1894731a291..1eb0ee00eba 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs @@ -3,13 +3,16 @@ use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_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__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { + test_mode: TestMode + given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("cool"); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "cool"); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); 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 9fd11c77837..4e4a2e9575b 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 @@ -6,6 +6,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_with_the_assembly_and_the_arguments; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; +mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments; mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; @@ -19,3 +20,4 @@ pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_argum pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode::*; pub use when_wasm_bindgen_test_runner_is_invoked_with_the_option::*; pub use when_wasm_bindgen_test_runner_is_invoked_without_arguments::*; +pub use when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs new file mode 100644 index 00000000000..fa1ef1c2c63 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs @@ -0,0 +1,31 @@ +use crate::__steps__::TestMode; +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_for_test_mode_and_the_arguments( + context: &mut Context, + mode: TestMode, + arguments: &str, +) { + let mut command = wasm_bindgen_test_runner_command(); + + match mode { + TestMode::Default => &mut command, + TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), + TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), + TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), + TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), + TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), + TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), + TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + }; + + if arguments.starts_with("--list") && arguments.contains("--ignored") { + command.arg(context.sandbox().original()); + } else { + command.arg(context.sandbox_mut().assembly()); + } + + command.args(arguments.split_whitespace()); + + context.output_set(command.output()); +} From d9c6177b3c3ff95b21791f920d1444774518532f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 2 Jul 2024 12:13:56 +0100 Subject: [PATCH 252/323] wasm-bindgen-test-runner: Fixed deno handling of arguments. --- crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9a9f39ea505..052c1d13cf2 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs @@ -24,7 +24,7 @@ pub fn execute( // `wasm-bindgen-test-runner` which forwards them to deno which we // forward to the test harness. this is basically only used for test // filters for now. - cx.args(Deno.args.slice(1)); + cx.args(Deno.args); const tests = []; "#, From 65c17e2000d3b7eec6cd76dfee0935c859e27e5a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 5 Jul 2024 21:26:50 +0100 Subject: [PATCH 253/323] wasm-bindgen-test-runner: Simplied feature tests organization for runtimes. --- .../{with_one_successful_test => }/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/deno/mod.rs | 2 +- .../invocation/runtimes/deno/with_one_successful_test/mod.rs | 1 - .../{with_one_successful_test => }/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/firefox/mod.rs | 2 +- .../invocation/runtimes/firefox/with_one_successful_test/mod.rs | 1 - .../{with_one_successful_test => }/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/node/mod.rs | 2 +- .../invocation/runtimes/node/with_one_successful_test/mod.rs | 1 - 9 files changed, 3 insertions(+), 6 deletions(-) rename tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/{with_one_successful_test => }/executes_test_feature.rs (100%) delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/{with_one_successful_test => }/executes_test_feature.rs (100%) delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/mod.rs rename tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/{with_one_successful_test => }/executes_test_feature.rs (100%) delete mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/executes_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.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 index db99b0bac03..4fd4981528c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs @@ -1 +1 @@ -mod with_one_successful_test; +mod executes_test_feature; 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 deleted file mode 100644 index 4fd4981528c..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/with_one_successful_test/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/executes_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.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 index db99b0bac03..4fd4981528c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs @@ -1 +1 @@ -mod with_one_successful_test; +mod executes_test_feature; 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 deleted file mode 100644 index 4fd4981528c..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/with_one_successful_test/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/executes_test_feature.rs rename to tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs 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 index db99b0bac03..4fd4981528c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs @@ -1 +1 @@ -mod with_one_successful_test; +mod executes_test_feature; 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 deleted file mode 100644 index 4fd4981528c..00000000000 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/with_one_successful_test/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod executes_test_feature; From 136d7ecfe1762249ea34cb4905081e38def68289 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 01:15:04 +0100 Subject: [PATCH 254/323] wasm-bindgen-test-runner: Added a feature test to invocation runtimes chrome. --- .../runtimes/chrome/executes_test_feature.rs | 33 +++++++++++++++++++ .../invocation/runtimes/chrome/mod.rs | 1 + .../__features__/invocation/runtimes/mod.rs | 1 + 3 files changed, 35 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs new file mode 100644 index 00000000000..55e86b4753e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserChrome); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; 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 dc0538e69b3..0f3476f8153 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs @@ -1,3 +1,4 @@ +mod chrome; mod deno; mod firefox; mod node; From f39dd51592fb84fa94f8c024af007ed05acd3e29 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 18:12:12 +0100 Subject: [PATCH 255/323] wasm-bindgen-test-runner: Simplified deno feature test to use TestMode::Deno instead of a specialized step. --- .../runtimes/deno/executes_test_feature.rs | 5 +++-- .../__steps__/wasm_bindgen_test_runner/deno/mod.rs | 3 --- ...r_is_invoked_with_the_assembly_targeting_deno.rs | 13 ------------- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 -- 4 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/mod.rs delete 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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs index 0a7e6e4d280..05833f454b4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs @@ -2,13 +2,14 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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_targeting_deno; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_deno(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Deno); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); 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 deleted file mode 100644 index ef6cfe81bac..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/deno/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 3cb17e9753c..00000000000 --- 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 +++ /dev/null @@ -1,13 +0,0 @@ -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 4e4a2e9575b..c0db5e312ff 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,3 @@ -mod deno; mod firefox; mod node; mod sandbox; @@ -10,7 +9,6 @@ mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and 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::*; From d0c2322d54711c115fd54dfcc666e3ab47b75787 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 18:36:56 +0100 Subject: [PATCH 256/323] wasm-bindgen-test-runner: Simplified deno feature test to use TestMode::Firefox instead of a specialized step. --- .../runtimes/firefox/executes_test_feature.rs | 5 +++-- .../wasm_bindgen_test_runner/firefox/mod.rs | 3 --- ...s_invoked_with_the_assembly_targeting_firefox.rs | 13 ------------- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 -- 4 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/mod.rs delete 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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs index 0766f3ede2c..38ca14bc85a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs @@ -2,13 +2,14 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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_targeting_firefox; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_firefox(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserFirefox); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); 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 deleted file mode 100644 index f7e012ba261..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/firefox/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 41cd924d0f7..00000000000 --- 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 +++ /dev/null @@ -1,13 +0,0 @@ -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 c0db5e312ff..61b50e6c9f2 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,3 @@ -mod firefox; mod node; mod sandbox; mod wasm_bindgen_test_runner_command; @@ -9,7 +8,6 @@ mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and mod when_wasm_bindgen_test_runner_is_invoked_with_the_option; mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; -pub use firefox::*; pub use node::*; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; From aa72b1d1abbdeb6ce2a2bd2b1508cea45c8bd2a8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 18:41:32 +0100 Subject: [PATCH 257/323] wasm-bindgen-test-runner: Simplified node feature test to use TestMode::Node instead of a specialized step. --- .../runtimes/node/executes_test_feature.rs | 5 +++-- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 -- .../__steps__/wasm_bindgen_test_runner/node/mod.rs | 3 --- ...r_is_invoked_with_the_assembly_targeting_node.rs | 13 ------------- 4 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/mod.rs delete 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/runtimes/node/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs index 6fa8406b5dd..14a5ad66c55 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs @@ -2,13 +2,14 @@ use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_t use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; 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_targeting_node; +use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode; use crate::__steps__::Context; +use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { given_there_is_an_assembly_with_one_successful_test(); - when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_targeting_node(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Node); "Outputs its running 1 test" { then_the_standard_output_should_have("running 1 test"); 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 61b50e6c9f2..944e57141e6 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,3 @@ -mod node; mod sandbox; mod wasm_bindgen_test_runner_command; mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly; @@ -8,7 +7,6 @@ mod when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and 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 deleted file mode 100644 index d9fa70b23a9..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/node/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index aa5e66a2f09..00000000000 --- 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 +++ /dev/null @@ -1,13 +0,0 @@ -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 908da5a4b9adc8d32ef5b86fe21fef757356856f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 18:48:23 +0100 Subject: [PATCH 258/323] wasm-bindgen-test-runner: Added a feature test for the runtime edge. --- .../runtimes/edge/executes_test_feature.rs | 33 +++++++++++++++++++ .../invocation/runtimes/edge/mod.rs | 1 + .../__features__/invocation/runtimes/mod.rs | 1 + 3 files changed, 35 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs new file mode 100644 index 00000000000..7199378b399 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserEdge); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; 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 0f3476f8153..1df2b6fccf2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs @@ -1,4 +1,5 @@ mod chrome; mod deno; +mod edge; mod firefox; mod node; From 846efb0c5dceae4f09217198bfe8d086ccc0f6f1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:04:23 +0100 Subject: [PATCH 259/323] wasm-bindgen-test-runner: Added a feature test for the runtime safari. --- .../__features__/invocation/runtimes/mod.rs | 1 + .../runtimes/safari/executes_test_feature.rs | 34 +++++++++++++++++++ .../invocation/runtimes/safari/mod.rs | 1 + 3 files changed, 36 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs 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 1df2b6fccf2..ba9dca08e91 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs @@ -3,3 +3,4 @@ mod deno; mod edge; mod firefox; mod node; +mod safari; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs new file mode 100644 index 00000000000..75d2a7eaf85 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs @@ -0,0 +1,34 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +#[cfg(target_os = "macos")] +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserSafari); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; From 09f914f387f8119a48d4d31b50cc5ff19ae16999 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:12:56 +0100 Subject: [PATCH 260/323] wasm-bindgen-test-runner: Added feature tests for test_mode. --- .../__features__/invocation/mod.rs | 1 + .../browser/chrome/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/browser/chrome/mod.rs | 1 + .../browser/edge/executes_test_feature.rs | 33 ++++++++++++++++++ .../invocation/test_mode/browser/edge/mod.rs | 1 + .../browser/firefox/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/browser/firefox/mod.rs | 1 + .../invocation/test_mode/browser/mod.rs | 4 +++ .../browser/safari/executes_test_feature.rs | 34 +++++++++++++++++++ .../test_mode/browser/safari/mod.rs | 1 + .../test_mode/deno/executes_test_feature.rs | 33 ++++++++++++++++++ .../invocation/test_mode/deno/mod.rs | 1 + .../__features__/invocation/test_mode/mod.rs | 3 ++ .../test_mode/node/executes_test_feature.rs | 33 ++++++++++++++++++ .../invocation/test_mode/node/mod.rs | 1 + 15 files changed, 213 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/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 9c1eab26336..03cc75612ff 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs @@ -1,4 +1,5 @@ mod options; mod runtimes; +mod test_mode; mod with_an_assembly; mod without_arguments; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs new file mode 100644 index 00000000000..55e86b4753e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserChrome); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs new file mode 100644 index 00000000000..7199378b399 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserEdge); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs new file mode 100644 index 00000000000..38ca14bc85a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserFirefox); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs new file mode 100644 index 00000000000..76764687e32 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs @@ -0,0 +1,4 @@ +mod chrome; +mod edge; +mod firefox; +mod safari; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs new file mode 100644 index 00000000000..75d2a7eaf85 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs @@ -0,0 +1,34 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +#[cfg(target_os = "macos")] +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserSafari); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs new file mode 100644 index 00000000000..05833f454b4 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Deno); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs new file mode 100644 index 00000000000..a188d34a873 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs @@ -0,0 +1,3 @@ +mod browser; +mod deno; +mod node; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs new file mode 100644 index 00000000000..14a5ad66c55 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Node); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; From bb980c763edbee38f136e8fcfe026a0dbcfa23d0 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:34:17 +0100 Subject: [PATCH 261/323] wasm-bindgen-test-runner: Added feature tests for test mode dedicated worker. --- .../chrome/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/dedicated_worker/chrome/mod.rs | 1 + .../default/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/dedicated_worker/default/mod.rs | 1 + .../edge/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/dedicated_worker/edge/mod.rs | 1 + .../firefox/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/dedicated_worker/firefox/mod.rs | 1 + .../test_mode/dedicated_worker/mod.rs | 5 +++ .../safari/executes_test_feature.rs | 34 +++++++++++++++++++ .../test_mode/dedicated_worker/safari/mod.rs | 1 + .../__features__/invocation/test_mode/mod.rs | 2 ++ ...invoked_with_the_assembly_for_test_mode.rs | 5 +++ ...ssembly_for_test_mode_and_the_arguments.rs | 5 +++ 14 files changed, 188 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs new file mode 100644 index 00000000000..711ce3e29ba --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerChrome); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs new file mode 100644 index 00000000000..877d3f92aa8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerDefault); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs new file mode 100644 index 00000000000..cc56816847b --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerEdge); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs new file mode 100644 index 00000000000..a66252de1fa --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerFirefox); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs new file mode 100644 index 00000000000..63257ffc749 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs @@ -0,0 +1,5 @@ +mod chrome; +mod default; +mod edge; +mod firefox; +mod safari; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs new file mode 100644 index 00000000000..5ea19afd099 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs @@ -0,0 +1,34 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +#[cfg(target_os = "macos")] +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerSafari); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs index a188d34a873..31fa17ffbb4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs @@ -1,3 +1,5 @@ mod browser; +mod dedicated_worker; +mod default; mod deno; mod node; diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs index 3e58ca207a5..33039808d8c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs @@ -16,6 +16,11 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode( TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + TestMode::DedicatedWorkerDefault => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true"), + TestMode::DedicatedWorkerChrome => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome"), + TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), + TestMode::DedicatedWorkerFirefox => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox"), + TestMode::DedicatedWorkerSafari => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari"), }; command.arg(context.sandbox_mut().assembly()); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs index fa1ef1c2c63..966f65c7a03 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs @@ -17,6 +17,11 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_ TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + TestMode::DedicatedWorkerDefault => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true"), + TestMode::DedicatedWorkerChrome => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome"), + TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), + TestMode::DedicatedWorkerFirefox => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox"), + TestMode::DedicatedWorkerSafari => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari"), }; if arguments.starts_with("--list") && arguments.contains("--ignored") { From 0fde303beac794398fc30ebf7f2a973e04ed6ca2 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:36:00 +0100 Subject: [PATCH 262/323] wasm-bindgen-test-runner: Added support for specifying that the tests should be run in dedicated worker test mode and in which browser. --- .../bin/wasm-bindgen-test-runner/headless.rs | 25 +++++++++++++------ .../src/bin/wasm-bindgen-test-runner/main.rs | 5 ++++ 2 files changed, 23 insertions(+), 7 deletions(-) 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 825ea069123..46fbd4d4d55 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -322,17 +322,13 @@ an issue against rustwasm/wasm-bindgen! ) } - /// Checks if a filter for a specific Browser to be used was set using WASM_BINDGEN_USE_BROWSER - fn filter() -> Option { - if let Ok(browser) = env::var("WASM_BINDGEN_USE_BROWSER") { + fn filter_generic(name: &str) -> Option { + if let Ok(browser) = env::var(name) { match browser.to_lowercase().as_str() { "firefox" | "safari" | "chrome" | "edge" => Some(browser), "yes" => None, other => { - println!( - "unknown browser: {} referenced in WASM_BINDGEN_USE_BROWSER", - other - ); + println!("unknown browser: {} referenced in {}", other, name); None } } @@ -341,6 +337,21 @@ an issue against rustwasm/wasm-bindgen! } } + /// Checks if a filter for a specific Browser to be used was set + fn filter() -> Option { + let browser = Self::filter_generic("WASM_BINDGEN_USE_BROWSER"); + if browser.is_some() { + return browser; + } + + let browser = Self::filter_generic("WASM_BINDGEN_USE_DEDICATED_WORKER"); + if browser.is_some() { + return browser; + } + + None + } + fn browser(&self) -> &str { match self { Driver::Gecko(_) => "Firefox", 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 a1c0b4bf606..5eab2d685e7 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -215,6 +215,11 @@ fn main() -> anyhow::Result<()> { 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 if std::env::var("WASM_BINDGEN_USE_DEDICATED_WORKER").is_ok() => { + TestMode::DedicatedWorker { + no_modules: std::env::var("WASM_BINDGEN_USE_NO_MODULE").is_ok(), + } + } None => TestMode::Node, }; From 03b894222b292a52b3412c6cffea7158a4da1583 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:36:33 +0100 Subject: [PATCH 263/323] wasm-bindgen-test-runner: Added feature tests for test mode browser default. --- .../browser/default/executes_test_feature.rs | 33 +++++++++++++++++++ .../test_mode/browser/default/mod.rs | 1 + .../invocation/test_mode/browser/mod.rs | 1 + 3 files changed, 35 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs new file mode 100644 index 00000000000..32e755de222 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserDefault); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs index 76764687e32..63257ffc749 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs @@ -1,4 +1,5 @@ mod chrome; +mod default; mod edge; mod firefox; mod safari; From 0b8f20641cae1146d0bce7913f6e8864d9f59267 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:37:02 +0100 Subject: [PATCH 264/323] wasm-bindgen-test-runner: Added feature tests for test mode dedicated worker. --- .../__steps__/test_mode.rs | 5 +++++ ...is_invoked_with_the_assembly_for_test_mode.rs | 16 ++++++++++++---- ...e_assembly_for_test_mode_and_the_arguments.rs | 16 ++++++++++++---- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs index 4b4722894c1..73fb0781484 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs @@ -7,4 +7,9 @@ pub enum TestMode { BrowserEdge, BrowserFirefox, BrowserSafari, + DedicatedWorkerDefault, + DedicatedWorkerChrome, + DedicatedWorkerEdge, + DedicatedWorkerFirefox, + DedicatedWorkerSafari, } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs index 33039808d8c..a5a0bdac57b 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs @@ -16,11 +16,19 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode( TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), - TestMode::DedicatedWorkerDefault => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true"), - TestMode::DedicatedWorkerChrome => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome"), + TestMode::DedicatedWorkerDefault => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") + } + TestMode::DedicatedWorkerChrome => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") + } TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), - TestMode::DedicatedWorkerFirefox => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox"), - TestMode::DedicatedWorkerSafari => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari"), + TestMode::DedicatedWorkerFirefox => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") + } + TestMode::DedicatedWorkerSafari => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") + } }; command.arg(context.sandbox_mut().assembly()); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs index 966f65c7a03..f58883985ab 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs @@ -17,11 +17,19 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_ TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), - TestMode::DedicatedWorkerDefault => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true"), - TestMode::DedicatedWorkerChrome => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome"), + TestMode::DedicatedWorkerDefault => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") + } + TestMode::DedicatedWorkerChrome => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") + } TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), - TestMode::DedicatedWorkerFirefox => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox"), - TestMode::DedicatedWorkerSafari => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari"), + TestMode::DedicatedWorkerFirefox => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") + } + TestMode::DedicatedWorkerSafari => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") + } }; if arguments.starts_with("--list") && arguments.contains("--ignored") { From a94e99a27f52bf2edefb638c9cd4051ba955ecdc Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:37:22 +0100 Subject: [PATCH 265/323] wasm-bindgen-test-runner: Added feature tests for test mode default. --- .../default/executes_test_feature.rs | 33 +++++++++++++++++++ .../invocation/test_mode/default/mod.rs | 1 + 2 files changed, 34 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs new file mode 100644 index 00000000000..010d35aa46a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Default); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; From fb1d39b31f574b34a113710499058847c315831a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:51:57 +0100 Subject: [PATCH 266/323] wasm-bindgen-test-runner: Added support for specifying that the tests should be run in a service worker test mode and in which browser. --- crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs | 5 +++++ crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 5 +++++ 2 files changed, 10 insertions(+) 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 46fbd4d4d55..b3c25cb87c1 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -349,6 +349,11 @@ an issue against rustwasm/wasm-bindgen! return browser; } + let browser = Self::filter_generic("WASM_BINDGEN_USE_SERVICE_WORKER"); + if browser.is_some() { + return browser; + } + None } 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 5eab2d685e7..2861cd9e87e 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -220,6 +220,11 @@ fn main() -> anyhow::Result<()> { no_modules: std::env::var("WASM_BINDGEN_USE_NO_MODULE").is_ok(), } } + None if std::env::var("WASM_BINDGEN_USE_SERVICE_WORKER").is_ok() => { + TestMode::DedicatedWorker { + no_modules: std::env::var("WASM_BINDGEN_USE_NO_MODULE").is_ok(), + } + } None => TestMode::Node, }; From 5111ee833256fcf06d013ce43776a83ff6df62b0 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 20:52:52 +0100 Subject: [PATCH 267/323] wasm-bindgen-test-runner: Added feature tests for test mode service worker. --- .../__features__/invocation/test_mode/mod.rs | 1 + .../chrome/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/service_worker/chrome/mod.rs | 1 + .../default/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/service_worker/default/mod.rs | 1 + .../edge/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/service_worker/edge/mod.rs | 1 + .../firefox/executes_test_feature.rs | 33 ++++++++++++++++++ .../test_mode/service_worker/firefox/mod.rs | 1 + .../test_mode/service_worker/mod.rs | 5 +++ .../safari/executes_test_feature.rs | 34 +++++++++++++++++++ .../test_mode/service_worker/safari/mod.rs | 1 + .../__steps__/test_mode.rs | 5 +++ ...invoked_with_the_assembly_for_test_mode.rs | 5 +++ ...ssembly_for_test_mode_and_the_arguments.rs | 5 +++ 15 files changed, 192 insertions(+) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs index 31fa17ffbb4..7c5f749626e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs @@ -3,3 +3,4 @@ mod dedicated_worker; mod default; mod deno; mod node; +mod service_worker; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs new file mode 100644 index 00000000000..f87c07fbff0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerChrome); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs new file mode 100644 index 00000000000..692de05ac5a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerDefault); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs new file mode 100644 index 00000000000..278fe0a8526 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerEdge); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs new file mode 100644 index 00000000000..e7b609c0cd0 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerFirefox); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs new file mode 100644 index 00000000000..63257ffc749 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs @@ -0,0 +1,5 @@ +mod chrome; +mod default; +mod edge; +mod firefox; +mod safari; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs new file mode 100644 index 00000000000..f4001ef83bb --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs @@ -0,0 +1,34 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +#[cfg(target_os = "macos")] +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerSafari); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs index 73fb0781484..bf5a856191b 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs @@ -12,4 +12,9 @@ pub enum TestMode { DedicatedWorkerEdge, DedicatedWorkerFirefox, DedicatedWorkerSafari, + ServiceWorkerDefault, + ServiceWorkerChrome, + ServiceWorkerEdge, + ServiceWorkerFirefox, + ServiceWorkerSafari, } diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs index a5a0bdac57b..3a6423e748a 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs @@ -29,6 +29,11 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode( TestMode::DedicatedWorkerSafari => { command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") } + TestMode::ServiceWorkerDefault => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true"), + TestMode::ServiceWorkerChrome => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome"), + TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), + TestMode::ServiceWorkerFirefox => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox"), + TestMode::ServiceWorkerSafari => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari"), }; command.arg(context.sandbox_mut().assembly()); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs index f58883985ab..cf933ffee50 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs @@ -30,6 +30,11 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_ TestMode::DedicatedWorkerSafari => { command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") } + TestMode::ServiceWorkerDefault => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true"), + TestMode::ServiceWorkerChrome => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome"), + TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), + TestMode::ServiceWorkerFirefox => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox"), + TestMode::ServiceWorkerSafari => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari"), }; if arguments.starts_with("--list") && arguments.contains("--ignored") { From f602ad589a40e7fd76c4af4adbbb175a9fa11b1d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 21:13:53 +0100 Subject: [PATCH 268/323] wasm-bindgen-test-runner: Added support for specifying that the tests should be run in a shared worker test mode and in which browser. --- crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs | 2 +- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 5 +++++ 2 files changed, 6 insertions(+), 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 b3c25cb87c1..4f013a97943 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -354,7 +354,7 @@ an issue against rustwasm/wasm-bindgen! return browser; } - None + Self::filter_generic("WASM_BINDGEN_USE_SHARED_WORKER") } fn browser(&self) -> &str { 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 2861cd9e87e..ad8eb040ee8 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -225,6 +225,11 @@ fn main() -> anyhow::Result<()> { no_modules: std::env::var("WASM_BINDGEN_USE_NO_MODULE").is_ok(), } } + None if std::env::var("WASM_BINDGEN_USE_SHARED_WORKER").is_ok() => { + TestMode::DedicatedWorker { + no_modules: std::env::var("WASM_BINDGEN_USE_NO_MODULE").is_ok(), + } + } None => TestMode::Node, }; From fe56bf77c31f7aba9a9f96d801559a98a41db095 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 21:14:51 +0100 Subject: [PATCH 269/323] wasm-bindgen-test-runner: Added feature tests for test mode shared worker. --- .../__features__/invocation/test_mode/mod.rs | 1 + .../chrome/executes_test_feature.rs | 33 ++++++++++++ .../test_mode/shared_worker/chrome/mod.rs | 1 + .../default/executes_test_feature.rs | 33 ++++++++++++ .../test_mode/shared_worker/default/mod.rs | 1 + .../edge/executes_test_feature.rs | 33 ++++++++++++ .../test_mode/shared_worker/edge/mod.rs | 1 + .../firefox/executes_test_feature.rs | 33 ++++++++++++ .../test_mode/shared_worker/firefox/mod.rs | 1 + .../invocation/test_mode/shared_worker/mod.rs | 5 ++ .../safari/executes_test_feature.rs | 34 ++++++++++++ .../test_mode/shared_worker/safari/mod.rs | 1 + .../__steps__/test_mode.rs | 5 ++ .../wasm_bindgen_test_runner_command.rs | 54 ++++++++++++++++++- ...est_runner_is_invoked_with_the_assembly.rs | 6 ++- ...ked_with_the_assembly_and_the_arguments.rs | 6 ++- ...invoked_with_the_assembly_for_test_mode.rs | 31 +---------- ...ssembly_for_test_mode_and_the_arguments.rs | 31 +---------- ..._test_runner_is_invoked_with_the_option.rs | 6 ++- ...est_runner_is_invoked_without_arguments.rs | 6 ++- 20 files changed, 252 insertions(+), 70 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs index 7c5f749626e..b2bd7d749df 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs @@ -4,3 +4,4 @@ mod default; mod deno; mod node; mod service_worker; +mod shared_worker; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs new file mode 100644 index 00000000000..2dcf919fb76 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerChrome); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs new file mode 100644 index 00000000000..4f741049e72 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerDefault); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs new file mode 100644 index 00000000000..17a72d470a7 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerEdge); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs new file mode 100644 index 00000000000..ae03c9f8499 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs @@ -0,0 +1,33 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerFirefox); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs new file mode 100644 index 00000000000..63257ffc749 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs @@ -0,0 +1,5 @@ +mod chrome; +mod default; +mod edge; +mod firefox; +mod safari; diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs new file mode 100644 index 00000000000..e768237ef14 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs @@ -0,0 +1,34 @@ +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__::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_for_test_mode; +use crate::__steps__::Context; +use crate::__steps__::TestMode; +use auroka_morpheus_macros_feature::feature; + +#[cfg(target_os = "macos")] +feature! { + given_there_is_an_assembly_with_one_successful_test(); + when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerSafari); + + "Outputs its running 1 test" { + then_the_standard_output_should_have("running 1 test"); + } + + "Outputs the successful test summary" { + then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + } + + "Outputs the assembly test summary" { + then_the_standard_output_should_have("test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out"); + } + + "Outputs no error" { + then_the_standard_error_should_be_empty(); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs new file mode 100644 index 00000000000..4fd4981528c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs @@ -0,0 +1 @@ +mod executes_test_feature; diff --git a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs index bf5a856191b..751be7b3423 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs @@ -17,4 +17,9 @@ pub enum TestMode { ServiceWorkerEdge, ServiceWorkerFirefox, ServiceWorkerSafari, + SharedWorkerDefault, + SharedWorkerChrome, + SharedWorkerEdge, + SharedWorkerFirefox, + SharedWorkerSafari, } 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 0430fa19bfd..9e3650782e9 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 @@ -1,3 +1,4 @@ +use super::super::TestMode; use assert_cmd::cargo::{CargoError, CommandCargoExt}; use lazy_static::lazy_static; use std::process::Command; @@ -20,9 +21,58 @@ fn wasm_bindgen_test_runner_command_get() -> Result { Command::cargo_bin("wasm-bindgen-test-runner") } -pub fn wasm_bindgen_test_runner_command() -> Command { +pub fn wasm_bindgen_test_runner_command(mode: TestMode) -> Command { if COMMAND.is_ok() { - return Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + let mut command = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + + match mode { + TestMode::Default => &mut command, + TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), + TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), + TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), + TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), + TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), + TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), + TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + TestMode::DedicatedWorkerDefault => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") + } + TestMode::DedicatedWorkerChrome => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") + } + TestMode::DedicatedWorkerEdge => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge") + } + TestMode::DedicatedWorkerFirefox => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") + } + TestMode::DedicatedWorkerSafari => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") + } + TestMode::ServiceWorkerDefault => { + command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true") + } + TestMode::ServiceWorkerChrome => { + command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome") + } + TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), + TestMode::ServiceWorkerFirefox => { + command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox") + } + TestMode::ServiceWorkerSafari => { + command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari") + } + TestMode::SharedWorkerDefault => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "true"), + TestMode::SharedWorkerChrome => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "chrome"), + TestMode::SharedWorkerEdge => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "edge"), + TestMode::SharedWorkerFirefox => { + command.env("WASM_BINDGEN_USE_SHARED_WORKER", "firefox") + } + TestMode::SharedWorkerSafari => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "safari"), + }; + + return command; } + 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 07e6d2d1632..42651932189 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,7 +1,9 @@ -use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; +use crate::__steps__::{ + wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context, TestMode, +}; pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly(context: &mut Context) { - let mut command = wasm_bindgen_test_runner_command(); + let mut command = wasm_bindgen_test_runner_command(TestMode::Default); command.arg(context.sandbox_mut().assembly()); 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 4dc789f8904..d7b7d7d4bca 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 @@ -1,10 +1,12 @@ -use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; +use crate::__steps__::{ + wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context, TestMode, +}; 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(); + let mut command = wasm_bindgen_test_runner_command(TestMode::Default); if arguments.starts_with("--list") && arguments.contains("--ignored") { command.arg(context.sandbox().original()); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs index 3a6423e748a..6ae732b35f1 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs @@ -5,36 +5,7 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode( context: &mut Context, mode: TestMode, ) { - let mut command = wasm_bindgen_test_runner_command(); - - match mode { - TestMode::Default => &mut command, - TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), - TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), - TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), - TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), - TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), - TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), - TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), - TestMode::DedicatedWorkerDefault => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") - } - TestMode::DedicatedWorkerChrome => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") - } - TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), - TestMode::DedicatedWorkerFirefox => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") - } - TestMode::DedicatedWorkerSafari => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") - } - TestMode::ServiceWorkerDefault => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true"), - TestMode::ServiceWorkerChrome => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome"), - TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), - TestMode::ServiceWorkerFirefox => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox"), - TestMode::ServiceWorkerSafari => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari"), - }; + let mut command = wasm_bindgen_test_runner_command(mode); command.arg(context.sandbox_mut().assembly()); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs index cf933ffee50..6d7636026b5 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_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_for_test_mode_and_the_arguments.rs @@ -6,36 +6,7 @@ pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_ mode: TestMode, arguments: &str, ) { - let mut command = wasm_bindgen_test_runner_command(); - - match mode { - TestMode::Default => &mut command, - TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), - TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), - TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), - TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), - TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), - TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), - TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), - TestMode::DedicatedWorkerDefault => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") - } - TestMode::DedicatedWorkerChrome => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") - } - TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), - TestMode::DedicatedWorkerFirefox => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") - } - TestMode::DedicatedWorkerSafari => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") - } - TestMode::ServiceWorkerDefault => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true"), - TestMode::ServiceWorkerChrome => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome"), - TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), - TestMode::ServiceWorkerFirefox => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox"), - TestMode::ServiceWorkerSafari => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari"), - }; + let mut command = wasm_bindgen_test_runner_command(mode); if arguments.starts_with("--list") && arguments.contains("--ignored") { command.arg(context.sandbox().original()); diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs index 45fda809441..fe125708a75 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs @@ -1,10 +1,12 @@ -use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; +use crate::__steps__::{ + wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context, TestMode, +}; pub fn when_wasm_bindgen_test_runner_is_invoked_with_the_option( context: &mut Context, argument: &str, ) { - let mut command = wasm_bindgen_test_runner_command(); + let mut command = wasm_bindgen_test_runner_command(TestMode::Default); command.arg(argument); 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 1a41de36274..141651f3453 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,9 @@ -use crate::__steps__::{wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context}; +use crate::__steps__::{ + wasm_bindgen_test_runner::wasm_bindgen_test_runner_command, Context, TestMode, +}; pub fn when_wasm_bindgen_test_runner_is_invoked_without_arguments(context: &mut Context) { - let mut command = wasm_bindgen_test_runner_command(); + let mut command = wasm_bindgen_test_runner_command(TestMode::Default); context.output_set(command.output()); } From 3620c99f525726f7b10d50882cd727f528b7df09 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 6 Jul 2024 23:09:26 +0100 Subject: [PATCH 270/323] wasm-bindgen-test-runner: Simplified feature test for invocation without arguments. --- .../without_arguments/handles_missing_arguments_feature.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs index 7e07e1a7c29..f98c10ed9c3 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs @@ -1,4 +1,3 @@ -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__::standard_error::then_the_standard_error_should_have; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_without_arguments; @@ -6,7 +5,6 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_failing_test(); when_wasm_bindgen_test_runner_is_invoked_without_arguments(); "Outputs the wasm-bindgen-test-runner usage information" { From 3ed2f05424a38ad42bd581d2d1e8d0540b941509 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Jul 2024 00:45:23 +0100 Subject: [PATCH 271/323] wasm-bindgen-test-runner: Simplified feature tests invocation::options. --- .../options/__help/outputs_the_help_information_feature.rs | 2 -- .../__version/outputs_the_version_information_feature.rs | 2 -- .../options/_h/outputs_the_help_information_feature.rs | 2 -- .../options/_v/outputs_the_version_information_feature.rs | 2 -- 4 files changed, 8 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs index a0f0cbb4786..456678505cd 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs @@ -1,4 +1,3 @@ -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__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; @@ -6,7 +5,6 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_failing_test(); when_wasm_bindgen_test_runner_is_invoked_with_the_option("--help"); "Outputs the wasm-bindgen-test-runner help information" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs index 4c9091b4cc9..33183aa4324 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs @@ -1,4 +1,3 @@ -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__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; @@ -6,7 +5,6 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_failing_test(); when_wasm_bindgen_test_runner_is_invoked_with_the_option("--version"); "Outputs the wasm-bindgen-test-runner version information" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs index 2005eef4552..56d652d7f8c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs @@ -1,4 +1,3 @@ -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__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; @@ -6,7 +5,6 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_failing_test(); when_wasm_bindgen_test_runner_is_invoked_with_the_option("-h"); "Outputs the wasm-bindgen-test-runner help information" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs index f400bfd64b9..cc60293b664 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs @@ -1,4 +1,3 @@ -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__::success::then_success_should_have_been_returned; use crate::__steps__::wasm_bindgen_test_runner::when_wasm_bindgen_test_runner_is_invoked_with_the_option; @@ -6,7 +5,6 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_failing_test(); when_wasm_bindgen_test_runner_is_invoked_with_the_option("-V"); "Outputs the wasm-bindgen-test-runner version information" { From e699bf3b4bc686535123911b0a5fcb8701924c00 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Jul 2024 00:59:31 +0100 Subject: [PATCH 272/323] wasm-bindgen-test-runner: Updated feature tests to use explicit tests for assemblies. --- .../runtimes/chrome/executes_test_feature.rs | 9 +++- .../runtimes/deno/executes_test_feature.rs | 9 +++- .../runtimes/edge/executes_test_feature.rs | 9 +++- .../runtimes/firefox/executes_test_feature.rs | 9 +++- .../runtimes/node/executes_test_feature.rs | 9 +++- .../runtimes/safari/executes_test_feature.rs | 9 +++- .../browser/chrome/executes_test_feature.rs | 9 +++- .../browser/default/executes_test_feature.rs | 9 +++- .../browser/edge/executes_test_feature.rs | 9 +++- .../browser/firefox/executes_test_feature.rs | 9 +++- .../browser/safari/executes_test_feature.rs | 9 +++- .../chrome/executes_test_feature.rs | 9 +++- .../default/executes_test_feature.rs | 9 +++- .../edge/executes_test_feature.rs | 9 +++- .../firefox/executes_test_feature.rs | 9 +++- .../safari/executes_test_feature.rs | 9 +++- .../default/executes_test_feature.rs | 9 +++- .../test_mode/deno/executes_test_feature.rs | 9 +++- .../test_mode/node/executes_test_feature.rs | 9 +++- .../chrome/executes_test_feature.rs | 9 +++- .../default/executes_test_feature.rs | 9 +++- .../edge/executes_test_feature.rs | 9 +++- .../firefox/executes_test_feature.rs | 9 +++- .../safari/executes_test_feature.rs | 9 +++- .../chrome/executes_test_feature.rs | 9 +++- .../default/executes_test_feature.rs | 9 +++- .../edge/executes_test_feature.rs | 9 +++- .../firefox/executes_test_feature.rs | 9 +++- .../safari/executes_test_feature.rs | 9 +++- .../given_there_is_an_assembly_with.rs | 53 +++++++++++++++++++ ...re_is_an_assembly_with_one_failing_test.rs | 26 --------- .../__steps__/assembly/mod.rs | 6 +-- ...re_is_an_assembly_with_one_ignored_test.rs | 27 ---------- .../assembly/with_one_ignored_test/mod.rs | 2 - ...embly_with_one_ignored_with_reason_test.rs | 28 ---------- .../with_one_ignored_with_reason_test/mod.rs | 3 -- ...is_an_assembly_with_one_successful_test.rs | 26 --------- .../assembly/with_one_successful_test/mod.rs | 2 - 38 files changed, 258 insertions(+), 176 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_failing_test.rs delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_test.rs delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/mod.rs delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_test.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs index 55e86b4753e..fe25bca1255 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserChrome); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs index 05833f454b4..4d96f769d0d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Deno); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs index 7199378b399..79d22736227 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserEdge); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs index 38ca14bc85a..685e2c2c493 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserFirefox); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs index 14a5ad66c55..1828a57af2a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Node); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs index 75d2a7eaf85..969894c9d02 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; #[cfg(target_os = "macos")] feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserSafari); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs index 55e86b4753e..fe25bca1255 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserChrome); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs index 32e755de222..692f4352afb 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserDefault); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs index 7199378b399..79d22736227 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserEdge); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs index 38ca14bc85a..685e2c2c493 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserFirefox); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs index 75d2a7eaf85..969894c9d02 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; #[cfg(target_os = "macos")] feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::BrowserSafari); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs index 711ce3e29ba..925147c8a37 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerChrome); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs index 877d3f92aa8..25bf2462654 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerDefault); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs index cc56816847b..9956b9bf8d0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerEdge); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs index a66252de1fa..4a5b5112ee0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerFirefox); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs index 5ea19afd099..ea8486ae262 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; #[cfg(target_os = "macos")] feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::DedicatedWorkerSafari); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs index 010d35aa46a..315177eec4d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Default); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs index 05833f454b4..4d96f769d0d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Deno); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs index 14a5ad66c55..1828a57af2a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::Node); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs index f87c07fbff0..77b383fdb10 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerChrome); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs index 692de05ac5a..99c66bb1f40 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerDefault); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs index 278fe0a8526..18bf091bfd4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerEdge); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs index e7b609c0cd0..8c83512f316 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerFirefox); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs index f4001ef83bb..75df12b2fee 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; #[cfg(target_os = "macos")] feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::ServiceWorkerSafari); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs index 2dcf919fb76..fb7fa975c63 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerChrome); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs index 4f741049e72..b168299254f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerDefault); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs index 17a72d470a7..db84f0411ca 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerEdge); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs index ae03c9f8499..0ddb6e871c2 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -8,7 +8,12 @@ use crate::__steps__::TestMode; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerFirefox); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs index e768237ef14..3aa9229ffaa 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; #[cfg(target_os = "macos")] feature! { - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(TestMode::SharedWorkerSafari); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs new file mode 100644 index 00000000000..65f2767a2a2 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs @@ -0,0 +1,53 @@ +use crate::__steps__::assembly::AssemblyBuilder; +use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::Context; +use lazy_static::lazy_static; +use std::collections::HashMap; +use std::path::PathBuf; +use std::sync::Mutex; + +lazy_static! { + static ref ASSEMBLY_CACHE: Mutex> = Mutex::new(HashMap::new()); + static ref ASSEMBLY: PathBuf = AssemblyBuilder::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(); +} + +pub fn given_there_is_an_assembly_with(context: &mut Context, content: &str) { + let mut cache = ASSEMBLY_CACHE.lock().unwrap(); + + let assembly_path = cache + .entry(content.to_string()) + .or_insert_with(|| { + // If the assembly is not in the cache, compile it and insert into the cache + AssemblyBuilder::new("assembly_with_one_successful_test") + .file("src/lib.rs", &generate_content(content)) + .build() + }) + .clone(); + + context.sandbox_set(Sandbox::new(assembly_path)); +} + +fn generate_content(content: &str) -> String { + format!( + r#"#[cfg(test)] +use wasm_bindgen_test::*; + +#[cfg(test)] +{} +"#, + content + ) +} 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 deleted file mode 100644 index 71bb1ec4739..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with_one_failing_test.rs +++ /dev/null @@ -1,26 +0,0 @@ -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 fe6804e6949..8cb2649aac3 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,18 +1,16 @@ mod assembly_builder; -mod given_there_is_an_assembly_with_one_failing_test; +mod given_there_is_an_assembly_with; mod given_there_is_an_assembly_without_anything; 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; mod with_two_successful_tests; pub use assembly_builder::*; -pub use given_there_is_an_assembly_with_one_failing_test::*; +pub use given_there_is_an_assembly_with::*; pub use given_there_is_an_assembly_without_anything::*; 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_ignored_test/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 deleted file mode 100644 index f0725eed341..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_test.rs +++ /dev/null @@ -1,27 +0,0 @@ -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_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/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs index d2d4828016c..4d5ba80e331 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,7 +1,5 @@ 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::*; 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 deleted file mode 100644 index 74b254cf545..00000000000 --- 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 +++ /dev/null @@ -1,28 +0,0 @@ -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_with_reason_test") - .file( - "src/lib.rs", - r#"#[cfg(test)] -use wasm_bindgen_test::*; - -#[cfg(test)] -#[wasm_bindgen_test] -#[ignore = "test"] -fn ignored() { - assert_eq!(1, 1); -} -"#, - ) - .build(); -} - -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 deleted file mode 100644 index 7b6014d0a67..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_with_reason_test/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -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::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/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 deleted file mode 100644 index 828c62468c6..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_test.rs +++ /dev/null @@ -1,26 +0,0 @@ -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_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(); -} - -pub fn given_there_is_an_assembly_with_one_successful_test(context: &mut Context) { - context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); -} 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 index 8f177fd5ba5..7b04a787dda 100644 --- 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 @@ -1,7 +1,5 @@ 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 7fbb27903b66009aab8f0148448d21b0d35bd87d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Jul 2024 01:28:06 +0100 Subject: [PATCH 273/323] wasm-bindgen-test-runner: Updated feature tests to use explicit tests for assemblies. --- .../runtimes/chrome/executes_test_feature.rs | 2 +- .../runtimes/deno/executes_test_feature.rs | 2 +- .../runtimes/edge/executes_test_feature.rs | 2 +- .../runtimes/firefox/executes_test_feature.rs | 2 +- .../runtimes/node/executes_test_feature.rs | 2 +- .../runtimes/safari/executes_test_feature.rs | 2 +- .../browser/chrome/executes_test_feature.rs | 2 +- .../browser/default/executes_test_feature.rs | 2 +- .../test_mode/browser/edge/executes_test_feature.rs | 2 +- .../browser/firefox/executes_test_feature.rs | 2 +- .../browser/safari/executes_test_feature.rs | 2 +- .../chrome/executes_test_feature.rs | 2 +- .../default/executes_test_feature.rs | 2 +- .../dedicated_worker/edge/executes_test_feature.rs | 2 +- .../firefox/executes_test_feature.rs | 2 +- .../safari/executes_test_feature.rs | 2 +- .../test_mode/default/executes_test_feature.rs | 2 +- .../test_mode/deno/executes_test_feature.rs | 2 +- .../test_mode/node/executes_test_feature.rs | 2 +- .../service_worker/chrome/executes_test_feature.rs | 2 +- .../service_worker/default/executes_test_feature.rs | 2 +- .../service_worker/edge/executes_test_feature.rs | 2 +- .../service_worker/firefox/executes_test_feature.rs | 2 +- .../service_worker/safari/executes_test_feature.rs | 2 +- .../shared_worker/chrome/executes_test_feature.rs | 2 +- .../shared_worker/default/executes_test_feature.rs | 2 +- .../shared_worker/edge/executes_test_feature.rs | 2 +- .../shared_worker/firefox/executes_test_feature.rs | 2 +- .../shared_worker/safari/executes_test_feature.rs | 2 +- .../executes_failing_test_feature.rs | 13 +++++++++---- .../executes_ignored_test_feature.rs | 12 +++++++++--- .../executes_ignored_test_feature.rs | 12 +++++++++--- .../executes_test_feature.rs | 11 ++++++++--- .../assembly/given_there_is_an_assembly_with.rs | 4 ++-- 34 files changed, 66 insertions(+), 44 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs index fe25bca1255..8eb9c525a5f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs index 4d96f769d0d..8ec91b435a4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs index 79d22736227..aa9e607d29c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs index 685e2c2c493..fce82419351 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs index 1828a57af2a..acb18d2928c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs index 969894c9d02..5d7b34b9757 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs @@ -22,7 +22,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs index fe25bca1255..8eb9c525a5f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs index 692f4352afb..b42a40cdb5c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs index 79d22736227..aa9e607d29c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs index 685e2c2c493..fce82419351 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs index 969894c9d02..5d7b34b9757 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs @@ -22,7 +22,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs index 925147c8a37..d091f8e0a62 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs index 25bf2462654..3c1b5a5a733 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs index 9956b9bf8d0..1d813f5564f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs index 4a5b5112ee0..49ecedf8af9 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs index ea8486ae262..b9e7a0ccad4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs @@ -22,7 +22,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs index 315177eec4d..033d99e1205 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs index 4d96f769d0d..8ec91b435a4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs index 1828a57af2a..acb18d2928c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs index 77b383fdb10..8a387713b02 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs index 99c66bb1f40..6dd3faa3944 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs index 18bf091bfd4..e8ea0699db4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs index 8c83512f316..ed006067b7c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs index 75df12b2fee..cbe739453ce 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs @@ -22,7 +22,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs index fb7fa975c63..e8c9787e7bf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs index b168299254f..d371bddd60d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs index db84f0411ca..c37f37f58fc 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs index 0ddb6e871c2..7df03964f15 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs @@ -21,7 +21,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs index 3aa9229ffaa..29ccfa3cb56 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs @@ -22,7 +22,7 @@ fn pass() { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs index 1c9bbc4ba66..62e24072211 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::error_code::then_failure_should_have_been_returned; 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_for_test_mode_and_the_arguments; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_failing_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { @@ -17,7 +22,7 @@ feature! { } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); + then_the_standard_output_should_have("test assembly::fail ... FAIL"); } "Outputs the failed test assertion error" { @@ -25,7 +30,7 @@ feature! { } "Outputs the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); + then_the_standard_output_should_have("failures:\n\n assembly::fail"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs index 13c1def7603..5449862556d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,13 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_ignored_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { @@ -18,7 +24,7 @@ feature! { } "Outputs the ignored test successful execution summary" { - then_the_standard_output_should_have("test assembly_with_one_ignored_test::ignored ... ok"); + then_the_standard_output_should_have("test assembly::ignored ... ok"); } "Outputs the assembly test summary" { 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/executes_ignored_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/executes_ignored_test_feature.rs index 112a55b6b1a..b36a61dfc11 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_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/executes_ignored_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,13 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_ignored_with_reason_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore = "test"] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { @@ -18,7 +24,7 @@ feature! { } "Outputs the ignored test successful execution summary" { - then_the_standard_output_should_have("test assembly_with_one_ignored_with_reason_test::ignored ... ok"); + then_the_standard_output_should_have("test assembly::ignored ... ok"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs index 395f71db65c..48029905c0e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 1 test" { @@ -18,7 +23,7 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs no error" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs index 65f2767a2a2..21dcfb811ba 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs @@ -8,7 +8,7 @@ use std::sync::Mutex; lazy_static! { static ref ASSEMBLY_CACHE: Mutex> = Mutex::new(HashMap::new()); - static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_with_one_successful_test") + static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly") .file( "src/lib.rs", r#"#[cfg(test)] @@ -31,7 +31,7 @@ pub fn given_there_is_an_assembly_with(context: &mut Context, content: &str) { .entry(content.to_string()) .or_insert_with(|| { // If the assembly is not in the cache, compile it and insert into the cache - AssemblyBuilder::new("assembly_with_one_successful_test") + AssemblyBuilder::new("assembly") .file("src/lib.rs", &generate_content(content)) .build() }) From fe40708d0fe36eb1a6c5f085df0ce1aa1810180a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Jul 2024 01:49:54 +0100 Subject: [PATCH 274/323] wasm-bindgen-test-runner: Updated feature tests to use explicit tests for assemblies. --- .../lists_the_test_in_the_terse_format_feature.rs | 10 ++++++++-- .../lists_the_test_in_the_terse_format_feature.rs | 10 ++++++++-- .../lists_the_test_in_the_terse_format_feature.rs | 10 ++++++++-- .../lists_the_test_in_the_terse_format_feature.rs | 10 ++++++++-- .../skips_test_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_no_tests_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_test_feature.rs | 11 ++++++++--- .../skips_no_tests_feature.rs | 11 ++++++++--- 14 files changed, 112 insertions(+), 38 deletions(-) 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/lists_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/lists_the_test_in_the_terse_format_feature.rs index fda575ca823..7c108008cde 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,13 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_ignored_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { 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/lists_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/lists_the_test_in_the_terse_format_feature.rs index ab5d4632036..1258a65a3a1 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/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,13 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_ignored_with_reason_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore = "test"] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { 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_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/lists_the_test_in_the_terse_format_feature.rs index 867d8199727..2af6df8af0e 100644 --- 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_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,13 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_ignored_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { 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/lists_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/lists_the_test_in_the_terse_format_feature.rs index 27755e13357..cef6b9272ce 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/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,13 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_ignored_with_reason_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore = "test"] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { 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/skips_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/skips_test_feature.rs index 43c2b8e973a..617d4690afa 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index fdb4247a0a6..45823e653af 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=as"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 4eac50a472b..73dfb10f525 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pa"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index f4d85348be6..ecffde4bae9 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=ss"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_no_tests_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/skips_no_tests_feature.rs index 880aa0bbae7..6edece0140e 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/skips_no_tests_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/skips_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,11 +10,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pattern"); "Outputs the successful test information" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs its 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/skips_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/skips_test_feature.rs index 078b32d1a2e..e16d6464717 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 76425268e17..4bef2b62b39 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip as"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 93e0e138bc0..6107c4c9929 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pa"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index c884f70aec4..a1384c0f350 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip ss"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::pass"); } "Outputs its 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/skips_no_tests_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/skips_no_tests_feature.rs index f7ee3af7810..4d11d7e16b1 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,11 +10,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pattern"); "Outputs the successful test information" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs its running 1 test" { From 82982c0bd51d134fc7201d1d5323a513abff835f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 7 Jul 2024 02:07:29 +0100 Subject: [PATCH 275/323] wasm-bindgen-test-runner: Updated feature tests to use explicit tests for assemblies. --- .../executes_test_feature.rs | 9 +++++++-- .../executes_test_feature.rs | 9 +++++++-- .../executes_test_feature.rs | 9 +++++++-- .../executes_test_feature.rs | 9 +++++++-- .../executes_no_tests_feature.rs | 9 +++++++-- .../with_one_failing_test/executes_test_feature.rs | 13 +++++++++---- .../with_one_ignored_test/ignores_test_feature.rs | 13 ++++++++++--- .../ignores_test_feature.rs | 12 +++++++++--- .../executes_test_feature.rs | 11 ++++++++--- 9 files changed, 71 insertions(+), 23 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs index aa07af69940..49528bfa977 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass"); "Outputs its 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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs index 51cb20982ff..444b316fc7d 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "as"); "Outputs its 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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs index e3064868603..9c108b5e48f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pa"); "Outputs its 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/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs index 7bdc6c2e242..171fc083d24 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "ss"); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs index 1eb0ee00eba..fcb4234bdbf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "cool"); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs index 7949cf12e6c..b0412cbfdff 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_failing_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::error_code::then_failure_should_have_been_returned; 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_for_test_mode; @@ -9,7 +9,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_failing_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 test" { @@ -17,7 +22,7 @@ feature! { } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_failing_test::fail ... FAIL"); + then_the_standard_output_should_have("test assembly::fail ... FAIL"); } "Outputs the failed test assertion error" { @@ -25,7 +30,7 @@ feature! { } "Outputs the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_failing_test::fail"); + then_the_standard_output_should_have("failures:\n\n assembly::fail"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs index f821eca15bc..39fb1028353 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,14 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_ignored_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"# +); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 test" { @@ -18,7 +25,7 @@ feature! { } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_ignored_test::ignored ... ignored"); + then_the_standard_output_should_have("test assembly::ignored ... ignored"); } "Outputs no error" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs index 54854cf16e0..55281c2a8a6 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_with_reason_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,13 @@ use auroka_morpheus_macros_feature::feature; feature! { mode: TestMode - given_there_is_an_assembly_with_one_ignored_with_reason_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +#[ignore = "test"] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(mode); "Outputs its running 1 test" { @@ -18,7 +24,7 @@ feature! { } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_ignored_with_reason_test::ignored ... ignored, test"); + then_the_standard_output_should_have("test assembly::ignored ... ignored, test"); } "Outputs no error" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs index 46d82109c8f..fcb80b517ce 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,12 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_test(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 tests" { @@ -18,7 +23,7 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_test::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs no error" { From f69b819904a44374dda576db8aa313fbbe666717 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 01:57:16 +0100 Subject: [PATCH 276/323] wasm-bingen-test-runner: Improved Lock readability. --- .../src/bin/wasm-bindgen-test-runner/lock.rs | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 6715b163ba1..ec8fb3970db 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -30,10 +30,13 @@ impl Lock { fn try_aquire(&mut self) -> Result { if self.lock.exists() { - let pid = Self::read_pid(&self.lock); - - if pid.is_ok() && is_process_running(pid.unwrap()) { - return Ok(false); + if let Ok(pid) = Self::read_pid(&self.lock) { + if pid == id() { + return Ok(true); + } + if is_process_running(pid) { + return Ok(false); + } } std::fs::remove_file(&self.lock).ok(); @@ -41,12 +44,13 @@ impl Lock { hard_link(&self.file, &self.lock).ok(); - let pid = Self::read_pid(&self.lock); - if pid.is_err() || pid.unwrap() != id() { - return Ok(false); + if let Ok(pid) = Self::read_pid(&self.lock) { + if pid == id() { + return Ok(true); + } } - Ok(true) + Ok(false) } fn create_file(name: &str) -> Result { @@ -84,9 +88,10 @@ impl Drop for Lock { std::fs::remove_file(&self.file).ok(); } if self.lock.exists() { - let pid = Self::read_pid(&self.lock); - if pid.is_ok() && pid.unwrap() == id() { - std::fs::remove_file(&self.lock).ok(); + if let Ok(pid) = Self::read_pid(&self.lock) { + if pid == id() { + std::fs::remove_file(&self.lock).ok(); + } } } } From 6faf3a039220319c66fbaeea7390c4ee8a04b8a4 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 01:58:36 +0100 Subject: [PATCH 277/323] wasm-bingen-test-runner: Improved headless to handle situations where the safaridriver refuses to start, that can be useful for other drivers. --- .../bin/wasm-bindgen-test-runner/headless.rs | 48 +++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) 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 4f013a97943..b85bd8b387a 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -76,7 +76,7 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error let mut cmd = Command::new(path); cmd.args(args).arg(format!("--port={}", driver_addr.port())); - let child = BackgroundChild::spawn(path, &mut cmd, shell)?; + let mut child = BackgroundChild::spawn(path, cmd, shell)?; // Wait for the driver to come online and bind its port before we try to // connect to it. @@ -88,8 +88,10 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error bound = true; break; } + child.check()?; thread::sleep(Duration::from_millis(100)); } + if !bound { bail!("driver failed to bind port during startup") } @@ -676,17 +678,19 @@ fn tab(s: &str) -> String { struct BackgroundChild<'a> { child: Child, + cmd: Command, stdout: Option>>>, stderr: Option>>>, shell: &'a Shell, + path: &'a Path, print_stdio_on_drop: bool, lock: Option, } impl<'a> BackgroundChild<'a> { fn spawn( - path: &Path, - cmd: &mut Command, + path: &'a Path, + mut cmd: Command, shell: &'a Shell, ) -> Result, Error> { let lock = Self::lock(path)?; @@ -694,24 +698,50 @@ impl<'a> BackgroundChild<'a> { cmd.stdout(Stdio::piped()) .stderr(Stdio::piped()) .stdin(Stdio::null()); + log::debug!("executing {:?}", cmd); + let mut child = cmd .spawn() .context(format!("failed to spawn {:?} binary", path))?; + let mut stdout = child.stdout.take().unwrap(); let mut stderr = child.stderr.take().unwrap(); + let stdout = Some(thread::spawn(move || read(&mut stdout))); let stderr = Some(thread::spawn(move || read(&mut stderr))); + Ok(BackgroundChild { child, + cmd, stdout, stderr, shell, + path, print_stdio_on_drop: true, lock, }) } + fn check(&mut self) -> Result<(), Error> { + if is_process_defunct(self.child.id()) { + let child = self.cmd.spawn(); + + let mut child = child.context(format!("failed to spawn {:?} binary", self.path))?; + let mut stdout = child.stdout.take().unwrap(); + let mut stderr = child.stderr.take().unwrap(); + + let stdout = Some(thread::spawn(move || read(&mut stdout))); + let stderr = Some(thread::spawn(move || read(&mut stderr))); + + self.child = child; + self.stdout = stdout; + self.stderr = stderr; + } + + Ok(()) + } + fn lock(path: &Path) -> Result, Error> { if path.to_string_lossy().contains("safaridriver") { Ok(Some(Lock::try_new("safaridriver")?)) @@ -788,3 +818,15 @@ fn terminate_process(pid: u32) { thread::sleep(Duration::from_millis(100)); } } + +pub fn is_process_defunct(pid: u32) -> bool { + let output = Command::new("ps") + .arg("-o") + .arg("stat=") + .arg("-p") + .arg(pid.to_string()) + .output() + .expect("Failed to execute ps command"); + + output.stdout.is_empty() || std::str::from_utf8(&output.stdout).unwrap().contains("Z") +} From abb6a2b999577b616e57e6c4a10502bfc2d72a3c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 02:00:11 +0100 Subject: [PATCH 278/323] wasm-bingen-test-runner: Fixed a regression in the tests assembly building. --- .../__steps__/assembly/assembly_builder.rs | 45 +++++++++++++++++-- .../given_there_is_an_assembly_with.rs | 15 ------- 2 files changed, 42 insertions(+), 18 deletions(-) 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 f5b6dedc158..12001145bfc 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs @@ -1,4 +1,5 @@ use predicates::str; +use rand::Rng; use regex::Regex; use std::env; use std::fs; @@ -6,6 +7,13 @@ use std::path::PathBuf; use std::process::Command; use std::process::Output; +fn build_dir() -> PathBuf { + target_dir() + .join("wasm32-unknown-unknown") + .join("debug") + .join("deps") +} + fn target_dir() -> PathBuf { let mut dir = env::current_exe().unwrap(); dir.pop(); // current exe @@ -27,11 +35,15 @@ pub struct AssemblyBuilder { impl AssemblyBuilder { pub fn new(name: &'static str) -> AssemblyBuilder { + let mut rng = rand::thread_rng(); + let root = target_dir() .join("wasm-bindgen-test-runner-tests") - .join(name); + .join(format!("{}-{}", name, rng.gen_range(1000..9999))); + drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); + AssemblyBuilder { root, name: name.to_string(), @@ -75,6 +87,8 @@ wasm-bindgen = {{ path = '{}' }} ); } + remove_files_prefix(&build_dir(), &format!("{}-", self.name)); + let output = Command::new("cargo") .current_dir(&self.root) .arg("test") @@ -85,9 +99,15 @@ wasm-bindgen = {{ path = '{}' }} .output() .expect("Failed to build test assembly"); - let assembly = extract_assembly_from_output(output); + let assembly = PathBuf::from(extract_assembly_from_output(output)); + + let destination = self.root.join(format!("{}.wasm", self.name)); - self.root.join(assembly) + fs::copy(&assembly, &destination).unwrap(); + + fs::remove_file(&assembly).unwrap(); + + destination } } @@ -106,3 +126,22 @@ fn extract_assembly_from_output(output: Output) -> String { captures.get(1).unwrap().as_str().to_string() } + +fn remove_files_prefix(dir: &PathBuf, prefix: &str) { + if let Ok(entries) = fs::read_dir(dir) { + for entry in entries { + let entry = entry.unwrap(); + let path = entry.path(); + if path.is_file() + && path + .file_name() + .unwrap() + .to_str() + .unwrap() + .starts_with(prefix) + { + fs::remove_file(&path).unwrap(); + } + } + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs index 21dcfb811ba..a45645a34ed 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs @@ -8,20 +8,6 @@ use std::sync::Mutex; lazy_static! { static ref ASSEMBLY_CACHE: Mutex> = Mutex::new(HashMap::new()); - static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly") - .file( - "src/lib.rs", - r#"#[cfg(test)] -use wasm_bindgen_test::*; - -#[cfg(test)] -#[wasm_bindgen_test] -fn pass() { - assert_eq!(1, 1); -} - "#, - ) - .build(); } pub fn given_there_is_an_assembly_with(context: &mut Context, content: &str) { @@ -30,7 +16,6 @@ pub fn given_there_is_an_assembly_with(context: &mut Context, content: &str) { let assembly_path = cache .entry(content.to_string()) .or_insert_with(|| { - // If the assembly is not in the cache, compile it and insert into the cache AssemblyBuilder::new("assembly") .file("src/lib.rs", &generate_content(content)) .build() From f96f10cf584d981743d8c3c51b84f329f11aef6e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 22:49:51 +0100 Subject: [PATCH 279/323] wasm-bindgen-test-runner: Improved terminate_process used to terminate Safari --automation. --- .../bin/wasm-bindgen-test-runner/headless.rs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 b85bd8b387a..14099317158 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -81,7 +81,7 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error // Wait for the driver to come online and bind its port before we try to // connect to it. let start = Instant::now(); - let max = Duration::new(5, 0); + let max = Duration::new(10, 0); //safaridriver sometimes refuses to start and has to be restarted let mut bound = false; while start.elapsed() < max { if TcpStream::connect(driver_addr).is_ok() { @@ -725,9 +725,11 @@ impl<'a> BackgroundChild<'a> { fn check(&mut self) -> Result<(), Error> { if is_process_defunct(self.child.id()) { - let child = self.cmd.spawn(); + let mut child = self + .cmd + .spawn() + .context(format!("failed to spawn {:?} binary", self.path))?; - let mut child = child.context(format!("failed to spawn {:?} binary", self.path))?; let mut stdout = child.stdout.take().unwrap(); let mut stderr = child.stderr.take().unwrap(); @@ -803,7 +805,7 @@ fn terminate_safari_automation() { fn terminate_process(pid: u32) { let output = Command::new("kill") - .arg("-9") // SIGTERM + .arg("-15") // SIGTERM .arg(pid.to_string()) .output() .map_err(|e| format!("Failed to execute kill command: {}", e)) @@ -814,7 +816,16 @@ fn terminate_process(pid: u32) { println!("Failed to terminate process: {}", error); } + thread::sleep(Duration::from_millis(100)); + while is_process_running(pid) { + Command::new("kill") + .arg("-9") // SIGKILL + .arg(pid.to_string()) + .output() + .map_err(|e| format!("Failed to execute kill command: {}", e)) + .unwrap(); + thread::sleep(Duration::from_millis(100)); } } From c663ed39dad0da9e7278151598dedfd242e87b5c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 23:10:40 +0100 Subject: [PATCH 280/323] wasm-bindgen-test-runner: Improved Lock: Refactored read_pid to read_lock_pid. --- crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index ec8fb3970db..8493fdae380 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -30,7 +30,7 @@ impl Lock { fn try_aquire(&mut self) -> Result { if self.lock.exists() { - if let Ok(pid) = Self::read_pid(&self.lock) { + if let Ok(pid) = self.read_lock_pid() { if pid == id() { return Ok(true); } @@ -44,7 +44,7 @@ impl Lock { hard_link(&self.file, &self.lock).ok(); - if let Ok(pid) = Self::read_pid(&self.lock) { + if let Ok(pid) = self.read_lock_pid() { if pid == id() { return Ok(true); } @@ -74,8 +74,8 @@ impl Lock { Ok(env::temp_dir().join(format!("{}.lock", name))) } - fn read_pid(path: &PathBuf) -> Result { - let mut file = File::open(path)?; + fn read_lock_pid(&self) -> Result { + let mut file = File::open(&self.lock)?; let mut pid = String::new(); file.read_to_string(&mut pid)?; Ok(pid.parse()?) @@ -88,7 +88,7 @@ impl Drop for Lock { std::fs::remove_file(&self.file).ok(); } if self.lock.exists() { - if let Ok(pid) = Self::read_pid(&self.lock) { + if let Ok(pid) = self.read_lock_pid() { if pid == id() { std::fs::remove_file(&self.lock).ok(); } From 854302aa063992530df833b929d9e724e329ed7d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 23:18:28 +0100 Subject: [PATCH 281/323] wasm-bindgen-test-runner: Improved Lock: Added methods remove_file and remove_lock. --- .../cli/src/bin/wasm-bindgen-test-runner/lock.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 8493fdae380..b2e02bed27a 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -39,7 +39,7 @@ impl Lock { } } - std::fs::remove_file(&self.lock).ok(); + self.remove_lock(); } hard_link(&self.file, &self.lock).ok(); @@ -80,17 +80,25 @@ impl Lock { file.read_to_string(&mut pid)?; Ok(pid.parse()?) } + + fn remove_file(&self) { + std::fs::remove_file(&self.file).ok(); + } + + fn remove_lock(&self) { + std::fs::remove_file(&self.lock).ok(); + } } impl Drop for Lock { fn drop(&mut self) { if self.file.exists() { - std::fs::remove_file(&self.file).ok(); + self.remove_file(); } if self.lock.exists() { if let Ok(pid) = self.read_lock_pid() { if pid == id() { - std::fs::remove_file(&self.lock).ok(); + self.remove_lock(); } } } From 68d07f0cfbf3e16cf3323c0d0077b44a532f0faf Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 23:19:45 +0100 Subject: [PATCH 282/323] wasm-bindgen-test-runner: Improved Lock: Moved try_aquire. --- .../src/bin/wasm-bindgen-test-runner/lock.rs | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index b2e02bed27a..45ba85a60a6 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -28,31 +28,6 @@ impl Lock { Ok(()) } - fn try_aquire(&mut self) -> Result { - if self.lock.exists() { - if let Ok(pid) = self.read_lock_pid() { - if pid == id() { - return Ok(true); - } - if is_process_running(pid) { - return Ok(false); - } - } - - self.remove_lock(); - } - - hard_link(&self.file, &self.lock).ok(); - - if let Ok(pid) = self.read_lock_pid() { - if pid == id() { - return Ok(true); - } - } - - Ok(false) - } - fn create_file(name: &str) -> Result { let id = id(); @@ -88,6 +63,31 @@ impl Lock { fn remove_lock(&self) { std::fs::remove_file(&self.lock).ok(); } + + fn try_aquire(&mut self) -> Result { + if self.lock.exists() { + if let Ok(pid) = self.read_lock_pid() { + if pid == id() { + return Ok(true); + } + if is_process_running(pid) { + return Ok(false); + } + } + + self.remove_lock(); + } + + hard_link(&self.file, &self.lock).ok(); + + if let Ok(pid) = self.read_lock_pid() { + if pid == id() { + return Ok(true); + } + } + + Ok(false) + } } impl Drop for Lock { From 46031d896e62b17e1dd99d5192fe377f3b167d20 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 8 Jul 2024 23:42:10 +0100 Subject: [PATCH 283/323] wasm-bindgen-test-runner: Improved Lock: Added method has_lock. --- .../src/bin/wasm-bindgen-test-runner/lock.rs | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 45ba85a60a6..95bed7b262b 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -49,6 +49,15 @@ impl Lock { Ok(env::temp_dir().join(format!("{}.lock", name))) } + fn has_lock(&self) -> bool { + if let Ok(pid) = self.read_lock_pid() { + if pid == id() { + return true; + } + } + false + } + fn read_lock_pid(&self) -> Result { let mut file = File::open(&self.lock)?; let mut pid = String::new(); @@ -80,13 +89,7 @@ impl Lock { hard_link(&self.file, &self.lock).ok(); - if let Ok(pid) = self.read_lock_pid() { - if pid == id() { - return Ok(true); - } - } - - Ok(false) + Ok(self.has_lock()) } } @@ -95,12 +98,8 @@ impl Drop for Lock { if self.file.exists() { self.remove_file(); } - if self.lock.exists() { - if let Ok(pid) = self.read_lock_pid() { - if pid == id() { - self.remove_lock(); - } - } + if self.lock.exists() && self.has_lock() { + self.remove_lock(); } } } From 4d93a2ee8f32db828862dee1e553db3ff774bf6c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 9 Jul 2024 00:38:10 +0100 Subject: [PATCH 284/323] wasm-bindgen-test-runner: Improved Lock: Added an anti-starvation mechanism. --- .../src/bin/wasm-bindgen-test-runner/lock.rs | 56 ++++++++++++++++++- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 95bed7b262b..850d26e4014 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -1,21 +1,29 @@ use anyhow::Result; -use std::fs::{hard_link, File, OpenOptions}; +use std::fs::{hard_link, metadata, read_dir, DirEntry, File, OpenOptions}; +use std::io::Error; use std::io::{Read, Write}; use std::path::PathBuf; use std::process::{id, Command}; use std::time::Duration; +use std::time::SystemTime; use std::{env, thread}; pub struct Lock { file: PathBuf, lock: PathBuf, + name: String, + timestamp: SystemTime, } impl Lock { pub fn try_new(name: &str) -> Result { + let file = Self::create_file(name)?; + let timestamp = metadata(&file).unwrap().modified().unwrap(); let mut lock = Self { - file: Self::create_file(name)?, + file, lock: Self::create_lock(name)?, + name: name.to_string(), + timestamp, }; lock.aquire()?; Ok(lock) @@ -58,6 +66,46 @@ impl Lock { false } + fn is_oldest_waiting(&self) -> bool { + let lock_name = format!("{}.lock", &self.name); + let file_prefix = format!("{}.", &self.name); + + for entry in read_dir(env::temp_dir()).unwrap() { + if let Some((path, name)) = Self::is_candidate(entry, &lock_name, &file_prefix) { + if self.is_candidate_older(&path) && Self::is_candidate_running(&name) { + return false; + } + } + } + + true + } + + fn is_candidate( + entry: Result, + lock_name: &str, + file_prefix: &str, + ) -> Option<(PathBuf, String)> { + if let Ok(entry) = entry { + let path = entry.path(); + if let Some(name) = path.clone().file_name().and_then(|n| n.to_str()) { + if name.starts_with(file_prefix) && name != lock_name { + return Some((path, name.to_string())); + } + } + } + None + } + + fn is_candidate_older(&self, candidate: &PathBuf) -> bool { + metadata(candidate).unwrap().modified().unwrap() < self.timestamp + } + + fn is_candidate_running(name: &str) -> bool { + let pid = name.split('.').last().unwrap().parse().unwrap(); + is_process_running(pid) + } + fn read_lock_pid(&self) -> Result { let mut file = File::open(&self.lock)?; let mut pid = String::new(); @@ -87,6 +135,10 @@ impl Lock { self.remove_lock(); } + if !self.is_oldest_waiting() { + return Ok(false); + } + hard_link(&self.file, &self.lock).ok(); Ok(self.has_lock()) From 5afa676691f9f306a0f861162c710475bb92707c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 9 Jul 2024 13:46:39 +0100 Subject: [PATCH 285/323] wasm-bindgen-test-runnner: Improved Lock: Added a pid field. --- .../src/bin/wasm-bindgen-test-runner/lock.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 850d26e4014..71d70b6afe4 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -12,17 +12,20 @@ pub struct Lock { file: PathBuf, lock: PathBuf, name: String, + pid: u32, timestamp: SystemTime, } impl Lock { pub fn try_new(name: &str) -> Result { - let file = Self::create_file(name)?; + let pid = id(); + let file = Self::create_file(name, pid)?; let timestamp = metadata(&file).unwrap().modified().unwrap(); let mut lock = Self { file, lock: Self::create_lock(name)?, name: name.to_string(), + pid, timestamp, }; lock.aquire()?; @@ -36,10 +39,8 @@ impl Lock { Ok(()) } - fn create_file(name: &str) -> Result { - let id = id(); - - let file = env::temp_dir().join(format!("{}.{}", name, id)); + fn create_file(name: &str, pid: u32) -> Result { + let file = env::temp_dir().join(format!("{}.{}", name, pid)); let mut file_handle = OpenOptions::new() .write(true) @@ -47,7 +48,7 @@ impl Lock { .truncate(true) .open(&file)?; - file_handle.write_all(id.to_string().as_bytes())?; + file_handle.write_all(pid.to_string().as_bytes())?; file_handle.sync_all()?; Ok(file) @@ -59,7 +60,7 @@ impl Lock { fn has_lock(&self) -> bool { if let Ok(pid) = self.read_lock_pid() { - if pid == id() { + if pid == self.pid { return true; } } @@ -124,7 +125,7 @@ impl Lock { fn try_aquire(&mut self) -> Result { if self.lock.exists() { if let Ok(pid) = self.read_lock_pid() { - if pid == id() { + if pid == self.pid { return Ok(true); } if is_process_running(pid) { From c6e88c6255a7422f777cb35e8a76cdc6a9b02160 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Tue, 9 Jul 2024 13:47:14 +0100 Subject: [PATCH 286/323] wasm-bindgen-test-runnner: Fixed a minor bug in the browser filtering. --- 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 14099317158..6fe841e9182 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs @@ -328,7 +328,7 @@ an issue against rustwasm/wasm-bindgen! if let Ok(browser) = env::var(name) { match browser.to_lowercase().as_str() { "firefox" | "safari" | "chrome" | "edge" => Some(browser), - "yes" => None, + "true" => None, other => { println!("unknown browser: {} referenced in {}", other, name); None From 5a4309d70e0a701cc123d40d60e4169af803e075 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 19:24:45 +0100 Subject: [PATCH 287/323] wasm-bindgen-test-runner: Updated feature test step to be more flexible regarding the provided content. --- .../given_there_is_an_assembly_with.rs | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs index a45645a34ed..e2978f6287c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs @@ -26,13 +26,20 @@ pub fn given_there_is_an_assembly_with(context: &mut Context, content: &str) { } fn generate_content(content: &str) -> String { - format!( - r#"#[cfg(test)] -use wasm_bindgen_test::*; - + let mut final_content = String::from( + r#" #[cfg(test)] -{} +use wasm_bindgen_test::*; "#, - content - ) + ); + + for line in content.lines() { + if line.starts_with("#[wasm_bindgen_test]") || line.starts_with("mod") { + final_content.push_str("#[cfg(test)]\n"); + } + final_content.push_str(line); + final_content.push_str("\n"); + } + + final_content } From 23abb3e8b9d05ecb8966b99b107b4ab477689f00 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 19:44:53 +0100 Subject: [PATCH 288/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...ts_the_test_in_the_terse_format_feature.rs | 13 +++++++-- .../skips_test_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_no_tests_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_test_feature.rs | 15 ++++++++--- .../skips_no_tests_feature.rs | 15 ++++++++--- .../executes_test_feature.rs | 15 ++++++++--- ...uccessful_and_one_failing_level_1_tests.rs | 5 ++-- ...sembly_with_one_successful_level_1_test.rs | 27 ------------------- .../assembly/with_one_successful_test/mod.rs | 2 -- 15 files changed, 145 insertions(+), 67 deletions(-) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/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/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs index 12b4a05874e..26e537592b5 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,16 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { 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/skips_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/skips_test_feature.rs index b98401a26f9..524bfd79952 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=level_1::pass"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 601f521f9b7..d97ca841e92 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=1::"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 84776d2f7f2..6bb57a9b544 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=level_1"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 9d55a2b8f9e..88f5809810f 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=ss"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_no_tests_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/skips_no_tests_feature.rs index ab78f2a6cd9..cb9a3b77d72 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/skips_no_tests_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/skips_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,11 +10,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pattern"); "Outputs the successful test information" { - then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + then_the_standard_output_should_have("test assembly::level_1::pass ... ok"); } "Outputs its 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/skips_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/skips_test_feature.rs index 72eef312195..6258006cf83 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip level_1::pass"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 76d2ea49f4d..7044b24e304 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip 1::"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index 7f23f78754c..0ba11fe1ac9 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip level_1"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_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/skips_test_feature.rs index f457fb92b8b..9d6cd25a770 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/skips_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/skips_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,11 +11,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip ss"); "Outputs no information about the skipped test" { - then_the_standard_output_should_not_have("test assembly_with_one_successful_test::pass"); + then_the_standard_output_should_not_have("test assembly::level_1::pass"); } "Outputs its 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/skips_no_tests_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/skips_no_tests_feature.rs index dda69489312..91d2ad89a43 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_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/skips_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,11 +10,20 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pattern"); "Outputs the successful test information" { - then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + then_the_standard_output_should_have("test assembly::level_1::pass ... ok"); } "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs index 39d0a4c1f69..c6907199d5e 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,16 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_1_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 tests" { @@ -18,7 +27,7 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_level_1_test::level_1::pass ... ok"); + then_the_standard_output_should_have("test assembly::level_1::pass ... ok"); } "Outputs no error" { diff --git a/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 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 index 704af5a9845..48e2ce8a764 100644 --- a/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 +++ 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 @@ -9,17 +9,16 @@ lazy_static! { AssemblyBuilder::new("assembly_with_one_successful_and_one_failing_level_1_tests") .file( "src/lib.rs", - r#"#[cfg(test)] + 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); diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/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 deleted file mode 100644 index a5284f95613..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_1_test.rs +++ /dev/null @@ -1,27 +0,0 @@ -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_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/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs index 7b04a787dda..a277228022e 100644 --- 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 @@ -1,5 +1,3 @@ -mod given_there_is_an_assembly_with_one_successful_level_1_test; mod given_there_is_an_assembly_with_one_successful_level_2_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 b1f9d109e8d8dd81ae611edf23cc37ce1b89fc35 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 19:52:17 +0100 Subject: [PATCH 289/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...ts_the_test_in_the_terse_format_feature.rs | 14 +++++++-- .../executes_test_feature.rs | 16 ++++++++-- .../__steps__/assembly/mod.rs | 2 -- ...sembly_with_one_successful_level_2_test.rs | 29 ------------------- .../assembly/with_one_successful_test/mod.rs | 3 -- 5 files changed, 25 insertions(+), 39 deletions(-) delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_2_test.rs delete 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/default/level_2/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs index 4fdfd8bfdb5..0aea3af3b8f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,17 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_level_2_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + } +}"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs index 426a51a1986..b6e0508416c 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_level_2_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,17 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_level_2_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + } +}"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 1 tests" { @@ -18,7 +28,7 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_level_2_test::level_1::level_2::pass ... ok"); + then_the_standard_output_should_have("test assembly::level_1::level_2::pass ... ok"); } "Outputs no error" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 8cb2649aac3..a3d86599e50 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -4,7 +4,6 @@ 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; mod with_two_successful_tests; pub use assembly_builder::*; @@ -13,5 +12,4 @@ 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::*; pub use with_two_successful_tests::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/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 deleted file mode 100644 index 03ad4f702c9..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/given_there_is_an_assembly_with_one_successful_level_2_test.rs +++ /dev/null @@ -1,29 +0,0 @@ -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_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/with_one_successful_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs deleted file mode 100644 index a277228022e..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_test/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod given_there_is_an_assembly_with_one_successful_level_2_test; - -pub use given_there_is_an_assembly_with_one_successful_level_2_test::*; From f9b6575d23430d7e4e5bcf53df933b2d87fc4331 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 19:56:35 +0100 Subject: [PATCH 290/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...ts_the_test_in_the_terse_format_feature.rs | 15 ++++++++-- ..._assembly_with_one_ignored_level_1_test.rs | 29 ------------------- .../assembly/with_one_ignored_test/mod.rs | 2 -- 3 files changed, 13 insertions(+), 33 deletions(-) delete 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 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/lists_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/lists_the_test_in_the_terse_format_feature.rs index bc8691d4922..d40d9532790 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_level_1_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,18 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_ignored_level_1_test(); + given_there_is_an_assembly_with(r#"#[cfg(test)] +mod level_1 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { 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 deleted file mode 100644 index de03a351601..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_1_test.rs +++ /dev/null @@ -1,29 +0,0 @@ -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/with_one_ignored_test/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs index 4d5ba80e331..05a4e86640d 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,3 @@ -mod given_there_is_an_assembly_with_one_ignored_level_1_test; mod given_there_is_an_assembly_with_one_ignored_level_2_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::*; From d17f54d48a28979907ba689ae75ccd93f89331bc Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 19:57:34 +0100 Subject: [PATCH 291/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- .../lists_the_test_in_the_terse_format_feature.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/lists_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/lists_the_test_in_the_terse_format_feature.rs index d40d9532790..0266ae1b942 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -6,7 +6,7 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with(r#"#[cfg(test)] + given_there_is_an_assembly_with(r#" mod level_1 { use wasm_bindgen_test::*; From aa2b6addda50973f78c0d62840d6c121721ec8cb Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:01:33 +0100 Subject: [PATCH 292/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...ts_the_test_in_the_terse_format_feature.rs | 17 ++++++++-- .../__steps__/assembly/mod.rs | 2 -- ..._assembly_with_one_ignored_level_2_test.rs | 31 ------------------- .../assembly/with_one_ignored_test/mod.rs | 3 -- 4 files changed, 15 insertions(+), 38 deletions(-) delete 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 delete 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_2/with_one_ignored_test/lists_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/lists_the_test_in_the_terse_format_feature.rs index 82669406272..ba46301d576 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/lists_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/lists_the_test_in_the_terse_format_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_ignored_level_2_test; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,20 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_ignored_level_2_test(); + given_there_is_an_assembly_with(r#" +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[cfg(test)] + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index a3d86599e50..118f71a24d3 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,7 +1,6 @@ mod assembly_builder; mod given_there_is_an_assembly_with; 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_two_successful_tests; @@ -9,7 +8,6 @@ mod with_two_successful_tests; pub use assembly_builder::*; pub use given_there_is_an_assembly_with::*; 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_two_successful_tests::*; 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 deleted file mode 100644 index 1ea33e3ccff..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/given_there_is_an_assembly_with_one_ignored_level_2_test.rs +++ /dev/null @@ -1,31 +0,0 @@ -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 deleted file mode 100644 index 05a4e86640d..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_ignored_test/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod given_there_is_an_assembly_with_one_ignored_level_2_test; - -pub use given_there_is_an_assembly_with_one_ignored_level_2_test::*; From eb0c37365e49843df44f824091fcfe5becfcd8ab Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:14:16 +0100 Subject: [PATCH 293/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- .../skips_tests_feature.rs | 16 ++++++++++++++-- .../skips_tests_feature.rs | 16 ++++++++++++++-- .../skips_tests_feature.rs | 16 ++++++++++++++-- .../skips_tests_feature.rs | 16 ++++++++++++++-- .../skips_tests_feature.rs | 16 ++++++++++++++-- .../skips_tests_feature.rs | 16 ++++++++++++++-- .../executes_no_tests_feature.rs | 16 ++++++++++++++-- .../executes_only_one_test_feature.rs | 16 ++++++++++++++-- .../executes_only_one_test_feature.rs | 16 ++++++++++++++-- .../executes_no_tests_feature.rs | 16 ++++++++++++++-- .../executes_tests_feature.rs | 16 ++++++++++++++-- ...e_is_an_assembly_with_two_successful_tests.rs | 2 +- .../assembly/with_two_successful_tests/mod.rs | 2 -- 13 files changed, 155 insertions(+), 25 deletions(-) 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/skips_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/skips_tests_feature.rs index 5e5fadf796d..a8302000be9 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index cee18d51959..9f84875a1ad 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass_1 --skip=pass_2"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index 7cfd547cbc1..734aa0f1eae 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=fail --skip=pass_1 --skip=pass_2"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index 3cb4e4bfa9c..2c76773485e 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index e0eb45d4d90..955602305b9 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass_1 --skip pass_2"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index a0c36f24adc..766268dda64 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip fail --skip pass_1 --skip pass_2"); "Outputs no information about the skipped test 1" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs index 42775d5e988..cd5d2416549 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass --nocapture --exact"); "Outputs its running 0 tests" { 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/executes_only_one_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/executes_only_one_test_feature.rs index 4ec70d2354b..847190e13a7 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/executes_only_one_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/executes_only_one_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass_1 --nocapture --exact"); "Outputs its 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/executes_only_one_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/executes_only_one_test_feature.rs index 4c22896b0a1..c1c1265e5c0 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/executes_only_one_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/executes_only_one_test_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass_2 --nocapture --exact"); "Outputs its running 1 test" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs index ccdb24aeddd..f9218d62190 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "boo --nocapture --exact"); "Outputs its running 0 tests" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs index c5446847c3a..b900d9ea82f 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,19 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_tests(); + given_there_is_an_assembly_with(r#" +#[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); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "pass"); "Outputs its running 2 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 index 1345304be28..6d725031ad8 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 @@ -24,7 +24,7 @@ fn pass_2() { console_log!("pass_2 standard output"); assert_eq!(1, 1); } - "#, +"#, ) .build(); } 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 ec713148ddc..304351dfbd4 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,5 +1,3 @@ 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 3465ea78a29b022304e96d746ac271de7583700c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:20:46 +0100 Subject: [PATCH 294/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- .../skips_tests_feature.rs | 20 +++++++++-- .../skips_tests_feature.rs | 20 +++++++++-- .../skips_tests_feature.rs | 20 +++++++++-- .../skips_tests_feature.rs | 20 +++++++++-- .../skips_tests_feature.rs | 20 +++++++++-- .../skips_tests_feature.rs | 20 +++++++++-- .../__steps__/assembly/mod.rs | 2 -- ...embly_with_two_successful_level_1_tests.rs | 35 ------------------- ...s_an_assembly_with_two_successful_tests.rs | 34 ------------------ .../assembly/with_two_successful_tests/mod.rs | 3 -- 10 files changed, 108 insertions(+), 86 deletions(-) delete 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 delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs delete 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_eq_pattern/count_1/level_1/with_two_partial_match_successful_tests/skips_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/skips_tests_feature.rs index 4ce547ec8ac..85b3fac3ad2 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,23 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[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); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index 5e8115c3b1c..41154a138bb 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,23 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[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); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip=pass_1 --skip=level_1"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index 3bc116b1deb..ed1c6e34f5f 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,23 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[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); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip fail --skip pass_1 --skip level_1"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index 872023c8c06..d1391847a98 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,23 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[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); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index 7406b0db117..12e6efd354d 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,23 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[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); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip pass_1 --skip level_1"); "Outputs no information about the skipped test 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/skips_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/skips_tests_feature.rs index bda4ae7bc08..52f526c3e53 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/skips_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/skips_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_two_successful_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::standard_output::then_the_standard_output_should_not_have; @@ -11,7 +11,23 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_two_successful_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[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); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--skip fail --skip pass_1 --skip pass_2"); "Outputs no information about the skipped test 1" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 118f71a24d3..50f39584ca4 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -3,11 +3,9 @@ mod given_there_is_an_assembly_with; 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_two_successful_tests; pub use assembly_builder::*; pub use given_there_is_an_assembly_with::*; 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_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_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 deleted file mode 100644 index 8cffd90fe1f..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_level_1_tests.rs +++ /dev/null @@ -1,35 +0,0 @@ -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() { - 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); - } -} -"#, - ) - .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/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 deleted file mode 100644 index 6d725031ad8..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/given_there_is_an_assembly_with_two_successful_tests.rs +++ /dev/null @@ -1,34 +0,0 @@ -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() { - 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); -} -"#, - ) - .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 deleted file mode 100644 index 304351dfbd4..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_two_successful_tests/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod given_there_is_an_assembly_with_two_successful_level_1_tests; - -pub use given_there_is_an_assembly_with_two_successful_level_1_tests::*; From 971b7eafd0b49eba3951110a3577bca4c6e5e099 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:30:50 +0100 Subject: [PATCH 295/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...es_successful_and_ignored_tests_feature.rs | 19 ++++++++--- ...ts_the_test_in_the_terse_format_feature.rs | 15 ++++++-- ...s_the_tests_in_the_terse_format_feature.rs | 15 ++++++-- ...es_one_test_and_ignores_another_feature.rs | 19 ++++++++--- ...th_one_successful_and_one_ignored_tests.rs | 34 ------------------- .../mod.rs | 2 -- 6 files changed, 56 insertions(+), 48 deletions(-) delete mode 100644 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 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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs index bb675007b85..450448fa5a6 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/executes_successful_and_ignored_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/executes_successful_and_ignored_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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_for_test_mode_and_the_arguments; @@ -9,7 +9,18 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 2 tests" { @@ -17,11 +28,11 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::ignored ... ok"); + then_the_standard_output_should_have("test assembly::ignored ... ok"); } "Outputs the assembly test summary" { 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/lists_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_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs index a16fb660209..0830e99311b 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/lists_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_successful_and_one_ignored_tests/lists_the_test_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_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,18 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { 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/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_successful_and_one_ignored_tests/lists_the_tests_in_the_terse_format_feature.rs index de04d0018d2..db171dca402 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/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_successful_and_one_ignored_tests/lists_the_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_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,18 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs index 81fef4c07a8..17b8b8c6f99 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_ignored_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_error::then_the_standard_error_should_be_empty; use crate::__steps__::standard_output::then_the_standard_output_should_have; use crate::__steps__::success::then_success_should_have_been_returned; @@ -10,7 +10,18 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_and_one_ignored_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +#[ignore] +fn ignored() { + assert_eq!(1, 1); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 2 tests" { @@ -18,11 +29,11 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the ignored test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_ignored_tests::ignored ... ignored"); + then_the_standard_output_should_have("test assembly::ignored ... ignored"); } "Outputs no error" { 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 deleted file mode 100644 index 32c6d56ec02..00000000000 --- 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 +++ /dev/null @@ -1,34 +0,0 @@ -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_successful_and_one_ignored_tests") - .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, 1); -} - "#, - ) - .build(); -} - -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 index 7fa39772d42..c9c295354fb 100644 --- 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 @@ -1,7 +1,5 @@ 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 053aa2762a6c9eb0f573a14a0e6ba8285bd60af1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:35:31 +0100 Subject: [PATCH 296/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...ts_the_test_in_the_terse_format_feature.rs | 19 +++++++++- ...s_the_tests_in_the_terse_format_feature.rs | 19 +++++++++- ...uccessful_and_one_ignored_level_1_tests.rs | 38 ------------------- .../mod.rs | 2 - 4 files changed, 34 insertions(+), 44 deletions(-) delete mode 100644 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 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/lists_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_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs index 1215d62b6a5..0ef8af6ac87 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/lists_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_successful_and_one_ignored_tests/lists_the_test_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_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,22 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { 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/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_1/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs index 23565050e2a..f38cb4993a0 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/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_1/with_one_successful_and_one_ignored_test/lists_the_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_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,22 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Ouputs the test in the terse format" { 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 deleted file mode 100644 index 88f6b20699c..00000000000 --- 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 +++ /dev/null @@ -1,38 +0,0 @@ -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_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, 1); - } -} -"#, - ) - .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/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 index c9c295354fb..565ce4fe138 100644 --- 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 @@ -1,5 +1,3 @@ -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; -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 97d35f3838f5d5480272fe77fa966da28f5997ff Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:46:13 +0100 Subject: [PATCH 297/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...ts_the_test_in_the_terse_format_feature.rs | 21 +++++++++- ...s_the_tests_in_the_terse_format_feature.rs | 21 +++++++++- .../__steps__/assembly/mod.rs | 3 +- ...uccessful_and_one_ignored_level_2_tests.rs | 40 ------------------- .../mod.rs | 3 -- 5 files changed, 39 insertions(+), 49 deletions(-) delete mode 100644 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 delete 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/__ignored/level_2/with_one_successful_and_one_ignored_tests/lists_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_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs index c074bcd909c..07bb665af27 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/lists_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_successful_and_one_ignored_tests/lists_the_test_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_level_2_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,24 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs the test in the terse format" { 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/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_2/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs index 954c923ec51..ee08bf3e4ab 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/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_2/with_one_successful_and_one_ignored_test/lists_the_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_level_2_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,24 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_ignored_level_2_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + mod level_2 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + #[ignore] + fn ignored() { + assert_eq!(1, 1); + } + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 50f39584ca4..0454fe6e43c 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -2,10 +2,9 @@ mod assembly_builder; mod given_there_is_an_assembly_with; mod given_there_is_an_assembly_without_anything; mod with_one_successful_and_one_failing_tests; -mod with_one_successful_and_one_ignored_tests; + pub use assembly_builder::*; pub use given_there_is_an_assembly_with::*; 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::*; 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 deleted file mode 100644 index 522eec9e6ea..00000000000 --- 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 +++ /dev/null @@ -1,40 +0,0 @@ -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_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, 1); - } - } -} -"#, - ) - .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/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 deleted file mode 100644 index 565ce4fe138..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_ignored_tests/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod 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_level_2_tests::*; From 68819a9ddb19d22b665a835d61a7ec34e4ad384b Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 20:56:03 +0100 Subject: [PATCH 298/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- ...es_successful_and_failing_tests_feature.rs | 20 ++++++++++++++----- .../lists_nothing_feature.rs | 14 +++++++++++-- ...s_the_tests_in_the_terse_format_feature.rs | 14 +++++++++++-- .../executes_tests_feature.rs | 20 ++++++++++++++----- .../__steps__/assembly/mod.rs | 1 - ...th_one_successful_and_one_failing_tests.rs | 2 +- .../mod.rs | 2 -- 7 files changed, 55 insertions(+), 18 deletions(-) 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/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs index c31bd076a89..2a3e9f11329 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/executes_successful_and_failing_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/executes_successful_and_failing_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::error_code::then_failure_should_have_been_returned; 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_for_test_mode_and_the_arguments; @@ -9,7 +9,17 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments(test_mode, "--include-ignored"); "Outputs its running 2 tests" { @@ -17,11 +27,11 @@ feature! { } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL"); + then_the_standard_output_should_have("test assembly::fail ... FAIL"); } "Outputs the failed test assertion error" { @@ -29,7 +39,7 @@ feature! { } "Outputs the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n"); + then_the_standard_output_should_have("failures:\n\n assembly::fail\n"); } "Outputs the assembly test summary" { 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/lists_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/lists_nothing_feature.rs index f8c6eec7b88..ca2ea559dbb 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/lists_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/lists_nothing_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; 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; @@ -6,7 +6,17 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs nothing" { 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/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_successful_and_one_failing_tests/lists_the_tests_in_the_terse_format_feature.rs index 9000cb59982..9a12eaf0a63 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/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_successful_and_one_failing_tests/lists_the_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_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,17 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_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/executes_tests_feature.rs index 5b2ea912457..ea04dd8803a 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_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/executes_tests_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::error_code::then_failure_should_have_been_returned; 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_for_test_mode; @@ -9,7 +9,17 @@ use auroka_morpheus_macros_feature::feature; feature! { test_mode: TestMode - given_there_is_an_assembly_with_one_successful_and_one_failing_tests(); + given_there_is_an_assembly_with(r#" +#[wasm_bindgen_test] +fn pass() { + assert_eq!(1, 1); +} + +#[wasm_bindgen_test] +fn fail() { + assert_eq!(1, 2); +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode(test_mode); "Outputs its running 2 tests" { @@ -17,11 +27,11 @@ feature! { } "Outputs the failed test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::fail ... FAIL"); + then_the_standard_output_should_have("test assembly::fail ... FAIL"); } "Outputs the successful test summary" { - then_the_standard_output_should_have("test assembly_with_one_successful_and_one_failing_tests::pass ... ok"); + then_the_standard_output_should_have("test assembly::pass ... ok"); } "Outputs the failed test assertion error" { @@ -29,7 +39,7 @@ feature! { } "Outputs the assembly failure summary" { - then_the_standard_output_should_have("failures:\n\n assembly_with_one_successful_and_one_failing_tests::fail\n"); + then_the_standard_output_should_have("failures:\n\n assembly::fail\n"); } "Outputs the assembly test summary" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 0454fe6e43c..16ba295a802 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -3,7 +3,6 @@ mod given_there_is_an_assembly_with; mod given_there_is_an_assembly_without_anything; mod with_one_successful_and_one_failing_tests; - pub use assembly_builder::*; pub use given_there_is_an_assembly_with::*; pub use given_there_is_an_assembly_without_anything::*; diff --git a/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 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 index f51601b4519..eaf9568b3bf 100644 --- a/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 +++ 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 @@ -23,7 +23,7 @@ fn pass() { fn fail() { assert_eq!(1, 2); } - "#, +"#, ) .build(); } 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 index 77684ffda47..9710140651b 100644 --- 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 @@ -1,7 +1,5 @@ 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::*; From f40e6b70160523152ae1cfb069761feeb219ba94 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 21:04:53 +0100 Subject: [PATCH 299/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- .../lists_nothing_feature.rs | 18 ++++++++-- ...s_the_tests_in_the_terse_format_feature.rs | 18 ++++++++-- ...th_one_successful_and_one_failing_tests.rs | 33 ------------------- .../mod.rs | 2 -- 4 files changed, 32 insertions(+), 39 deletions(-) delete mode 100644 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 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/lists_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/lists_nothing_feature.rs index 1f1079d57ba..f59dccc1c22 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/lists_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/lists_nothing_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; 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; @@ -6,7 +6,21 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + fn fail() { + assert_eq!(1, 2); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs nothing" { 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/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_1/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs index 6d63590a731..da239d3fa0c 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/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_1/with_one_successful_and_one_failing_test/lists_the_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_level_1_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,21 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_level_1_tests(); + given_there_is_an_assembly_with(r#" +mod level_1 { + use wasm_bindgen_test::*; + + #[wasm_bindgen_test] + fn pass() { + assert_eq!(1, 1); + } + + #[wasm_bindgen_test] + fn fail() { + assert_eq!(1, 2); + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Outputs the test in the terse format" { diff --git a/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 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 deleted file mode 100644 index eaf9568b3bf..00000000000 --- a/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 +++ /dev/null @@ -1,33 +0,0 @@ -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_successful_and_one_failing_tests") - .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_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 index 9710140651b..094857156f7 100644 --- 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 @@ -1,5 +1,3 @@ -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; -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::*; From f67723fd7989ba4e2d6fd583e88d8f3d507018a3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 21:09:22 +0100 Subject: [PATCH 300/323] wasm-bindgen-test-runner: Updated feature tests to use a more explicit step in terms of the content of the assembly. --- .../lists_nothing_feature.rs | 22 ++++++++++- ...s_the_tests_in_the_terse_format_feature.rs | 22 ++++++++++- .../__steps__/assembly/mod.rs | 2 - ...uccessful_and_one_failing_level_1_tests.rs | 36 ----------------- ...uccessful_and_one_failing_level_2_tests.rs | 39 ------------------- .../mod.rs | 3 -- 6 files changed, 40 insertions(+), 84 deletions(-) delete mode 100644 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 delete mode 100644 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 delete mode 100644 tests/wasm_bindgen_test_runner/__steps__/assembly/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_tests/lists_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/lists_nothing_feature.rs index f803ae5c9a2..268ab600359 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/lists_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/lists_nothing_feature.rs @@ -1,4 +1,4 @@ -use crate::__steps__::assembly::given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::standard_output::then_the_standard_output_should_be_empty; 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; @@ -6,7 +6,25 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(); + given_there_is_an_assembly_with(r#" +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); + } + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse --ignored"); "Outputs nothing" { 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/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_2/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs index f4f28fccf88..af86d17f899 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/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_2/with_one_successful_and_one_failing_test/lists_the_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_level_2_tests; +use crate::__steps__::assembly::given_there_is_an_assembly_with; 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; @@ -6,7 +6,25 @@ use crate::__steps__::Context; use auroka_morpheus_macros_feature::feature; feature! { - given_there_is_an_assembly_with_one_successful_and_one_failing_level_2_tests(); + given_there_is_an_assembly_with(r#" +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); + } + } +} +"#); when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments("--list --format terse"); "Ouputs the test in the terse format" { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs index 16ba295a802..80b3b2ce558 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs @@ -1,9 +1,7 @@ mod assembly_builder; mod given_there_is_an_assembly_with; mod given_there_is_an_assembly_without_anything; -mod with_one_successful_and_one_failing_tests; pub use assembly_builder::*; pub use given_there_is_an_assembly_with::*; pub use given_there_is_an_assembly_without_anything::*; -pub use with_one_successful_and_one_failing_tests::*; diff --git a/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 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 deleted file mode 100644 index 48e2ce8a764..00000000000 --- a/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 +++ /dev/null @@ -1,36 +0,0 @@ -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_successful_and_one_failing_level_1_tests") - .file( - "src/lib.rs", - r#" -#[cfg(test)] -mod level_1 { - use wasm_bindgen_test::*; - - #[wasm_bindgen_test] - fn pass() { - assert_eq!(1, 1); - } - - #[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/with_one_successful_and_one_failing_tests/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 deleted file mode 100644 index 70c5f1db6fe..00000000000 --- a/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 +++ /dev/null @@ -1,39 +0,0 @@ -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_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/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 deleted file mode 100644 index 094857156f7..00000000000 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/with_one_successful_and_one_failing_tests/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -mod 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_level_2_tests::*; From 76f9e72ba58db0196cee0edc859eb338d3e3f4dd Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Wed, 10 Jul 2024 21:14:05 +0100 Subject: [PATCH 301/323] wasm-bindgen-test-runner: Simplified feature test step implementation. --- ...ven_there_is_an_assembly_without_anything.rs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs index 29c62d35c0c..cf6bf55888d 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs @@ -1,19 +1,6 @@ -use super::AssemblyBuilder; -use crate::__steps__::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::assembly::given_there_is_an_assembly_with; use crate::__steps__::Context; -use lazy_static::lazy_static; -use std::path::PathBuf; - -lazy_static! { - static ref ASSEMBLY: PathBuf = AssemblyBuilder::new("assembly_without_anything") - .file( - "src/lib.rs", - r#" - "#, - ) - .build(); -} pub fn given_there_is_an_assembly_without_anything(context: &mut Context) { - context.sandbox_set(Sandbox::new(ASSEMBLY.clone())); + given_there_is_an_assembly_with(context, ""); } From 16fee957fecc527df4597ef6e3ec5f197bc3d3df Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 12 Jul 2024 00:44:39 +0100 Subject: [PATCH 302/323] wasm-bindgen-test-runner: Extracted list and version commands. Updated to use the ResourceCoordinator. --- .../wasm-bindgen-test-runner/commands/list.rs | 26 +++ .../wasm-bindgen-test-runner/commands/mod.rs | 5 + .../commands/version.rs | 9 + .../src/bin/wasm-bindgen-test-runner/main.rs | 193 +++++++++--------- .../src/bin/wasm-bindgen-test-runner/shell.rs | 1 + 5 files changed, 137 insertions(+), 97 deletions(-) create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/commands/mod.rs create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/commands/version.rs diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs new file mode 100644 index 00000000000..dc6b2030de4 --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs @@ -0,0 +1,26 @@ +use anyhow::Result; +use walrus::Module; + +pub fn list(wasm: &Module, ignored: bool) -> Result<()> { + for export in wasm.exports.iter() { + if !export.name.starts_with("___wbgt_") { + continue; + } + + let parts: Vec<&str> = export.name.split('$').collect(); + + if 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(()); +} diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/commands/mod.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/mod.rs new file mode 100644 index 00000000000..be301e1a301 --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/mod.rs @@ -0,0 +1,5 @@ +mod list; +mod version; + +pub use list::list; +pub use version::version; diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/commands/version.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/version.rs new file mode 100644 index 00000000000..432bf696d9f --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/version.rs @@ -0,0 +1,9 @@ +use anyhow::Result; + +pub fn version() -> Result<()> { + println!( + "wasm-bindgen-test-runner {}", + wasm_bindgen_shared::version() + ); + return Ok(()); +} 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 ad8eb040ee8..7fbc3efce89 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -11,7 +11,10 @@ //! For more documentation about this see the `wasm-bindgen-test` crate README //! and source code. -use anyhow::{anyhow, bail, Context}; +use anyhow::{anyhow, bail, Context, Result}; +use auroka_common_concurrency_filesystem_resource_coordinator::ResourceCoordinator; +use commands::list; +use commands::version; use docopt::Docopt; use log::error; use serde::Deserialize; @@ -21,6 +24,7 @@ use std::path::PathBuf; use std::thread; use wasm_bindgen_cli_support::Bindgen; +mod commands; mod deno; mod headless; mod lock; @@ -56,6 +60,23 @@ impl TestMode { | Self::ServiceWorker { no_modules } => no_modules, } } + + fn summary(self) -> &'static str { + match self { + Self::Node => "node", + Self::Deno => "deno", + Self::Browser { .. } + | Self::DedicatedWorker { .. } + | Self::SharedWorker { .. } + | Self::ServiceWorker { .. } => { + if self.no_modules() { + "no_modules" + } else { + "web" + } + } + } + } } struct TmpDirDeleteGuard(PathBuf); @@ -120,11 +141,7 @@ fn main() -> anyhow::Result<()> { .unwrap_or_else(|e| e.exit()); if args_.flag_version { - println!( - "wasm-bindgen-test-runner {}", - wasm_bindgen_shared::version() - ); - return Ok(()); + return version(); } let wasm_file_to_test: PathBuf = if let Some(input) = args_.arg_input { @@ -143,52 +160,26 @@ 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; - } - - let parts: Vec<&str> = export.name.split('$').collect(); - - 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); - } - found = true; - } - - if !found || args_.flag_ignored { - return Ok(()); - } + return list(&wasm, args_.flag_ignored); } let mut tests = Vec::new(); - 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()); + // 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()); + } - // 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. @@ -271,6 +262,13 @@ fn main() -> anyhow::Result<()> { // 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 mut tmp = format!("wbg-tmp-{}-{}", file_name, test_mode.summary()); + if debug { + tmp += "-debug"; + } + if std::env::var("WASM_BINDGEN_SPLIT_LINKED_MODULES").is_ok() { + tmp += "-split"; + } 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 @@ -280,68 +278,69 @@ fn main() -> anyhow::Result<()> { .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))) + .map(|p| p.join(tmp.clone())) .ok_or_else(|| anyhow!("file to test doesn't follow the expected Cargo conventions"))?; - 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())) - }; + let shell = shell::Shell::new(); - 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")?; + let mut resource_coordinator = ResourceCoordinator::try_new(tmp)?; - // Make the generated bindings available for the tests to execute against. - if let Some(ref shell) = shell { + resource_coordinator.initialize({ + let shell = shell.clone(); + let tmpdir = tmpdir.clone(); + move || -> Result<()> { + // 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)? + + 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); - } + 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")?; + b.debug(debug) + .input_module(module, wasm) + .keep_debug(false) + .emit_start(false) + .generate(&tmpdir) + .context("executing `wasm-bindgen` over the wasm file")?; - if let Some(ref shell) = shell { shell.clear(); - } - } - if args_.flag_list { - return Ok(()); - } + Ok(()) + } + }); + + resource_coordinator.finalize({ + let tmpdir = tmpdir.clone(); + move || { + if fs::exists(&tmpdir).unwrap() { + if let Err(e) = fs::remove_dir_all(&tmpdir) { + error!("failed to remove temporary directory: {}", e); + } + } + } + }); - let Some(shell) = shell else { - bail!("no shell available"); - }; + resource_coordinator.enter()?; let timeout = env::var("WASM_BINDGEN_TEST_TIMEOUT") .map(|timeout| { diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/shell.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/shell.rs index f6893fb76de..5a256198c4e 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/shell.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/shell.rs @@ -2,6 +2,7 @@ const WIDTH: usize = 50; use std::io::{self, Write}; +#[derive(Clone)] pub struct Shell {} impl Shell { From 75424ef93b01a5becd7c03e06b7c96099dee10ce Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Jul 2024 00:32:06 +0100 Subject: [PATCH 303/323] wasm-bindgen-test-runner: Improved Lock candidate selection and oldest checking. --- .../src/bin/wasm-bindgen-test-runner/lock.rs | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 71d70b6afe4..090bc94e8fd 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -72,8 +72,8 @@ impl Lock { let file_prefix = format!("{}.", &self.name); for entry in read_dir(env::temp_dir()).unwrap() { - if let Some((path, name)) = Self::is_candidate(entry, &lock_name, &file_prefix) { - if self.is_candidate_older(&path) && Self::is_candidate_running(&name) { + if let Some((path, pid)) = self.is_candidate(entry, &lock_name, &file_prefix) { + if self.is_candidate_older(&path, pid) && is_process_running(pid) { return false; } } @@ -83,28 +83,33 @@ impl Lock { } fn is_candidate( + &self, entry: Result, lock_name: &str, file_prefix: &str, - ) -> Option<(PathBuf, String)> { + ) -> Option<(PathBuf, u32)> { if let Ok(entry) = entry { let path = entry.path(); if let Some(name) = path.clone().file_name().and_then(|n| n.to_str()) { if name.starts_with(file_prefix) && name != lock_name { - return Some((path, name.to_string())); + if let Some(pid) = name.split('.').last().and_then(|n| n.parse().ok()) { + if pid != self.pid { + return Some((path, pid)); + } + } } } } None } - fn is_candidate_older(&self, candidate: &PathBuf) -> bool { - metadata(candidate).unwrap().modified().unwrap() < self.timestamp - } - - fn is_candidate_running(name: &str) -> bool { - let pid = name.split('.').last().unwrap().parse().unwrap(); - is_process_running(pid) + fn is_candidate_older(&self, candidate: &PathBuf, pid: u32) -> bool { + if let Ok(metadata) = metadata(candidate) { + if let Ok(modified) = metadata.modified() { + return modified < self.timestamp; + } + } + pid < self.pid } fn read_lock_pid(&self) -> Result { From 0035f61af7fa5b3b2f1952890cb061c6eab4ba53 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Jul 2024 00:34:19 +0100 Subject: [PATCH 304/323] wasm-bindgen-test-runner: Updated ResourceCoordinator usage. --- .../src/bin/wasm-bindgen-test-runner/main.rs | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 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 7fbc3efce89..754aafa949f 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -20,7 +20,7 @@ use log::error; use serde::Deserialize; use std::env; use std::fs; -use std::path::PathBuf; +use std::path::{PathBuf, MAIN_SEPARATOR}; use std::thread; use wasm_bindgen_cli_support::Bindgen; @@ -79,16 +79,6 @@ impl TestMode { } } -struct TmpDirDeleteGuard(PathBuf); - -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); - } - } -} - const USAGE: &str = " Execute all wasm bindgen unit and integration tests and build examples of a local package @@ -283,9 +273,11 @@ fn main() -> anyhow::Result<()> { let shell = shell::Shell::new(); - let mut resource_coordinator = ResourceCoordinator::try_new(tmp)?; + let lock_name = tmpdir.display().to_string().replace(MAIN_SEPARATOR, "_"); + + let mut resource_coordinator = ResourceCoordinator::new(lock_name); - resource_coordinator.initialize({ + resource_coordinator.initialize_set({ let shell = shell.clone(); let tmpdir = tmpdir.clone(); move || -> Result<()> { @@ -329,7 +321,7 @@ fn main() -> anyhow::Result<()> { } }); - resource_coordinator.finalize({ + resource_coordinator.finalize_set({ let tmpdir = tmpdir.clone(); move || { if fs::exists(&tmpdir).unwrap() { From 1c7e092e387f84a502c08e94313a90060c4b46b8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Jul 2024 19:54:45 +0100 Subject: [PATCH 305/323] wasm-bindgen-test-runner: Improved Lock is_candidate_older to be more strict. --- crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 090bc94e8fd..4fe0c7c2af0 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -106,7 +106,9 @@ impl Lock { fn is_candidate_older(&self, candidate: &PathBuf, pid: u32) -> bool { if let Ok(metadata) = metadata(candidate) { if let Ok(modified) = metadata.modified() { - return modified < self.timestamp; + if modified < self.timestamp { + return true; + } } } pid < self.pid From 11a192bc621cd42ddbc08ec2f99dc969ef798ba8 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 13 Jul 2024 23:33:47 +0100 Subject: [PATCH 306/323] wasm-bindgen-test-runner: Reverted Lock change. --- crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs index 4fe0c7c2af0..090bc94e8fd 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/lock.rs @@ -106,9 +106,7 @@ impl Lock { fn is_candidate_older(&self, candidate: &PathBuf, pid: u32) -> bool { if let Ok(metadata) = metadata(candidate) { if let Ok(modified) = metadata.modified() { - if modified < self.timestamp { - return true; - } + return modified < self.timestamp; } } pid < self.pid From e27fffd2b5ffa3cc240de588f5c8277948d919f1 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 15 Jul 2024 22:20:44 +0100 Subject: [PATCH 307/323] wasm-bindgen-test-runner: Updated arguments handling to clap. --- crates/cli/Cargo.toml | 1 + .../bin/wasm-bindgen-test-runner/cli/args.rs | 25 ++++++++ .../wasm-bindgen-test-runner/cli/list_args.rs | 16 +++++ .../bin/wasm-bindgen-test-runner/cli/mod.rs | 7 ++ .../wasm-bindgen-test-runner/cli/run_args.rs | 23 +++++++ .../src/bin/wasm-bindgen-test-runner/main.rs | 64 +++---------------- .../outputs_the_help_information_feature.rs | 33 ++++------ .../outputs_the_help_information_feature.rs | 33 ++++------ .../handles_missing_arguments_feature.rs | 13 +--- 9 files changed, 108 insertions(+), 107 deletions(-) create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/cli/args.rs create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/cli/list_args.rs create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/cli/mod.rs create mode 100644 crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index cd735f28321..3c85c1c4f38 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -20,6 +20,7 @@ pkg-url = "https://github.com/rustwasm/wasm-bindgen/releases/download/{ version bin-dir = "wasm-bindgen-{ version }-{ target }/{ bin }{ binary-ext }" [dependencies] +clap = { version = "4.5", features = ["derive"] } docopt = "1.0" env_logger = "0.8" anyhow = "1.0" diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/cli/args.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/args.rs new file mode 100644 index 00000000000..cbcaca90d2b --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/args.rs @@ -0,0 +1,25 @@ +use super::ListArgs; +use super::RunArgs; +use clap::Parser; +use std::path::PathBuf; + +#[derive(Parser, Debug)] +// It would be better to use the default version, but it returns wasm-bindgen-cli instead of wasm-bindgen-test-runner +#[command(about = "Execute all wasm bindgen unit and integration tests and build examples of a local package", version = None, long_about = None)] +#[command( + after_help = "Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html" +)] +pub struct Args { + /// The wasm file to test + pub input: Option, + + #[command(flatten)] + pub run: RunArgs, + + #[command(flatten)] + pub list: ListArgs, + + /// Print version + #[arg(short = 'V', long)] + pub version: bool, +} diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/cli/list_args.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/list_args.rs new file mode 100644 index 00000000000..536d668eff8 --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/list_args.rs @@ -0,0 +1,16 @@ +use clap::Args; + +#[derive(Args, Debug)] +pub struct ListArgs { + /// List all tests that would be run + #[arg(long)] + pub list: bool, + + /// Format of the tests listing output + #[arg(long, value_name = "FORMAT", value_parser = ["terse", "json"])] + pub format: Option, + + /// Restricts the listing to only consider the ignored tests + #[arg(long)] + pub ignored: bool, +} diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/cli/mod.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/mod.rs new file mode 100644 index 00000000000..c82fff3a0fc --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/mod.rs @@ -0,0 +1,7 @@ +mod args; +mod list_args; +mod run_args; + +pub use args::Args; +pub use list_args::ListArgs; +pub use run_args::RunArgs; diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs new file mode 100644 index 00000000000..7c0b1e8adfd --- /dev/null +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs @@ -0,0 +1,23 @@ +use clap::Args; + +#[derive(Args, Debug)] +pub struct RunArgs { + /// If specified, only executes the tests containing [testname] in their names + pub testname: Option, + + /// Run only the test with the exact name + #[arg(long)] + pub exact: bool, + + /// Include ignored tests in the test run + #[arg(long)] + pub include_ignored: bool, + + /// Disables the tests output capture + #[arg(long)] + pub nocapture: bool, + + /// Skip tests whose names match the given pattern + #[arg(long, value_name = "PATTERN", num_args = 0..)] + pub skip: Vec, +} 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 754aafa949f..35ed51facaa 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -13,17 +13,17 @@ use anyhow::{anyhow, bail, Context, Result}; use auroka_common_concurrency_filesystem_resource_coordinator::ResourceCoordinator; -use commands::list; -use commands::version; -use docopt::Docopt; +use clap::Parser; +use cli::Args; +use commands::{list, version}; use log::error; -use serde::Deserialize; use std::env; use std::fs; use std::path::{PathBuf, MAIN_SEPARATOR}; use std::thread; use wasm_bindgen_cli_support::Bindgen; +mod cli; mod commands; mod deno; mod headless; @@ -79,62 +79,16 @@ impl TestMode { } } -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)...] [--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 - -Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner - - The wasm file to test - If specified, only executes the tests containing in their names - -Arguments: - --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] - --ignored Restricts the listing to only consider the ignored tests - -Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html -"; - -#[derive(Debug, Deserialize)] -struct Args { - arg_input: Option, - arg_testname: 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, -} - fn main() -> anyhow::Result<()> { env_logger::init(); 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 args_ = Args::parse(); - if args_.flag_version { + if args_.version { return version(); } - let wasm_file_to_test: PathBuf = if let Some(input) = args_.arg_input { + let wasm_file_to_test: PathBuf = if let Some(input) = args_.input { input } else { bail!("must have a file to test as first argument"); @@ -149,8 +103,8 @@ fn main() -> anyhow::Result<()> { let mut wasm = walrus::Module::from_buffer(&wasm).context("failed to deserialize wasm module")?; - if args_.flag_list { - return list(&wasm, args_.flag_ignored); + if args_.list.list { + return list(&wasm, args_.list.ignored); } let mut tests = Vec::new(); diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs index 456678505cd..00afca13ccf 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs @@ -11,29 +11,22 @@ feature! { then_the_standard_output_should_have( 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)...] [--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 - -Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner - - The wasm file to test - If specified, only executes the tests containing in their names +Usage: wasm-bindgen-test-runner [OPTIONS] [INPUT] [TESTNAME] Arguments: - --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 + [INPUT] The wasm file to test + [TESTNAME] If specified, only executes the tests containing [testname] in their names - --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 +Options: + --exact Run only the test with the exact name + --include-ignored Include ignored tests in the test run + --nocapture Disables the tests output capture + --skip [...] Skip tests whose names match the given pattern + --list List all tests that would be run + --format Format of the tests listing output [possible values: terse, json] + --ignored Restricts the listing to only consider the ignored tests + -V, --version Print version + -h, --help Print help 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_help_information_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs index 56d652d7f8c..09b437b96b4 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs @@ -11,29 +11,22 @@ feature! { then_the_standard_output_should_have( 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)...] [--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 - -Options: - -h, --help Show this screen. - -V, --version Print the version number of wasm-bindgen-test-runner - - The wasm file to test - If specified, only executes the tests containing in their names +Usage: wasm-bindgen-test-runner [OPTIONS] [INPUT] [TESTNAME] Arguments: - --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 + [INPUT] The wasm file to test + [TESTNAME] If specified, only executes the tests containing [testname] in their names - --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 +Options: + --exact Run only the test with the exact name + --include-ignored Include ignored tests in the test run + --nocapture Disables the tests output capture + --skip [...] Skip tests whose names match the given pattern + --list List all tests that would be run + --format Format of the tests listing output [possible values: terse, json] + --ignored Restricts the listing to only consider the ignored tests + -V, --version Print version + -h, --help Print help 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/handles_missing_arguments_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs index f98c10ed9c3..3a1a37dfb68 100644 --- a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs +++ b/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs @@ -7,19 +7,8 @@ use auroka_morpheus_macros_feature::feature; feature! { when_wasm_bindgen_test_runner_is_invoked_without_arguments(); - "Outputs the wasm-bindgen-test-runner usage information" { - then_the_standard_error_should_have(r#" -Usage: - 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"#, - ); - } - "Outputs test file missing error" { - then_the_standard_error_should_have("Invalid arguments."); + then_the_standard_error_should_have("Error: must have a file to test as first argument"); } "Returns an error code" { From 040fa5ab5a260985db19d184ab144f4c0adabf88 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 15 Jul 2024 23:19:57 +0100 Subject: [PATCH 308/323] wasm-bindgen-test-runner: Updated arguments usage by the runtimes to use clap parsed run arguments. --- .../wasm-bindgen-test-runner/cli/run_args.rs | 29 +++++++++++++++++++ .../src/bin/wasm-bindgen-test-runner/deno.rs | 8 +---- .../src/bin/wasm-bindgen-test-runner/main.rs | 13 ++++----- .../src/bin/wasm-bindgen-test-runner/node.rs | 8 +---- .../bin/wasm-bindgen-test-runner/server.rs | 3 +- 5 files changed, 38 insertions(+), 23 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs index 7c0b1e8adfd..8161fe2e523 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs @@ -21,3 +21,32 @@ pub struct RunArgs { #[arg(long, value_name = "PATTERN", num_args = 0..)] pub skip: Vec, } + +impl RunArgs { + pub fn to_args(&self) -> Vec<&str> { + let mut args = Vec::<&str>::new(); + + if let Some(testname) = &self.testname { + args.push(testname); + } + + if self.exact { + args.push("--exact"); + } + + if self.include_ignored { + args.push("--include-ignored"); + } + + if self.nocapture { + args.push("--nocapture"); + } + + for skip in &self.skip { + args.push("--skip"); + args.push(skip); + } + + args + } +} 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 052c1d13cf2..e8fafb770fb 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs @@ -1,4 +1,3 @@ -use std::ffi::OsString; use std::fs; use std::path::Path; use std::process::Command; @@ -7,12 +6,7 @@ use anyhow::{Context, Error}; use crate::node::{exec, SHARED_SETUP}; -pub fn execute( - module: &str, - tmpdir: &Path, - args: &[OsString], - tests: &[String], -) -> Result<(), Error> { +pub fn execute(module: &str, tmpdir: &Path, args: &[&str], tests: &[String]) -> Result<(), Error> { let mut js_to_execute = format!( r#"import * as wasm from "./{0}.js"; 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 35ed51facaa..e46c278f1f4 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -81,14 +81,13 @@ impl TestMode { fn main() -> anyhow::Result<()> { env_logger::init(); - let args = env::args_os().skip(2); - let args_ = Args::parse(); + let args = Args::parse(); - if args_.version { + if args.version { return version(); } - let wasm_file_to_test: PathBuf = if let Some(input) = args_.input { + let wasm_file_to_test: PathBuf = if let Some(input) = args.input { input } else { bail!("must have a file to test as first argument"); @@ -103,8 +102,8 @@ fn main() -> anyhow::Result<()> { let mut wasm = walrus::Module::from_buffer(&wasm).context("failed to deserialize wasm module")?; - if args_.list.list { - return list(&wasm, args_.list.ignored); + if args.list.list { + return list(&wasm, args.list.ignored); } let mut tests = Vec::new(); @@ -300,7 +299,7 @@ fn main() -> anyhow::Result<()> { println!("Set timeout to {} seconds...", timeout); } - let args: Vec<_> = args.collect(); + let args: Vec<_> = args.run.to_args(); match test_mode { TestMode::Node => node::execute(module, &tmpdir, &args, &tests)?, 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 0e1718119ae..76e3446f4d3 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs @@ -1,5 +1,4 @@ use std::env; -use std::ffi::OsString; use std::fs; use std::path::Path; use std::process::Command; @@ -38,12 +37,7 @@ handlers.on_console_warn = wasm.__wbgtest_console_warn; handlers.on_console_error = wasm.__wbgtest_console_error; "#; -pub fn execute( - module: &str, - tmpdir: &Path, - args: &[OsString], - tests: &[String], -) -> Result<(), Error> { +pub fn execute(module: &str, tmpdir: &Path, args: &[&str], tests: &[String]) -> Result<(), Error> { let mut js_to_execute = format!( r#" const {{ exit }} = require('process'); diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs index 9c434a00010..0130e2764d5 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/server.rs @@ -1,5 +1,4 @@ use std::borrow::Cow; -use std::ffi::OsString; use std::fs; use std::net::SocketAddr; use std::path::Path; @@ -14,7 +13,7 @@ pub(crate) fn spawn( headless: bool, module: &'static str, tmpdir: &Path, - args: &[OsString], + args: &[&str], tests: &[String], test_mode: TestMode, isolate_origin: bool, From fc9ba7d350451eeb8507d9c159ead1780a40f614 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 15 Jul 2024 23:21:16 +0100 Subject: [PATCH 309/323] wasm-bindgen-test-runner: Removed unused dev-dependencies. --- Cargo.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d7d1c50f2b3..39b2b97e26d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,8 +62,6 @@ predicates = "1.0.0" rand = "0.8.5" regex = "1.10.4" -[dev-dependencies] - [workspace] members = [ "benchmarks", From 6a71808d2454ab1b02d1fa3b6313564801771cb2 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 15 Jul 2024 23:24:13 +0100 Subject: [PATCH 310/323] wasm-bindgen-test-runner: Removed unused fs2 dependency. --- crates/cli/Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 3c85c1c4f38..131475c9116 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -24,7 +24,6 @@ clap = { version = "4.5", features = ["derive"] } 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 } From 40fec3696c732eaa1ceca4a063223a517c8cb42a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 15 Jul 2024 23:26:06 +0100 Subject: [PATCH 311/323] wasm-bindgen-test-runner: Simplifed match in the test macro. --- crates/test-macro/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/test-macro/src/lib.rs b/crates/test-macro/src/lib.rs index bc2e4418dd4..12af8464eb2 100644 --- a/crates/test-macro/src/lib.rs +++ b/crates/test-macro/src/lib.rs @@ -81,8 +81,7 @@ pub fn wasm_bindgen_test( }; let ignore_str = match ignore.clone() { - Some(Some(_)) => "$", - Some(None) => "$", + Some(_) => "$", None => "", }; From d9fc3d10ff856ad56e53644c8661968f2a92f9d7 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 15 Jul 2024 23:39:39 +0100 Subject: [PATCH 312/323] wasm-bindgen-test-runner: Simplifed the wasm_bindgen_test macro to only emit a single function. --- .../src/bin/wasm-bindgen-test-runner/commands/list.rs | 2 +- crates/test-macro/src/lib.rs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs index dc6b2030de4..7bfeb8975e5 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs @@ -3,7 +3,7 @@ use walrus::Module; pub fn list(wasm: &Module, ignored: bool) -> Result<()> { for export in wasm.exports.iter() { - if !export.name.starts_with("___wbgt_") { + if !export.name.starts_with("__wbgt_") { continue; } diff --git a/crates/test-macro/src/lib.rs b/crates/test-macro/src/lib.rs index 12af8464eb2..0c983d0f848 100644 --- a/crates/test-macro/src/lib.rs +++ b/crates/test-macro/src/lib.rs @@ -99,20 +99,13 @@ pub fn wasm_bindgen_test( quote! { cx.execute_sync(test_name, #ident, #should_panic, #ignore); } }; - // We generate a `#[no_mangle]` with a known prefix so the test harness can - // later slurp up all of these functions and pass them as arguments to the - // 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] + #[export_name = concat!(#name_str, "$", module_path!(), "::", #ident_str, #ignore_str)] pub extern "C" fn #name(cx: &#wasm_bindgen_path::__rt::Context) { let test_name = ::core::concat!(::core::module_path!(), "::", ::core::stringify!(#ident)); #test_body From 87f757c1bbc4aec46a34641d665fc60663556b9c Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Thu, 18 Jul 2024 22:35:42 +0100 Subject: [PATCH 313/323] wasm-bindgen-test-runner: Step helper function: Extracted wasm_bindgen_test_runner_env_set from wasm-bindgen_test_runner_command. --- .../__steps__/wasm_bindgen_test_runner/mod.rs | 2 + .../wasm_bindgen_test_runner_command.rs | 51 ++----------------- .../wasm_bindgen_test_runner_env_set.rs | 40 +++++++++++++++ 3 files changed, 45 insertions(+), 48 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs 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 944e57141e6..6d5d00f51a9 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,6 @@ mod sandbox; mod wasm_bindgen_test_runner_command; +mod wasm_bindgen_test_runner_env_set; 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_assembly_for_test_mode; @@ -9,6 +10,7 @@ mod when_wasm_bindgen_test_runner_is_invoked_without_arguments; pub use sandbox::*; pub use wasm_bindgen_test_runner_command::*; +pub use wasm_bindgen_test_runner_env_set::*; 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_assembly_for_test_mode::*; 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 9e3650782e9..6af6ee8f705 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 @@ -1,4 +1,5 @@ use super::super::TestMode; +use super::wasm_bindgen_test_runner_env_set; use assert_cmd::cargo::{CargoError, CommandCargoExt}; use lazy_static::lazy_static; use std::process::Command; @@ -23,55 +24,9 @@ fn wasm_bindgen_test_runner_command_get() -> Result { pub fn wasm_bindgen_test_runner_command(mode: TestMode) -> Command { if COMMAND.is_ok() { - let mut command = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); + let command = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); - match mode { - TestMode::Default => &mut command, - TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), - TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), - TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), - TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), - TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), - TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), - TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), - TestMode::DedicatedWorkerDefault => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") - } - TestMode::DedicatedWorkerChrome => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") - } - TestMode::DedicatedWorkerEdge => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge") - } - TestMode::DedicatedWorkerFirefox => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") - } - TestMode::DedicatedWorkerSafari => { - command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") - } - TestMode::ServiceWorkerDefault => { - command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true") - } - TestMode::ServiceWorkerChrome => { - command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome") - } - TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), - TestMode::ServiceWorkerFirefox => { - command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox") - } - TestMode::ServiceWorkerSafari => { - command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari") - } - TestMode::SharedWorkerDefault => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "true"), - TestMode::SharedWorkerChrome => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "chrome"), - TestMode::SharedWorkerEdge => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "edge"), - TestMode::SharedWorkerFirefox => { - command.env("WASM_BINDGEN_USE_SHARED_WORKER", "firefox") - } - TestMode::SharedWorkerSafari => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "safari"), - }; - - return command; + return wasm_bindgen_test_runner_env_set(mode, command); } panic!("Failed to find wasm-bindgen-test-runner binary") diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs new file mode 100644 index 00000000000..b2b5293754f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs @@ -0,0 +1,40 @@ +use super::super::TestMode; +use std::process::Command; + +pub fn wasm_bindgen_test_runner_env_set(mode: TestMode, mut command: Command) -> Command { + match mode { + TestMode::Default => &mut command, + TestMode::Deno => command.env("WASM_BINDGEN_USE_DENO", "true"), + TestMode::Node => command.env("WASM_BINDGEN_TEST_ONLY_NODE", "true"), + TestMode::BrowserDefault => command.env("WASM_BINDGEN_USE_BROWSER", "true"), + TestMode::BrowserChrome => command.env("WASM_BINDGEN_USE_BROWSER", "chrome"), + TestMode::BrowserEdge => command.env("WASM_BINDGEN_USE_BROWSER", "edge"), + TestMode::BrowserFirefox => command.env("WASM_BINDGEN_USE_BROWSER", "firefox"), + TestMode::BrowserSafari => command.env("WASM_BINDGEN_USE_BROWSER", "safari"), + TestMode::DedicatedWorkerDefault => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "true") + } + TestMode::DedicatedWorkerChrome => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "chrome") + } + TestMode::DedicatedWorkerEdge => command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "edge"), + TestMode::DedicatedWorkerFirefox => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "firefox") + } + TestMode::DedicatedWorkerSafari => { + command.env("WASM_BINDGEN_USE_DEDICATED_WORKER", "safari") + } + TestMode::ServiceWorkerDefault => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "true"), + TestMode::ServiceWorkerChrome => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "chrome"), + TestMode::ServiceWorkerEdge => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "edge"), + TestMode::ServiceWorkerFirefox => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "firefox"), + TestMode::ServiceWorkerSafari => command.env("WASM_BINDGEN_USE_SERVICE_WORKER", "safari"), + TestMode::SharedWorkerDefault => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "true"), + TestMode::SharedWorkerChrome => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "chrome"), + TestMode::SharedWorkerEdge => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "edge"), + TestMode::SharedWorkerFirefox => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "firefox"), + TestMode::SharedWorkerSafari => command.env("WASM_BINDGEN_USE_SHARED_WORKER", "safari"), + }; + + command +} From c2b38c93377d53fdd5213514f2a1d2e80d22be13 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Jul 2024 21:46:22 +0100 Subject: [PATCH 314/323] wasm-bindgen-test-runner: Added a feature test to test the invocation by cargo nextest. --- .../cargo_nextest/executes_tests_feature.rs | 28 ++++ .../invoked_by/cargo_nextest/mod.rs | 1 + .../__features__/invoked_by/mod.rs | 1 + .../__features__/mod.rs | 1 + .../given_there_is_an_assembly_with.rs | 22 +-- .../cargo_nextest/cargo_nextest_command.rs | 11 ++ .../__steps__/cargo_nextest/context.rs | 46 ++++++ .../__steps__/cargo_nextest/mod.rs | 7 + ...rgo_nextest_is_invoked_over_the_package.rs | 13 ++ .../__steps__/context.rs | 7 + .../wasm_bindgen_test_runner/__steps__/mod.rs | 4 + .../__steps__/output_context.rs | 5 + .../package/given_there_is_a_package_with.rs | 14 ++ ..._is_a_package_with_100_successful_tests.rs | 19 +++ .../__steps__/package/mod.rs | 9 ++ .../__steps__/package/package_builder.rs | 144 ++++++++++++++++++ .../__steps__/package/prepare_tests.rs | 18 +++ .../__steps__/standard_error/mod.rs | 2 + ...then_the_standard_error_should_be_empty.rs | 4 +- .../then_the_standard_error_should_have.rs | 4 +- ...then_the_standard_error_should_not_have.rs | 10 ++ ...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 +- 25 files changed, 354 insertions(+), 32 deletions(-) create mode 100644 tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/output_context.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/package/mod.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs create mode 100644 tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs b/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs new file mode 100644 index 00000000000..fa97884b270 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs @@ -0,0 +1,28 @@ +use crate::__steps__::cargo_nextest::when_cargo_nextest_is_invoked_over_the_package; +use crate::__steps__::cargo_nextest::Context; +use crate::__steps__::package::given_there_is_a_package_with_100_successful_tests; +use crate::__steps__::standard_error::then_the_standard_error_should_have; +use crate::__steps__::standard_error::then_the_standard_error_should_not_have; +use crate::__steps__::success::then_success_should_have_been_returned; +use auroka_morpheus_macros_feature::feature; + +feature! { + given_there_is_a_package_with_100_successful_tests(); + when_cargo_nextest_is_invoked_over_the_package(); + + "Outputs its running 100 tests" { + then_the_standard_error_should_have("Starting 100 tests across 1 binary"); + } + + "Outputs the tests execution summary" { + then_the_standard_error_should_have("100 tests run: 100 passed, 0 skipped"); + } + + "Outputs no error" { + then_the_standard_error_should_not_have("error:"); + } + + "Returns success" { + then_success_should_have_been_returned(); + } +} diff --git a/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs new file mode 100644 index 00000000000..a430fba8f7d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs @@ -0,0 +1 @@ +mod executes_tests_feature; diff --git a/tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs b/tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs new file mode 100644 index 00000000000..d6876d34a4d --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs @@ -0,0 +1 @@ +mod cargo_nextest; diff --git a/tests/wasm_bindgen_test_runner/__features__/mod.rs b/tests/wasm_bindgen_test_runner/__features__/mod.rs index 2f054bc37a7..702c2d11681 100644 --- a/tests/wasm_bindgen_test_runner/__features__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__features__/mod.rs @@ -1 +1,2 @@ mod invocation; +mod invoked_by; diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs index e2978f6287c..a169f639373 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs @@ -1,4 +1,5 @@ use crate::__steps__::assembly::AssemblyBuilder; +use crate::__steps__::package::prepare_tests; use crate::__steps__::wasm_bindgen_test_runner::Sandbox; use crate::__steps__::Context; use lazy_static::lazy_static; @@ -17,29 +18,10 @@ pub fn given_there_is_an_assembly_with(context: &mut Context, content: &str) { .entry(content.to_string()) .or_insert_with(|| { AssemblyBuilder::new("assembly") - .file("src/lib.rs", &generate_content(content)) + .file("src/lib.rs", &prepare_tests(content)) .build() }) .clone(); context.sandbox_set(Sandbox::new(assembly_path)); } - -fn generate_content(content: &str) -> String { - let mut final_content = String::from( - r#" -#[cfg(test)] -use wasm_bindgen_test::*; -"#, - ); - - for line in content.lines() { - if line.starts_with("#[wasm_bindgen_test]") || line.starts_with("mod") { - final_content.push_str("#[cfg(test)]\n"); - } - final_content.push_str(line); - final_content.push_str("\n"); - } - - final_content -} diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs new file mode 100644 index 00000000000..73845ac34fe --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs @@ -0,0 +1,11 @@ +use super::super::wasm_bindgen_test_runner::wasm_bindgen_test_runner_env_set; +use super::super::TestMode; +use std::process::Command; + +pub fn cargo_nextest_command(mode: TestMode) -> Command { + let mut command = Command::new("cargo"); + + command.args(&["nextest", "run"]); + + return wasm_bindgen_test_runner_env_set(mode, command); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs new file mode 100644 index 00000000000..8224a97c01a --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs @@ -0,0 +1,46 @@ +use crate::__steps__::package::PackageBuilder; +use crate::__steps__::OutputContext; +use std::path::PathBuf; +use std::process::Output; + +pub struct Context { + output: Option>, + package_builder: Option, + path: Option, +} + +impl Context { + pub fn new() -> Self { + Context { + output: None, + package_builder: None, + path: None, + } + } + + pub fn output(&self) -> Result { + Ok(self.output.as_ref().unwrap().as_ref()?.clone()) + } + + pub fn output_set(&mut self, output: Result) { + self.output = Some(output); + } + + pub fn package_builder_set(&mut self, package_builder: PackageBuilder) { + self.package_builder = Some(package_builder); + } + + pub fn path(&self) -> &PathBuf { + self.path.as_ref().unwrap() + } + + pub fn path_set(&mut self, path: PathBuf) { + self.path = Some(path); + } +} + +impl OutputContext for Context { + fn output(&self) -> Result { + Ok(self.output.as_ref().unwrap().as_ref()?.clone()) + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs new file mode 100644 index 00000000000..d77a461ba1c --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs @@ -0,0 +1,7 @@ +mod cargo_nextest_command; +mod context; +mod when_cargo_nextest_is_invoked_over_the_package; + +pub use cargo_nextest_command::*; +pub use context::*; +pub use when_cargo_nextest_is_invoked_over_the_package::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs new file mode 100644 index 00000000000..1dcb98286bd --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs @@ -0,0 +1,13 @@ +use super::Context; +use crate::__steps__::cargo_nextest::cargo_nextest_command; +use crate::__steps__::TestMode; + +pub fn when_cargo_nextest_is_invoked_over_the_package(context: &mut Context) { + let mut command = cargo_nextest_command(TestMode::Default); + + command.current_dir(context.path()); + + println!("Running command: {:?}", context.path()); + + context.output_set(command.output()); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/tests/wasm_bindgen_test_runner/__steps__/context.rs index 41311b4caa5..ffcd2a5e290 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/context.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/context.rs @@ -1,4 +1,5 @@ use super::wasm_bindgen_test_runner::Sandbox; +use crate::__steps__::OutputContext; use std::process::Output; pub struct Context { @@ -34,3 +35,9 @@ impl Context { self.sandbox = Some(sandbox); } } + +impl OutputContext for Context { + fn output(&self) -> Result { + Ok(self.output.as_ref().unwrap().as_ref()?.clone()) + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/mod.rs index 61ea3cf4caf..84d466a0187 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/mod.rs @@ -1,6 +1,9 @@ pub mod assembly; +pub mod cargo_nextest; mod context; pub mod error_code; +mod output_context; +pub mod package; pub mod standard_error; pub mod standard_output; pub mod success; @@ -8,4 +11,5 @@ mod test_mode; pub mod wasm_bindgen_test_runner; pub use context::*; +pub use output_context::*; pub use test_mode::TestMode; diff --git a/tests/wasm_bindgen_test_runner/__steps__/output_context.rs b/tests/wasm_bindgen_test_runner/__steps__/output_context.rs new file mode 100644 index 00000000000..e08010e9505 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/output_context.rs @@ -0,0 +1,5 @@ +use std::process::Output; + +pub trait OutputContext { + fn output(&self) -> Result; +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs b/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs new file mode 100644 index 00000000000..5b866d34909 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs @@ -0,0 +1,14 @@ +use super::{prepare_tests, PackageBuilder}; +use crate::__steps__::cargo_nextest::Context; + +pub fn given_there_is_a_package_with(context: &mut Context, content: &str) { + let mut builder = PackageBuilder::new("package"); + + let path = builder + .file("src/lib.rs", &prepare_tests(content)) + .finalize(); + + context.package_builder_set(builder); + + context.path_set(path); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs new file mode 100644 index 00000000000..389ae1f5691 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs @@ -0,0 +1,19 @@ +use crate::__steps__::cargo_nextest::Context; +use crate::__steps__::package::given_there_is_a_package_with; + +pub fn given_there_is_a_package_with_100_successful_tests(context: &mut Context) { + let mut tests = String::new(); + for i in 0..100 { + tests.push_str(&format!( + r#" +#[wasm_bindgen_test] +fn pass_{}() {{ + assert_eq!(1, 1); +}} +"#, + i + )); + } + + given_there_is_a_package_with(context, &tests); +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/mod.rs b/tests/wasm_bindgen_test_runner/__steps__/package/mod.rs new file mode 100644 index 00000000000..c240ef7418e --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/package/mod.rs @@ -0,0 +1,9 @@ +mod given_there_is_a_package_with; +mod given_there_is_a_package_with_100_successful_tests; +mod package_builder; +mod prepare_tests; + +pub use given_there_is_a_package_with::*; +pub use given_there_is_a_package_with_100_successful_tests::*; +pub use package_builder::*; +pub use prepare_tests::*; diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs new file mode 100644 index 00000000000..4a88b5e4c7f --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs @@ -0,0 +1,144 @@ +use predicates::str; +use rand::Rng; +use regex::Regex; +use std::env; +use std::fs; +use std::path::PathBuf; +use std::process::Output; + +fn build_dir() -> PathBuf { + target_dir() + .join("wasm32-unknown-unknown") + .join("debug") + .join("deps") +} + +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 PackageBuilder { + root: PathBuf, + name: String, +} + +impl PackageBuilder { + pub fn new(name: &'static str) -> Self { + let mut rng = rand::thread_rng(); + + let root = target_dir() + .join("wasm-bindgen-test-runner-tests") + .join(format!("{}-{}", name, rng.gen_range(10000..99999))); + + drop(fs::remove_dir_all(&root)); + fs::create_dir_all(&root).unwrap(); + + Self { + root, + name: name.to_string(), + } + } + + pub fn check_cargo(&mut self) { + if !self.root.join("Cargo.toml").is_file() { + self.file( + "Cargo.toml", + &format!( + "[package] +name = '{}' +authors = [] +version = '1.0.0' +edition = '2021' + +[dev-dependencies] +wasm-bindgen-test = {{ path = '{}/crates/test' }} + +[patch.crates-io] +wasm-bindgen = {{ path = '{}' }} + +[workspace] +", + self.name, + repo_root().display(), + repo_root().display(), + ), + ); + } + } + + pub fn check_cargo_config(&mut self) { + if !self.root.join(".cargo/config.toml").is_file() { + self.file( + ".cargo/config.toml", + r#"[build] +target = "wasm32-unknown-unknown" + +[target.wasm32-unknown-unknown] +runner = 'wasm-bindgen-test-runner' +"#, + ); + } + } + + pub fn clean(&mut self) { + drop(fs::remove_dir_all(&self.root)); + } + + 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(); + self + } + + pub fn finalize(&mut self) -> PathBuf { + self.check_cargo(); + self.check_cargo_config(); + self.root.clone() + } +} + +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(&format!("Failed to generate assembly\n{}", error_str)); + + captures.get(1).unwrap().as_str().to_string() +} + +fn remove_files_prefix(dir: &PathBuf, prefix: &str) { + if let Ok(entries) = fs::read_dir(dir) { + for entry in entries { + let entry = entry.unwrap(); + let path = entry.path(); + if path.is_file() + && path + .file_name() + .unwrap() + .to_str() + .unwrap() + .starts_with(prefix) + { + fs::remove_file(&path).unwrap(); + } + } + } +} diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs b/tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs new file mode 100644 index 00000000000..e4abc680aa8 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs @@ -0,0 +1,18 @@ +pub fn prepare_tests(tests: &str) -> String { + let mut final_content = String::from( + r#" +#[cfg(test)] +use wasm_bindgen_test::*; +"#, + ); + + for line in tests.lines() { + if line.starts_with("#[wasm_bindgen_test]") || line.starts_with("mod") { + final_content.push_str("#[cfg(test)]\n"); + } + final_content.push_str(line); + final_content.push_str("\n"); + } + + final_content +} 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 14c7d5b9c66..0f467bbfb08 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs @@ -1,5 +1,7 @@ mod then_the_standard_error_should_be_empty; mod then_the_standard_error_should_have; +mod then_the_standard_error_should_not_have; pub use then_the_standard_error_should_be_empty::*; pub use then_the_standard_error_should_have::*; +pub use then_the_standard_error_should_not_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 index 846c88b0084..349076fca7c 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 @@ -1,8 +1,8 @@ -use crate::__steps__::Context; +use crate::__steps__::OutputContext; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_error_should_be_empty(context: &Context) { +pub fn then_the_standard_error_should_be_empty(context: &dyn OutputContext) { 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 b8de94dc6ab..7e0b8a20935 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 @@ -1,8 +1,8 @@ -use crate::__steps__::Context; +use crate::__steps__::OutputContext; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_error_should_have(context: &Context, content: &str) { +pub fn then_the_standard_error_should_have(context: &dyn OutputContext, 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_error/then_the_standard_error_should_not_have.rs b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs new file mode 100644 index 00000000000..4b697c9e546 --- /dev/null +++ b/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs @@ -0,0 +1,10 @@ +use crate::__steps__::OutputContext; +use assert_cmd::prelude::*; +use predicates::boolean::PredicateBooleanExt; +use predicates::str; + +pub fn then_the_standard_error_should_not_have(context: &dyn OutputContext, content: &str) { + let output = context.output().expect("No output was produced"); + + output.assert().stderr(str::contains(content).not()); +} 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 57074eea6a8..53fb3411ee5 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 @@ -1,8 +1,8 @@ -use crate::__steps__::Context; +use crate::__steps__::OutputContext; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_output_should_be_empty(context: &Context) { +pub fn then_the_standard_output_should_be_empty(context: &dyn OutputContext) { 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 ec21c468b96..86f29f1339b 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 @@ -1,8 +1,8 @@ -use crate::__steps__::Context; +use crate::__steps__::OutputContext; use assert_cmd::prelude::*; use predicates::str; -pub fn then_the_standard_output_should_have(context: &Context, content: &str) { +pub fn then_the_standard_output_should_have(context: &dyn OutputContext, 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 9ecd7a5a096..bc2aae0c0c8 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,9 +1,9 @@ -use crate::__steps__::Context; +use crate::__steps__::OutputContext; use assert_cmd::prelude::*; use predicates::boolean::PredicateBooleanExt; use predicates::str; -pub fn then_the_standard_output_should_not_have(context: &Context, content: &str) { +pub fn then_the_standard_output_should_not_have(context: &dyn OutputContext, 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 4b62def3181..d0885f3abda 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,7 +1,7 @@ -use crate::__steps__::Context; +use crate::__steps__::OutputContext; use assert_cmd::prelude::*; -pub fn then_success_should_have_been_returned(context: &Context) { +pub fn then_success_should_have_been_returned(context: &dyn OutputContext) { let output = context.output().expect("No output was produced"); output.assert().success(); From 79b66c4f3180da751c1cf058de7edff078ca0ae5 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Jul 2024 22:26:02 +0100 Subject: [PATCH 315/323] wasm-bindgen-test-runner: Updated the cargo config used by cargo nextest to reference the compiled assembly. --- ...rgo_nextest_is_invoked_over_the_package.rs | 2 - .../__steps__/package/package_builder.rs | 55 ++++++------------- 2 files changed, 16 insertions(+), 41 deletions(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs index 1dcb98286bd..e13e73d5292 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs @@ -7,7 +7,5 @@ pub fn when_cargo_nextest_is_invoked_over_the_package(context: &mut Context) { command.current_dir(context.path()); - println!("Running command: {:?}", context.path()); - context.output_set(command.output()); } diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs index 4a88b5e4c7f..64bc7038344 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs @@ -1,10 +1,8 @@ use predicates::str; use rand::Rng; -use regex::Regex; use std::env; use std::fs; use std::path::PathBuf; -use std::process::Output; fn build_dir() -> PathBuf { target_dir() @@ -78,14 +76,28 @@ wasm-bindgen = {{ path = '{}' }} pub fn check_cargo_config(&mut self) { if !self.root.join(".cargo/config.toml").is_file() { + // gets the current test executable + let runner = env::current_exe().unwrap(); + // drops the executable name + let runner = runner.parent().unwrap(); + // drops deps directory + let runner = runner.parent().unwrap(); + let runner = runner + .join("wasm-bindgen-test-runner") + .display() + .to_string(); self.file( ".cargo/config.toml", - r#"[build] + format!( + r#"[build] target = "wasm32-unknown-unknown" [target.wasm32-unknown-unknown] -runner = 'wasm-bindgen-test-runner' +runner = '{}' "#, + runner + ) + .as_str(), ); } } @@ -107,38 +119,3 @@ runner = 'wasm-bindgen-test-runner' self.root.clone() } } - -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(&format!("Failed to generate assembly\n{}", error_str)); - - captures.get(1).unwrap().as_str().to_string() -} - -fn remove_files_prefix(dir: &PathBuf, prefix: &str) { - if let Ok(entries) = fs::read_dir(dir) { - for entry in entries { - let entry = entry.unwrap(); - let path = entry.path(); - if path.is_file() - && path - .file_name() - .unwrap() - .to_str() - .unwrap() - .starts_with(prefix) - { - fs::remove_file(&path).unwrap(); - } - } - } -} From ba8541807068e50cfc8d0157e4be2485bde05004 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Fri, 19 Jul 2024 22:49:41 +0100 Subject: [PATCH 316/323] wasm-bindgen-test-runner: Added a check to make sure that the wasm-bindgen-test-runner was compiled already. --- .../__steps__/package/package_builder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs index 64bc7038344..1973acd58dd 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs @@ -1,3 +1,5 @@ +use crate::__steps__::wasm_bindgen_test_runner::wasm_bindgen_test_runner_command; +use crate::__steps__::TestMode; use predicates::str; use rand::Rng; use std::env; @@ -76,6 +78,8 @@ wasm-bindgen = {{ path = '{}' }} pub fn check_cargo_config(&mut self) { if !self.root.join(".cargo/config.toml").is_file() { + // to make sure that the wasm-bindgen-test-runner is compiled + wasm_bindgen_test_runner_command(TestMode::Default); // gets the current test executable let runner = env::current_exe().unwrap(); // drops the executable name From 947b4fbfa37b4b28156666f68a467eccc2f4a3d3 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Jul 2024 21:27:14 +0100 Subject: [PATCH 317/323] wasm-bindgen-test-runner: Added Drop to PackageBuilder to clean the package directory. --- .../__steps__/package/package_builder.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs index 1973acd58dd..aaffdbf72aa 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs @@ -38,7 +38,7 @@ impl PackageBuilder { let root = target_dir() .join("wasm-bindgen-test-runner-tests") - .join(format!("{}-{}", name, rng.gen_range(10000..99999))); + .join(format!("{}-{}", name, rng.gen_range(100000..999999))); drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); @@ -123,3 +123,9 @@ runner = '{}' self.root.clone() } } + +impl Drop for PackageBuilder { + fn drop(&mut self) { + self.clean(); + } +} From aeba8c6148c8b9b1eebf1fa3c38f00bd2c9bbd7a Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Jul 2024 22:22:49 +0100 Subject: [PATCH 318/323] wasm-bindgen-test-runner: Improved the random part of the AssemblyBuilder. --- .../__steps__/assembly/assembly_builder.rs | 2 +- 1 file changed, 1 insertion(+), 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 12001145bfc..d688193697f 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs +++ b/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs @@ -39,7 +39,7 @@ impl AssemblyBuilder { let root = target_dir() .join("wasm-bindgen-test-runner-tests") - .join(format!("{}-{}", name, rng.gen_range(1000..9999))); + .join(format!("{}-{}", name, rng.gen_range(100000..999999))); drop(fs::remove_dir_all(&root)); fs::create_dir_all(&root).unwrap(); From 3dd4aef1faae063a6a1d77e9aa420ca933d1b22e Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sat, 20 Jul 2024 22:33:26 +0100 Subject: [PATCH 319/323] wasm-bindgen-test-runner: Fixed the sandbox directory path. --- .../__steps__/wasm_bindgen_test_runner/sandbox.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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 b637e3dc5b0..94e3151559d 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 @@ -28,17 +28,7 @@ impl Sandbox { 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` - .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) - )) - }) + .map(|p| p.join(format!("sandbox-{}", rng.gen_range(100000..999999)))) .unwrap(); drop(fs::remove_dir_all(&root)); From 9f724e910a4d65f557a3c5550bcba9c122aeb321 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 21 Jul 2024 18:21:46 +0100 Subject: [PATCH 320/323] wasm-bindgen-test-runner: Moved the feature tests to the cli crate. --- .../cli/tests}/wasm_bindgen_test_runner/__data__/test_mode.rs | 0 .../wasm_bindgen_test_runner/__features__/invocation/mod.rs | 0 .../__features__/invocation/options/__help/mod.rs | 0 .../options/__help/outputs_the_help_information_feature.rs | 0 .../__features__/invocation/options/__version/mod.rs | 0 .../__version/outputs_the_version_information_feature.rs | 0 .../__features__/invocation/options/_h/mod.rs | 0 .../options/_h/outputs_the_help_information_feature.rs | 0 .../__features__/invocation/options/_v/mod.rs | 0 .../options/_v/outputs_the_version_information_feature.rs | 0 .../__features__/invocation/options/mod.rs | 0 .../invocation/runtimes/chrome/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/chrome/mod.rs | 0 .../invocation/runtimes/deno/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/deno/mod.rs | 0 .../invocation/runtimes/edge/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/edge/mod.rs | 0 .../invocation/runtimes/firefox/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/firefox/mod.rs | 0 .../__features__/invocation/runtimes/mod.rs | 0 .../invocation/runtimes/node/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/node/mod.rs | 0 .../invocation/runtimes/safari/executes_test_feature.rs | 0 .../__features__/invocation/runtimes/safari/mod.rs | 0 .../test_mode/browser/chrome/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/browser/chrome/mod.rs | 0 .../test_mode/browser/default/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/browser/default/mod.rs | 0 .../test_mode/browser/edge/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/browser/edge/mod.rs | 0 .../test_mode/browser/firefox/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/browser/firefox/mod.rs | 0 .../__features__/invocation/test_mode/browser/mod.rs | 0 .../test_mode/browser/safari/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/browser/safari/mod.rs | 0 .../dedicated_worker/chrome/executes_test_feature.rs | 0 .../invocation/test_mode/dedicated_worker/chrome/mod.rs | 0 .../dedicated_worker/default/executes_test_feature.rs | 0 .../invocation/test_mode/dedicated_worker/default/mod.rs | 0 .../test_mode/dedicated_worker/edge/executes_test_feature.rs | 0 .../invocation/test_mode/dedicated_worker/edge/mod.rs | 0 .../dedicated_worker/firefox/executes_test_feature.rs | 0 .../invocation/test_mode/dedicated_worker/firefox/mod.rs | 0 .../__features__/invocation/test_mode/dedicated_worker/mod.rs | 0 .../dedicated_worker/safari/executes_test_feature.rs | 0 .../invocation/test_mode/dedicated_worker/safari/mod.rs | 0 .../invocation/test_mode/default/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/default/mod.rs | 0 .../invocation/test_mode/deno/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/deno/mod.rs | 0 .../__features__/invocation/test_mode/mod.rs | 0 .../invocation/test_mode/node/executes_test_feature.rs | 0 .../__features__/invocation/test_mode/node/mod.rs | 0 .../test_mode/service_worker/chrome/executes_test_feature.rs | 0 .../invocation/test_mode/service_worker/chrome/mod.rs | 0 .../test_mode/service_worker/default/executes_test_feature.rs | 0 .../invocation/test_mode/service_worker/default/mod.rs | 0 .../test_mode/service_worker/edge/executes_test_feature.rs | 0 .../invocation/test_mode/service_worker/edge/mod.rs | 0 .../test_mode/service_worker/firefox/executes_test_feature.rs | 0 .../invocation/test_mode/service_worker/firefox/mod.rs | 0 .../__features__/invocation/test_mode/service_worker/mod.rs | 0 .../test_mode/service_worker/safari/executes_test_feature.rs | 0 .../invocation/test_mode/service_worker/safari/mod.rs | 0 .../test_mode/shared_worker/chrome/executes_test_feature.rs | 0 .../invocation/test_mode/shared_worker/chrome/mod.rs | 0 .../test_mode/shared_worker/default/executes_test_feature.rs | 0 .../invocation/test_mode/shared_worker/default/mod.rs | 0 .../test_mode/shared_worker/edge/executes_test_feature.rs | 0 .../invocation/test_mode/shared_worker/edge/mod.rs | 0 .../test_mode/shared_worker/firefox/executes_test_feature.rs | 0 .../invocation/test_mode/shared_worker/firefox/mod.rs | 0 .../__features__/invocation/test_mode/shared_worker/mod.rs | 0 .../test_mode/shared_worker/safari/executes_test_feature.rs | 0 .../invocation/test_mode/shared_worker/safari/mod.rs | 0 .../__features__/invocation/with_an_assembly/mod.rs | 0 .../with_arguments/__include_ignored/level_0/mod.rs | 0 .../with_one_failing_test/executes_failing_test_feature.rs | 0 .../__include_ignored/level_0/with_one_failing_test/mod.rs | 0 .../with_one_ignored_test/executes_ignored_test_feature.rs | 0 .../__include_ignored/level_0/with_one_ignored_test/mod.rs | 0 .../executes_ignored_test_feature.rs | 0 .../level_0/with_one_ignored_with_reason_test/mod.rs | 0 .../executes_successful_and_failing_tests_feature.rs | 0 .../level_0/with_one_successful_and_one_failing_tests/mod.rs | 0 .../executes_successful_and_ignored_tests_feature.rs | 0 .../level_0/with_one_successful_and_one_ignored_tests/mod.rs | 0 .../level_0/with_one_successful_test/executes_test_feature.rs | 0 .../__include_ignored/level_0/with_one_successful_test/mod.rs | 0 .../with_an_assembly/with_arguments/__include_ignored/mod.rs | 0 .../__list/__format_terse/__ignored/level_0/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../__ignored/level_0/with_one_ignored_test/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../level_0/with_one_ignored_with_reason_test/mod.rs | 0 .../lists_nothing_feature.rs | 0 .../level_0/with_one_successful_and_one_failing_tests/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../level_0/with_one_successful_and_one_ignored_tests/mod.rs | 0 .../__list/__format_terse/__ignored/level_1/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../__ignored/level_1/with_one_ignored_test/mod.rs | 0 .../lists_nothing_feature.rs | 0 .../level_1/with_one_successful_and_one_failing_test/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../level_1/with_one_successful_and_one_ignored_tests/mod.rs | 0 .../__list/__format_terse/__ignored/level_2/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../__ignored/level_2/with_one_ignored_test/mod.rs | 0 .../lists_nothing_feature.rs | 0 .../level_2/with_one_successful_and_one_failing_tests/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../level_2/with_one_successful_and_one_ignored_tests/mod.rs | 0 .../with_arguments/__list/__format_terse/__ignored/mod.rs | 0 .../__ignored/without_tests/lists_nothing_feature.rs | 0 .../__list/__format_terse/__ignored/without_tests/mod.rs | 0 .../__list/__format_terse/default/level_0/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../default/level_0/with_one_ignored_test/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../default/level_0/with_one_ignored_with_reason_test/mod.rs | 0 .../lists_the_tests_in_the_terse_format_feature.rs | 0 .../level_0/with_one_successful_and_one_failing_tests/mod.rs | 0 .../lists_the_tests_in_the_terse_format_feature.rs | 0 .../level_0/with_one_successful_and_one_ignored_tests/mod.rs | 0 .../__list/__format_terse/default/level_1/mod.rs | 0 .../lists_the_tests_in_the_terse_format_feature.rs | 0 .../level_1/with_one_successful_and_one_failing_test/mod.rs | 0 .../lists_the_tests_in_the_terse_format_feature.rs | 0 .../level_1/with_one_successful_and_one_ignored_test/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../default/level_1/with_one_successful_test/mod.rs | 0 .../__list/__format_terse/default/level_2/mod.rs | 0 .../lists_the_tests_in_the_terse_format_feature.rs | 0 .../level_2/with_one_successful_and_one_failing_test/mod.rs | 0 .../lists_the_tests_in_the_terse_format_feature.rs | 0 .../level_2/with_one_successful_and_one_ignored_test/mod.rs | 0 .../lists_the_test_in_the_terse_format_feature.rs | 0 .../default/level_2/with_one_successful_test/mod.rs | 0 .../with_arguments/__list/__format_terse/default/mod.rs | 0 .../default/without_tests/lists_nothing_feature.rs | 0 .../__list/__format_terse/default/without_tests/mod.rs | 0 .../with_arguments/__list/__format_terse/mod.rs | 0 .../invocation/with_an_assembly/with_arguments/__list/mod.rs | 0 .../with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs | 0 .../level_0/with_one_full_match_successful_test/mod.rs | 0 .../with_one_full_match_successful_test/skips_test_feature.rs | 0 .../level_0/with_one_partial_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_0/with_one_prefix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_0/with_one_suffix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_0/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../count_1/level_0/without_match_successful_test/mod.rs | 0 .../without_match_successful_test/skips_no_tests_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs | 0 .../level_1/with_one_full_match_successful_test/mod.rs | 0 .../with_one_full_match_successful_test/skips_test_feature.rs | 0 .../level_1/with_one_partial_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_1/with_one_prefix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_1/with_one_suffix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_1/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../count_1/level_1/without_match_successful_test/mod.rs | 0 .../without_match_successful_test/skips_no_tests_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_1/mod.rs | 0 .../__skip_eq_pattern/count_1/without_tests/mod.rs | 0 .../count_1/without_tests/warns_tests_missing_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs | 0 .../level_0/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs | 0 .../level_1/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_2/mod.rs | 0 .../__skip_eq_pattern/count_2/without_tests/mod.rs | 0 .../count_2/without_tests/warns_tests_missing_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs | 0 .../level_0/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs | 0 .../level_1/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_eq_pattern/count_3/mod.rs | 0 .../__skip_eq_pattern/count_3/without_tests/mod.rs | 0 .../count_3/without_tests/warns_tests_missing_feature.rs | 0 .../with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs | 0 .../with_arguments/__skip_pattern/count_1/level_0/mod.rs | 0 .../level_0/with_one_full_match_successful_test/mod.rs | 0 .../with_one_full_match_successful_test/skips_test_feature.rs | 0 .../level_0/with_one_partial_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_0/with_one_prefix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_0/with_one_suffix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_0/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../count_1/level_0/without_match_successful_test/mod.rs | 0 .../without_match_successful_test/skips_no_tests_feature.rs | 0 .../with_arguments/__skip_pattern/count_1/level_1/mod.rs | 0 .../level_1/with_one_full_match_successful_test/mod.rs | 0 .../with_one_full_match_successful_test/skips_test_feature.rs | 0 .../level_1/with_one_partial_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_1/with_one_prefix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_1/with_one_suffix_match_successful_test/mod.rs | 0 .../skips_test_feature.rs | 0 .../level_1/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../count_1/level_1/without_match_successful_test/mod.rs | 0 .../without_match_successful_test/skips_no_tests_feature.rs | 0 .../with_arguments/__skip_pattern/count_1/mod.rs | 0 .../__skip_pattern/count_1/without_tests/mod.rs | 0 .../count_1/without_tests/warns_tests_missing_feature.rs | 0 .../with_arguments/__skip_pattern/count_2/level_0/mod.rs | 0 .../level_0/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_pattern/count_2/level_1/mod.rs | 0 .../level_1/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_pattern/count_2/mod.rs | 0 .../__skip_pattern/count_2/without_tests/mod.rs | 0 .../count_2/without_tests/warns_tests_missing_feature.rs | 0 .../with_arguments/__skip_pattern/count_3/level_0/mod.rs | 0 .../level_0/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_pattern/count_3/level_1/mod.rs | 0 .../level_1/with_two_partial_match_successful_tests/mod.rs | 0 .../skips_tests_feature.rs | 0 .../with_arguments/__skip_pattern/count_3/mod.rs | 0 .../__skip_pattern/count_3/without_tests/mod.rs | 0 .../count_3/without_tests/warns_tests_missing_feature.rs | 0 .../with_an_assembly/with_arguments/__skip_pattern/mod.rs | 0 .../invocation/with_an_assembly/with_arguments/mod.rs | 0 .../with_arguments/testname/__nocapture/__exact/mod.rs | 0 .../with_partial_test_match/executes_no_tests_feature.rs | 0 .../__nocapture/__exact/with_partial_test_match/mod.rs | 0 .../executes_only_one_test_feature.rs | 0 .../__exact/with_successful_test_match_1_of_2/mod.rs | 0 .../executes_only_one_test_feature.rs | 0 .../__exact/with_successful_test_match_2_of_2/mod.rs | 0 .../__exact/without_test_match/executes_no_tests_feature.rs | 0 .../testname/__nocapture/__exact/without_test_match/mod.rs | 0 .../with_arguments/testname/__nocapture/mod.rs | 0 .../with_an_assembly/with_arguments/testname/default/mod.rs | 0 .../executes_test_feature.rs | 0 .../default/with_one_full_match_successful_test/mod.rs | 0 .../executes_test_feature.rs | 0 .../default/with_one_partial_match_successful_test/mod.rs | 0 .../executes_test_feature.rs | 0 .../default/with_one_prefix_match_successful_test/mod.rs | 0 .../executes_test_feature.rs | 0 .../default/with_one_suffix_match_successful_test/mod.rs | 0 .../executes_tests_feature.rs | 0 .../default/with_two_partial_match_successful_tests/mod.rs | 0 .../executes_no_tests_feature.rs | 0 .../testname/default/without_match_successful_test/mod.rs | 0 .../with_an_assembly/with_arguments/testname/mod.rs | 0 .../with_an_assembly/without_arguments/level_0/mod.rs | 0 .../level_0/with_one_failing_test/executes_test_feature.rs | 0 .../without_arguments/level_0/with_one_failing_test/mod.rs | 0 .../level_0/with_one_ignored_test/ignores_test_feature.rs | 0 .../without_arguments/level_0/with_one_ignored_test/mod.rs | 0 .../with_one_ignored_with_reason_test/ignores_test_feature.rs | 0 .../level_0/with_one_ignored_with_reason_test/mod.rs | 0 .../executes_tests_feature.rs | 0 .../level_0/with_one_successful_and_one_failing_tests/mod.rs | 0 .../executes_one_test_and_ignores_another_feature.rs | 0 .../level_0/with_one_successful_and_one_ignored_tests/mod.rs | 0 .../level_0/with_one_successful_test/executes_test_feature.rs | 0 .../without_arguments/level_0/with_one_successful_test/mod.rs | 0 .../with_an_assembly/without_arguments/level_1/mod.rs | 0 .../level_1/with_one_successful_test/executes_test_feature.rs | 0 .../without_arguments/level_1/with_one_successful_test/mod.rs | 0 .../with_an_assembly/without_arguments/level_2/mod.rs | 0 .../level_2/with_one_successful_test/executes_test_feature.rs | 0 .../without_arguments/level_2/with_one_successful_test/mod.rs | 0 .../invocation/with_an_assembly/without_arguments/mod.rs | 0 .../with_an_assembly/without_arguments/without_tests/mod.rs | 0 .../without_tests/warns_no_tests_to_run_feature.rs | 0 .../without_arguments/handles_missing_arguments_feature.rs | 0 .../__features__/invocation/without_arguments/mod.rs | 0 .../invoked_by/cargo_nextest/executes_tests_feature.rs | 0 .../__features__/invoked_by/cargo_nextest/mod.rs | 0 .../wasm_bindgen_test_runner/__features__/invoked_by/mod.rs | 0 .../cli/tests}/wasm_bindgen_test_runner/__features__/mod.rs | 0 .../__steps__/assembly/assembly_builder.rs | 4 +++- .../__steps__/assembly/given_there_is_an_assembly_with.rs | 0 .../assembly/given_there_is_an_assembly_without_anything.rs | 0 .../tests}/wasm_bindgen_test_runner/__steps__/assembly/mod.rs | 0 .../__steps__/cargo_nextest/cargo_nextest_command.rs | 0 .../__steps__/cargo_nextest/context.rs | 0 .../wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs | 0 .../when_cargo_nextest_is_invoked_over_the_package.rs | 0 .../cli/tests}/wasm_bindgen_test_runner/__steps__/context.rs | 0 .../wasm_bindgen_test_runner/__steps__/error_code/mod.rs | 0 .../error_code/then_failure_should_have_been_returned.rs | 0 .../cli/tests}/wasm_bindgen_test_runner/__steps__/mod.rs | 0 .../wasm_bindgen_test_runner/__steps__/output_context.rs | 0 .../__steps__/package/given_there_is_a_package_with.rs | 0 .../given_there_is_a_package_with_100_successful_tests.rs | 0 .../tests}/wasm_bindgen_test_runner/__steps__/package/mod.rs | 0 .../__steps__/package/package_builder.rs | 4 +++- .../__steps__/package/prepare_tests.rs | 0 .../wasm_bindgen_test_runner/__steps__/standard_error/mod.rs | 0 .../standard_error/then_the_standard_error_should_be_empty.rs | 0 .../standard_error/then_the_standard_error_should_have.rs | 0 .../standard_error/then_the_standard_error_should_not_have.rs | 0 .../wasm_bindgen_test_runner/__steps__/standard_output/mod.rs | 0 .../then_the_standard_output_should_be_empty.rs | 0 .../standard_output/then_the_standard_output_should_have.rs | 0 .../then_the_standard_output_should_not_have.rs | 0 .../tests}/wasm_bindgen_test_runner/__steps__/success/mod.rs | 0 .../success/then_success_should_have_been_returned.rs | 0 .../tests}/wasm_bindgen_test_runner/__steps__/test_mode.rs | 0 .../__steps__/wasm_bindgen_test_runner/mod.rs | 0 .../__steps__/wasm_bindgen_test_runner/sandbox.rs | 0 .../wasm_bindgen_test_runner_command.rs | 0 .../wasm_bindgen_test_runner_env_set.rs | 0 ...n_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs | 0 ...t_runner_is_invoked_with_the_assembly_and_the_arguments.rs | 0 ..._test_runner_is_invoked_with_the_assembly_for_test_mode.rs | 0 ...voked_with_the_assembly_for_test_mode_and_the_arguments.rs | 0 ...hen_wasm_bindgen_test_runner_is_invoked_with_the_option.rs | 0 ...n_wasm_bindgen_test_runner_is_invoked_without_arguments.rs | 0 {tests => crates/cli/tests}/wasm_bindgen_test_runner/main.rs | 0 333 files changed, 6 insertions(+), 2 deletions(-) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__data__/test_mode.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/executes_successful_and_failing_tests_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/executes_successful_and_ignored_tests_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_nothing_feature.rs (100%) rename {tests => crates/cli/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 => crates/cli/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/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/mod.rs (100%) rename {tests => crates/cli/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/lists_nothing_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/mod.rs (100%) rename {tests => crates/cli/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/lists_nothing_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_the_tests_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_the_tests_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs (100%) rename {tests => crates/cli/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/lists_the_tests_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_the_tests_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs (100%) rename {tests => crates/cli/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/lists_the_tests_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/lists_the_tests_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/lists_the_test_in_the_terse_format_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_tests_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_tests_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/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/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/skips_test_feature.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/warns_tests_missing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs (100%) rename {tests => crates/cli/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 (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/executes_only_one_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/executes_only_one_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__features__/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs (98%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/assembly/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/context.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/error_code/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/output_context.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/package/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/package/package_builder.rs (97%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/success/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/test_mode.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs (100%) rename {tests => crates/cli/tests}/wasm_bindgen_test_runner/main.rs (100%) diff --git a/tests/wasm_bindgen_test_runner/__data__/test_mode.rs b/crates/cli/tests/wasm_bindgen_test_runner/__data__/test_mode.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__data__/test_mode.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__data__/test_mode.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__help/outputs_the_help_information_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/__version/outputs_the_version_information_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_h/outputs_the_help_information_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/_v/outputs_the_version_information_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/options/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/chrome/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/deno/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/edge/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/firefox/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/node/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/runtimes/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/chrome/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/edge/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/firefox/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/browser/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/chrome/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/edge/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/firefox/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/dedicated_worker/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/deno/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/node/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/chrome/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/edge/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/firefox/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/service_worker/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/chrome/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/edge/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/firefox/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/test_mode/shared_worker/safari/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/executes_failing_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_failing_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/executes_ignored_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/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/__include_ignored/level_0/with_one_ignored_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_test/mod.rs 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/executes_ignored_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_ignored_with_reason_test/executes_ignored_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_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/__include_ignored/level_0/with_one_ignored_with_reason_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_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/__include_ignored/level_0/with_one_successful_and_one_failing_tests/executes_successful_and_failing_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/executes_successful_and_failing_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/executes_successful_and_failing_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_failing_tests/executes_successful_and_failing_tests_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/executes_successful_and_ignored_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/executes_successful_and_ignored_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/executes_successful_and_ignored_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_and_one_ignored_tests/executes_successful_and_ignored_tests_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/executes_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/level_0/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__include_ignored/mod.rs rename to crates/cli/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/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/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/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/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_ignored_test/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/lists_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/__ignored/level_0/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_test/lists_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/with_one_ignored_test/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/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/__ignored/level_0/with_one_ignored_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/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/__ignored/level_0/with_one_ignored_with_reason_test/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/lists_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/__ignored/level_0/with_one_ignored_with_reason_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_0/with_one_ignored_with_reason_test/lists_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/with_one_ignored_with_reason_test/mod.rs b/crates/cli/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_ignored_with_reason_test/mod.rs rename to crates/cli/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_successful_and_one_failing_tests/lists_nothing_feature.rs b/crates/cli/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/lists_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_0/with_one_successful_and_one_failing_tests/lists_nothing_feature.rs rename to crates/cli/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/lists_nothing_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_failing_tests/mod.rs b/crates/cli/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/level_0/with_one_successful_and_one_failing_tests/mod.rs rename to crates/cli/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/level_0/with_one_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/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/lists_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/__ignored/level_0/with_one_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/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/lists_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/with_one_successful_and_one_ignored_tests/mod.rs b/crates/cli/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 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_successful_and_one_ignored_tests/mod.rs rename to crates/cli/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 diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/mod.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/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/lists_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/__ignored/level_1/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/with_one_ignored_test/lists_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_1/with_one_ignored_test/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/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/__ignored/level_1/with_one_ignored_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_1/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/with_one_successful_and_one_failing_test/lists_nothing_feature.rs b/crates/cli/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/lists_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_1/with_one_successful_and_one_failing_test/lists_nothing_feature.rs rename to crates/cli/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/lists_nothing_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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/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/lists_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/__ignored/level_1/with_one_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/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/lists_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_1/with_one_successful_and_one_ignored_tests/mod.rs b/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/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/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/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_ignored_test/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/lists_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/__ignored/level_2/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/with_one_ignored_test/lists_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_2/with_one_ignored_test/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/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/__ignored/level_2/with_one_ignored_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/level_2/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_2/with_one_successful_and_one_failing_tests/lists_nothing_feature.rs b/crates/cli/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/lists_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_tests/lists_nothing_feature.rs rename to crates/cli/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/lists_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_tests/mod.rs b/crates/cli/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_tests/mod.rs rename to crates/cli/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_ignored_tests/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/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/lists_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/__ignored/level_2/with_one_successful_and_one_ignored_tests/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/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/lists_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_2/with_one_successful_and_one_ignored_tests/mod.rs b/crates/cli/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 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_ignored_tests/mod.rs rename to crates/cli/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 diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_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_tests/lists_nothing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/lists_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/__ignored/without_tests/mod.rs b/crates/cli/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_tests/mod.rs rename to crates/cli/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/default/level_0/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/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/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/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_ignored_test/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_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/level_0/with_one_ignored_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_test/lists_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/with_one_ignored_test/mod.rs b/crates/cli/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/level_0/with_one_ignored_test/mod.rs rename to crates/cli/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/level_0/with_one_ignored_with_reason_test/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/lists_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/level_0/with_one_ignored_with_reason_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_0/with_one_ignored_with_reason_test/lists_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/with_one_ignored_with_reason_test/mod.rs b/crates/cli/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_ignored_with_reason_test/mod.rs rename to crates/cli/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_successful_and_one_failing_tests/lists_the_tests_in_the_terse_format_feature.rs b/crates/cli/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/lists_the_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_successful_and_one_failing_tests/lists_the_tests_in_the_terse_format_feature.rs rename to crates/cli/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/lists_the_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_successful_and_one_failing_tests/mod.rs b/crates/cli/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_tests/mod.rs rename to crates/cli/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_ignored_tests/lists_the_tests_in_the_terse_format_feature.rs b/crates/cli/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/lists_the_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_successful_and_one_ignored_tests/lists_the_tests_in_the_terse_format_feature.rs rename to crates/cli/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/lists_the_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_successful_and_one_ignored_tests/mod.rs b/crates/cli/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_successful_and_one_ignored_tests/mod.rs rename to crates/cli/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_1/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/mod.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/lists_the_tests_in_the_terse_format_feature.rs b/crates/cli/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/lists_the_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_1/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs rename to crates/cli/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/lists_the_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/with_one_successful_and_one_failing_test/mod.rs b/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/lists_the_tests_in_the_terse_format_feature.rs b/crates/cli/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/lists_the_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_1/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs rename to crates/cli/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/lists_the_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/with_one_successful_and_one_ignored_test/mod.rs b/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_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/level_1/with_one_successful_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/lists_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/with_one_successful_test/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_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_1/with_one_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_1/with_one_successful_test/mod.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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/mod.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/lists_the_tests_in_the_terse_format_feature.rs b/crates/cli/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/lists_the_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_2/with_one_successful_and_one_failing_test/lists_the_tests_in_the_terse_format_feature.rs rename to crates/cli/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/lists_the_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_2/with_one_successful_and_one_failing_test/mod.rs b/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/lists_the_tests_in_the_terse_format_feature.rs b/crates/cli/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/lists_the_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_2/with_one_successful_and_one_ignored_test/lists_the_tests_in_the_terse_format_feature.rs rename to crates/cli/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/lists_the_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_2/with_one_successful_and_one_ignored_test/mod.rs b/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/lists_the_test_in_the_terse_format_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/lists_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/level_2/with_one_successful_test/lists_the_test_in_the_terse_format_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/lists_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/with_one_successful_test/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_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_2/with_one_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/level_2/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/lists_nothing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/default/without_tests/mod.rs b/crates/cli/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/without_tests/mod.rs rename to crates/cli/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/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/__format_terse/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__list/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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/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/skips_tests_feature.rs similarity index 100% rename from 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/skips_tests_feature.rs rename to crates/cli/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/skips_tests_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/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/skips_test_feature.rs similarity index 100% rename from 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/skips_test_feature.rs rename to crates/cli/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/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/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/skips_tests_feature.rs similarity index 100% rename from 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/skips_tests_feature.rs rename to crates/cli/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/skips_tests_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/mod.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_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_eq_pattern/count_1/without_tests/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_1/without_tests/warns_tests_missing_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_0/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/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/skips_tests_feature.rs similarity index 100% rename from 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/skips_tests_feature.rs rename to crates/cli/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/skips_tests_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/level_1/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/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/skips_tests_feature.rs similarity index 100% rename from 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/skips_tests_feature.rs rename to crates/cli/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/skips_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/mod.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_2/without_tests/warns_tests_missing_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_0/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/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/skips_tests_feature.rs similarity index 100% rename from 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/skips_tests_feature.rs rename to crates/cli/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/skips_tests_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/level_1/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/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/skips_tests_feature.rs similarity index 100% rename from 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/skips_tests_feature.rs rename to crates/cli/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/skips_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/mod.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/count_3/without_tests/warns_tests_missing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_eq_pattern/mod.rs rename to crates/cli/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_pattern/count_1/level_0/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/mod.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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_full_match_successful_test/skips_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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_partial_match_successful_test/skips_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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_prefix_match_successful_test/skips_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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_one_suffix_match_successful_test/skips_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_two_partial_match_successful_tests/mod.rs b/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/with_two_partial_match_successful_tests/skips_tests_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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/mod.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/skips_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_0/without_match_successful_test/skips_no_tests_feature.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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_full_match_successful_test/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_partial_match_successful_test/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_prefix_match_successful_test/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/skips_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/skips_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_one_suffix_match_successful_test/skips_test_feature.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/mod.rs 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/skips_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/level_1/without_match_successful_test/skips_no_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/mod.rs b/crates/cli/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/count_1/without_tests/mod.rs rename to crates/cli/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/count_1/without_tests/warns_tests_missing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/warns_tests_missing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/warns_tests_missing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_1/without_tests/warns_tests_missing_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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_0/with_two_partial_match_successful_tests/skips_tests_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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/mod.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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_2/without_tests/warns_tests_missing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_0/with_two_partial_match_successful_tests/skips_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/mod.rs 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/crates/cli/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 similarity index 100% rename from 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 rename to crates/cli/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 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/skips_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/level_1/with_two_partial_match_successful_tests/skips_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/count_3/without_tests/warns_tests_missing_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/__skip_pattern/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/executes_no_tests_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_partial_test_match/mod.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/executes_only_one_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/executes_only_one_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/executes_only_one_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/executes_only_one_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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_1_of_2/mod.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/executes_only_one_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/executes_only_one_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/executes_only_one_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/executes_only_one_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_2_of_2/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/with_successful_test_match_2_of_2/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/executes_no_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/__exact/without_test_match/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/__nocapture/mod.rs rename to crates/cli/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/default/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/executes_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_full_match_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/executes_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_partial_match_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/executes_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_prefix_match_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/executes_test_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_one_suffix_match_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/executes_tests_feature.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/with_two_partial_match_successful_tests/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/executes_no_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/default/without_match_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/with_arguments/testname/mod.rs rename to crates/cli/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/without_arguments/level_0/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_failing_test/mod.rs b/crates/cli/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/level_0/with_one_failing_test/mod.rs rename to crates/cli/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/level_0/with_one_ignored_test/ignores_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/ignores_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_test/mod.rs b/crates/cli/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/level_0/with_one_ignored_test/mod.rs rename to crates/cli/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/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/ignores_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_ignored_with_reason_test/mod.rs b/crates/cli/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_ignored_with_reason_test/mod.rs rename to crates/cli/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_successful_and_one_failing_tests/executes_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_tests_feature.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_tests/executes_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/executes_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_failing_tests/mod.rs b/crates/cli/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_tests/mod.rs rename to crates/cli/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_ignored_tests/executes_one_test_and_ignores_another_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.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_ignored_tests/executes_one_test_and_ignores_another_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/executes_one_test_and_ignores_another_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_and_one_ignored_tests/mod.rs b/crates/cli/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_successful_and_one_ignored_tests/mod.rs rename to crates/cli/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_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/executes_test_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_0/with_one_successful_test/mod.rs b/crates/cli/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/level_0/with_one_successful_test/mod.rs rename to crates/cli/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/level_1/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/executes_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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_1/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_test_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/executes_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/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/level_2/with_one_successful_test/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/mod.rs b/crates/cli/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/without_tests/mod.rs rename to crates/cli/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/without_tests/warns_no_tests_to_run_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/with_an_assembly/without_arguments/without_tests/warns_no_tests_to_run_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/handles_missing_arguments_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invocation/without_arguments/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/executes_tests_feature.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invoked_by/cargo_nextest/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/invoked_by/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__features__/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__features__/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__features__/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__features__/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs similarity index 98% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs index d688193697f..995203f3ed0 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs +++ b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/assembly_builder.rs @@ -25,7 +25,9 @@ fn target_dir() -> PathBuf { } fn repo_root() -> PathBuf { - env::current_dir().unwrap() + let mut dir = target_dir(); + dir.pop(); // target + dir } pub struct AssemblyBuilder { diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_with.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/given_there_is_an_assembly_without_anything.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/assembly/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/cargo_nextest_command.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/context.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/cargo_nextest/when_cargo_nextest_is_invoked_over_the_package.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/context.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/context.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/context.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/context.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/error_code/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/error_code/then_failure_should_have_been_returned.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/output_context.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/output_context.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/output_context.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/output_context.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/given_there_is_a_package_with_100_successful_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/package/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs similarity index 97% rename from tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs index aaffdbf72aa..1711a310e83 100644 --- a/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs +++ b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs @@ -24,7 +24,9 @@ fn target_dir() -> PathBuf { } fn repo_root() -> PathBuf { - env::current_dir().unwrap() + let mut dir = target_dir(); + dir.pop(); // target + dir } pub struct PackageBuilder { diff --git a/tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/prepare_tests.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_be_empty.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_have.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_error/then_the_standard_error_should_not_have.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_be_empty.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_have.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/standard_output/then_the_standard_output_should_not_have.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/success/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/success/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/success/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/success/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/success/then_success_should_have_been_returned.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/test_mode.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/test_mode.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/mod.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/sandbox.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_env_set.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly.rs 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/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_and_the_arguments.rs rename to crates/cli/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/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_assembly_for_test_mode_and_the_arguments.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_with_the_option.rs diff --git a/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs rename to crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/when_wasm_bindgen_test_runner_is_invoked_without_arguments.rs diff --git a/tests/wasm_bindgen_test_runner/main.rs b/crates/cli/tests/wasm_bindgen_test_runner/main.rs similarity index 100% rename from tests/wasm_bindgen_test_runner/main.rs rename to crates/cli/tests/wasm_bindgen_test_runner/main.rs From 5501427f74912b17c344b3ee06bbe7d579b4609f Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 21 Jul 2024 19:21:22 +0100 Subject: [PATCH 321/323] wasm-bindgen-test-runner: The check for the presence of the wasm-bindgen-test-runner is no longer necessary. --- .../__steps__/package/package_builder.rs | 4 --- .../wasm_bindgen_test_runner_command.rs | 29 ++----------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs index 1711a310e83..50ff3cdf658 100644 --- a/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs +++ b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/package/package_builder.rs @@ -1,5 +1,3 @@ -use crate::__steps__::wasm_bindgen_test_runner::wasm_bindgen_test_runner_command; -use crate::__steps__::TestMode; use predicates::str; use rand::Rng; use std::env; @@ -80,8 +78,6 @@ wasm-bindgen = {{ path = '{}' }} pub fn check_cargo_config(&mut self) { if !self.root.join(".cargo/config.toml").is_file() { - // to make sure that the wasm-bindgen-test-runner is compiled - wasm_bindgen_test_runner_command(TestMode::Default); // gets the current test executable let runner = env::current_exe().unwrap(); // drops the executable name diff --git a/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs index 6af6ee8f705..0fa62788382 100644 --- a/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs +++ b/crates/cli/tests/wasm_bindgen_test_runner/__steps__/wasm_bindgen_test_runner/wasm_bindgen_test_runner_command.rs @@ -1,33 +1,10 @@ use super::super::TestMode; use super::wasm_bindgen_test_runner_env_set; -use assert_cmd::cargo::{CargoError, CommandCargoExt}; -use lazy_static::lazy_static; +use assert_cmd::cargo::CommandCargoExt; 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; - } - - 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(mode: TestMode) -> Command { - if COMMAND.is_ok() { - let command = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); - - return wasm_bindgen_test_runner_env_set(mode, command); - } + let command = Command::cargo_bin("wasm-bindgen-test-runner").unwrap(); - panic!("Failed to find wasm-bindgen-test-runner binary") + return wasm_bindgen_test_runner_env_set(mode, command); } From 0ae860e2b5cbea918965b6e459ce267b7e4f030d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 21 Jul 2024 20:50:36 +0100 Subject: [PATCH 322/323] wasm-bindgen-test-runner: Moved the feature tests to the cli crate. --- crates/cli/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 131475c9116..067b0497851 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -41,8 +41,11 @@ wasm-bindgen-shared = { path = "../shared", version = "=0.2.92" } [dev-dependencies] assert_cmd = "1.0" diff = "0.1" +lazy_static = "1.4.0" predicates = "1.0.0" +rand = "0.8.5" rayon = "1.0" +regex = "1.10.4" tempfile = "3.0" wasmparser = "0.102.0" wasmprinter = "0.2.54" From a2a80d5804128a9ea52ecbec3926f2f8dade1bce Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Mon, 22 Jul 2024 09:59:23 +0100 Subject: [PATCH 323/323] wasm-bindgen-test-runner: Reintroduced the old whitespace for review purposes. --- crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e8fafb770fb..4ece0d9b886 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs @@ -21,7 +21,7 @@ pub fn execute(module: &str, tmpdir: &Path, args: &[&str], tests: &[String]) -> cx.args(Deno.args); const tests = []; -"#, + "#, module, console_override = SHARED_SETUP, );