From f04036b6ebe99650c689c8e5e200b74a32ce0ff1 Mon Sep 17 00:00:00 2001 From: Abeeujah Date: Wed, 4 Dec 2024 14:55:12 +0100 Subject: [PATCH] test: Unit test Scarb-API Artifacts Module --- .github/workflows/ci.yml | 2 +- crates/scarb-api/src/artifacts.rs | 120 ++++++++++++++++++ .../scarb-api/src/artifacts/representation.rs | 4 +- 3 files changed, 123 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d10c834bc..2fa3adc816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,7 +141,7 @@ jobs: - run: | cargo test --package forge --features scarb_2_8_3 e2e::features - run: | - cargo test --package scarb-api --features scarb_2_8_3 get_starknet_artifacts_path + cargo test --package scarb-api --features scarb_2_8_3 test-forge-runner: name: Test Forge Runner diff --git a/crates/scarb-api/src/artifacts.rs b/crates/scarb-api/src/artifacts.rs index 75632b56d2..68d984036a 100644 --- a/crates/scarb-api/src/artifacts.rs +++ b/crates/scarb-api/src/artifacts.rs @@ -92,3 +92,123 @@ fn compile_artifact_at_path(path: &Utf8Path) -> Result