Skip to content

Commit

Permalink
add tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Jul 1, 2024
1 parent a1373a5 commit f288796
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .scaffold/tests/bats/ahoy.bats
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ export BATS_FIXTURE_EXPORT_CODEBASE_ENABLED=1
assert_output_contains "ENVIRONMENT STOPPED"
}

@test "ahoy provision" {
run ahoy assemble
run ahoy start
run ahoy provision
assert_success
assert_output_contains "PROVISION COMPLETE"
assert_output_not_contains "Do you really want to drop all tables in the database"
run ahoy provision
assert_success
assert_output_contains "PROVISION COMPLETE"
assert_output_contains "Do you really want to drop all tables in the database"
}

@test "ahoy build - basic workflow" {
run ahoy build
assert_success
Expand Down
13 changes: 13 additions & 0 deletions .scaffold/tests/bats/make.bats
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ export BATS_FIXTURE_EXPORT_CODEBASE_ENABLED=1
assert_output_contains "ENVIRONMENT STOPPED"
}

@test "make provision" {
run make assemble
run make start
run make provision
assert_success
assert_output_contains "PROVISION COMPLETE"
assert_output_not_contains "Do you really want to drop all tables in the database"
run make provision
assert_success
assert_output_contains "PROVISION COMPLETE"
assert_output_contains "Do you really want to drop all tables in the database"
}

@test "make build - basic workflow" {
run make build
assert_success
Expand Down

0 comments on commit f288796

Please sign in to comment.