Skip to content

Commit

Permalink
add bats test
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Nov 6, 2023
1 parent 61c375b commit 58801ca
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/print/tests/basic.bats
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
}

0 comments on commit 58801ca

Please sign in to comment.