Skip to content

Commit

Permalink
e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity committed Aug 29, 2024
1 parent 9321fda commit a2fed5f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions e2e/tests-dfx/new.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ teardown() {
assert_command_fail dfx new 'a:b'
}

@test "dfx new --help shows possible backend template names" {
assert_command dfx new --help
assert_match "\[possible values.*motoko.*\]"
assert_match "\[possible values.*rust.*\]"
assert_match "\[possible values.*kybra.*\]"
assert_match "\[possible values.*azle.*\]"
}

@test "dfx new --type <bad type> shows possible values" {
assert_command_fail dfx new --type bad_type
assert_match "\[possible values.*motoko.*\]"
assert_match "\[possible values.*rust.*\]"
assert_match "\[possible values.*kybra.*\]"
assert_match "\[possible values.*azle.*\]"
}

@test "dfx new readmes contain appropriate links" {
assert_command dfx new --type rust e2e_rust --no-frontend
assert_command grep "https://docs.rs/ic-cdk" e2e_rust/README.md
Expand Down

0 comments on commit a2fed5f

Please sign in to comment.