From 74ca8fcced88d6031774903c00c58937ab33392a Mon Sep 17 00:00:00 2001 From: kukkok3 <93382903+kukkok3@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:19:15 +0100 Subject: [PATCH] add tests to main earthfile --- catalyst-gateway/Earthfile | 7 ++++--- catalyst-gateway/tests/Cargo.toml | 8 ++++++++ catalyst-gateway/tests/end2end/main.rs | 4 ++-- catalyst-gateway/tests/integration/main.rs | 4 ++-- catalyst-gateway/tests/non_functional/main.rs | 4 ++-- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/catalyst-gateway/Earthfile b/catalyst-gateway/Earthfile index 8143f722ec5..7c52808e6e7 100644 --- a/catalyst-gateway/Earthfile +++ b/catalyst-gateway/Earthfile @@ -81,8 +81,9 @@ build: # FROM scratch # Run integration tests on all packages built during the `package` step. -# test: -# FROM scratch +test: + FROM scratch + BUILD ./tests+test-integration # Publish packages if all integration tests have passed. (Failure to pass tests will prevent packages being published.) # publish: @@ -95,5 +96,5 @@ local-ci-run: BUILD +check BUILD +build # BUILD +package - # BUILD +test + BUILD +test # BUILD +publish diff --git a/catalyst-gateway/tests/Cargo.toml b/catalyst-gateway/tests/Cargo.toml index 161d25fce00..557c07e74d5 100644 --- a/catalyst-gateway/tests/Cargo.toml +++ b/catalyst-gateway/tests/Cargo.toml @@ -3,6 +3,14 @@ name = "tests" version = "0.1.0" edition = "2021" publish = false +authors = [ + "Stefano Cunego " +] +rust-version = "1.73" +homepage = "https://input-output-hk.github.io/catalyst-voices" +repository = "https://github.com/input-output-hk/catalyst-voices" +license = "MIT OR Apache-2.0" + [dev-dependencies] diff --git a/catalyst-gateway/tests/end2end/main.rs b/catalyst-gateway/tests/end2end/main.rs index 2a65fbf9117..ceb400ef134 100644 --- a/catalyst-gateway/tests/end2end/main.rs +++ b/catalyst-gateway/tests/end2end/main.rs @@ -1,4 +1,4 @@ #[test] -pub fn end2end(){ +pub fn end2end() { assert!(true); -} \ No newline at end of file +} diff --git a/catalyst-gateway/tests/integration/main.rs b/catalyst-gateway/tests/integration/main.rs index ba74bc47f56..51fade974da 100644 --- a/catalyst-gateway/tests/integration/main.rs +++ b/catalyst-gateway/tests/integration/main.rs @@ -1,4 +1,4 @@ #[test] -pub fn integration(){ +pub fn integration() { assert!(true); -} \ No newline at end of file +} diff --git a/catalyst-gateway/tests/non_functional/main.rs b/catalyst-gateway/tests/non_functional/main.rs index df453b129f8..a0970bce0ae 100644 --- a/catalyst-gateway/tests/non_functional/main.rs +++ b/catalyst-gateway/tests/non_functional/main.rs @@ -1,4 +1,4 @@ #[test] -pub fn non_functional(){ +pub fn non_functional() { assert!(true); -} \ No newline at end of file +}