Skip to content

Commit 0b9fb4b

Browse files
committed
Add more ahoy test.
1 parent 2ad0950 commit 0b9fb4b

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

.scaffold/tests/bats/ahoy.bats

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,49 @@ load _helper
44

55
export BATS_FIXTURE_EXPORT_CODEBASE_ENABLED=1
66

7-
@test "ahoy build" {
7+
@test "ahoy assemble" {
8+
run ahoy assemble
9+
assert_success
10+
11+
assert_output_contains "ASSEMBLE COMPLETE"
12+
assert_dir_exists "${BUILD_DIR}/build/vendor"
13+
assert_file_exists "${BUILD_DIR}/build/composer.json"
14+
assert_file_exists "${BUILD_DIR}/build/composer.lock"
15+
16+
ahoy reset
17+
}
18+
19+
@test "ahoy start" {
20+
ahoy start
21+
assert_failure
22+
23+
ahoy assemble
24+
run ahoy start
25+
assert_success
26+
27+
assert_output_contains "ENVIRONMENT READY"
28+
29+
run ahoy reset
30+
}
31+
32+
@test "ahoy stop" {
33+
run ahoy stop
34+
assert_success
35+
assert_output_contains "ENVIRONMENT STOPPED"
36+
37+
ahoy assemble
38+
ahoy start
39+
40+
run ahoy stop
41+
assert_success
42+
43+
assert_output_contains "ENVIRONMENT STOPPED"
44+
45+
run ahoy reset
46+
}
47+
48+
49+
@test "ahoy build - basic workflow" {
850
run ahoy build
951
assert_success
1052
assert_output_contains "PROVISION COMPLETE"

0 commit comments

Comments
 (0)