Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up UI tests #342

Merged
merged 17 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/libs/ui_test_envs
/libs/ui_tests/target
/libs/ui_tests/**/generated_app/
/libs/ui_tests/Cargo.lock
/libs/target
/libs/vendor
/doc_examples/tutorial_envs/
Expand Down
116 changes: 51 additions & 65 deletions libs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ biscotti = "0.3"
bytes = "1.5.0"
camino = "1"
cargo-like-utils = "0.1.2"
cargo_metadata = "0.18.0"
cargo-manifest = "0.14.0"
clap = "4"
clap-stdin = "0.4.0"
Expand Down
13 changes: 3 additions & 10 deletions libs/pavex_cli/tests/ui_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@ use std::str::FromStr;

fn main() -> Result<(), Box<dyn std::error::Error>> {
let manifest_dir = PathBuf::from_str(env!("CARGO_MANIFEST_DIR")).unwrap();
let test_data_folder = manifest_dir.join("tests").join("ui_tests");
let test_runtime_folder = manifest_dir.parent().unwrap().join("ui_test_envs");
let pavex_cli_path = get_pavex_cli_path()?;
let test_runtime_folder = manifest_dir.parent().unwrap().join("ui_tests");
let pavexc_cli_path = get_pavexc_cli_path()?;
run_tests(
pavex_cli_path,
pavexc_cli_path,
test_data_folder,
test_runtime_folder,
)?
.exit();
let pavex_cli_path = get_pavex_cli_path()?;
run_tests(pavex_cli_path, pavexc_cli_path, test_runtime_folder)?.exit();
}

fn get_pavex_cli_path() -> Result<PathBuf, Box<dyn std::error::Error>> {
Expand Down
Loading