Skip to content

Commit 74ca8fc

Browse files
committed
add tests to main earthfile
1 parent b3fce40 commit 74ca8fc

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

catalyst-gateway/Earthfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ build:
8181
# FROM scratch
8282

8383
# Run integration tests on all packages built during the `package` step.
84-
# test:
85-
# FROM scratch
84+
test:
85+
FROM scratch
86+
BUILD ./tests+test-integration
8687

8788
# Publish packages if all integration tests have passed. (Failure to pass tests will prevent packages being published.)
8889
# publish:
@@ -95,5 +96,5 @@ local-ci-run:
9596
BUILD +check
9697
BUILD +build
9798
# BUILD +package
98-
# BUILD +test
99+
BUILD +test
99100
# BUILD +publish

catalyst-gateway/tests/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ name = "tests"
33
version = "0.1.0"
44
edition = "2021"
55
publish = false
6+
authors = [
7+
"Stefano Cunego <[email protected]>"
8+
]
9+
rust-version = "1.73"
10+
homepage = "https://input-output-hk.github.io/catalyst-voices"
11+
repository = "https://github.com/input-output-hk/catalyst-voices"
12+
license = "MIT OR Apache-2.0"
13+
614

715
[dev-dependencies]
816

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#[test]
2-
pub fn end2end(){
2+
pub fn end2end() {
33
assert!(true);
4-
}
4+
}
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#[test]
2-
pub fn integration(){
2+
pub fn integration() {
33
assert!(true);
4-
}
4+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#[test]
2-
pub fn non_functional(){
2+
pub fn non_functional() {
33
assert!(true);
4-
}
4+
}

0 commit comments

Comments
 (0)