Skip to content

Commit

Permalink
add tests to main earthfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 committed Dec 14, 2023
1 parent b3fce40 commit 74ca8fc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
7 changes: 4 additions & 3 deletions catalyst-gateway/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -95,5 +96,5 @@ local-ci-run:
BUILD +check
BUILD +build
# BUILD +package
# BUILD +test
BUILD +test
# BUILD +publish
8 changes: 8 additions & 0 deletions catalyst-gateway/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name = "tests"
version = "0.1.0"
edition = "2021"
publish = false
authors = [
"Stefano Cunego <[email protected]>"
]
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]

Expand Down
4 changes: 2 additions & 2 deletions catalyst-gateway/tests/end2end/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
pub fn end2end(){
pub fn end2end() {
assert!(true);
}
}
4 changes: 2 additions & 2 deletions catalyst-gateway/tests/integration/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
pub fn integration(){
pub fn integration() {
assert!(true);
}
}
4 changes: 2 additions & 2 deletions catalyst-gateway/tests/non_functional/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[test]
pub fn non_functional(){
pub fn non_functional() {
assert!(true);
}
}

0 comments on commit 74ca8fc

Please sign in to comment.