-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix * add bats test
- Loading branch information
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"src/print_rs", | ||
] | ||
members = ["src/print_rs"] | ||
|
||
[workspace.dependencies] | ||
ic-cdk = { path = "../../src/ic-cdk" } | ||
candid = "0.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Executed before each test. | ||
setup() { | ||
cd examples/print | ||
# Make sure the directory is clean. | ||
dfx start --clean --background | ||
} | ||
|
||
# executed after each test | ||
teardown() { | ||
dfx stop | ||
} | ||
|
||
@test "Can print" { | ||
dfx deploy | ||
|
||
dfx canister call print print | ||
} |