Skip to content

Commit

Permalink
simpler insta setup
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Aug 16, 2024
1 parent c6c350b commit 7332e18
Show file tree
Hide file tree
Showing 16 changed files with 480 additions and 615 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
run: |
fuel-core run --db-type in-memory --debug &
sleep 5 &&
CI=true cargo run --locked --release --bin test -- --locked --release
CI=true cargo run --locked --release -p e2e_tests -- --locked --release
cargo-run-e2e-test-evm:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ forc-plugins/forc-debug/tests/**/Forc.lock
# Generated files in example directories
examples/**/*/Forc.lock
docs/reference/src/code/examples/**/*/Forc.lock

# Insta files
*.snap.new
77 changes: 39 additions & 38 deletions Cargo.lock

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

11 changes: 6 additions & 5 deletions test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "e2e_tests"
name = "test"
version = "0.0.0"
publish = false
authors.workspace = true
Expand All @@ -19,7 +19,10 @@ forc-tracing = { path = "../forc-tracing" }
fuel-vm = { workspace = true, features = ["random"] }
futures = "0.3.24"
gag = "1.0"
glob = "0.3.1"
hex = "0.4.3"
insta = "1.39.0"
libtest-mimic = "0.7.3"
miden = "0.3.0"
prettydiff = "0.6"
rand = "0.8"
Expand All @@ -36,10 +39,8 @@ tokio = { version = "1.12", features = ["full"] }
toml = { version = "0.7", features = ["parse"] }
tracing = "0.1"
vte = "0.13.0"
insta = "1.39.0"
libtest-mimic = "0.7.3"

[[test]]
name = "fuel_snapshot_release"
path = "test/e2e_tests.rs"
name = "tests"
path = "tests/tests.rs"
harness = false
2 changes: 1 addition & 1 deletion test/src/e2e_vm_tests/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ pub(crate) async fn compile_to_bytes(file_name: &str, run_config: &RunConfig) ->
match std::panic::catch_unwind(|| forc_pkg::build_with_options(&build_opts)) {
Ok(result) => {
// Print the result of the compilation (i.e., any errors Forc produces).
if let Err(ref e) = &result {
if let Err(ref e) = result {
println!("\n{e}");
}
result
Expand Down
Loading

0 comments on commit 7332e18

Please sign in to comment.