From 449e81157d4179b3aecd7f7a86e0af087a736a1e 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 | 103 ++++++++++++++++++ .../scarb-api/src/artifacts/representation.rs | 4 +- 3 files changed, 106 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..c495bc038f 100644 --- a/crates/scarb-api/src/artifacts.rs +++ b/crates/scarb-api/src/artifacts.rs @@ -92,3 +92,106 @@ fn compile_artifact_at_path(path: &Utf8Path) -> Result