mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 16:49:41 +00:00
Add 43 test cases
This commit is contained in:
@@ -50,3 +50,18 @@ setup() {
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *"Touch ID"* ]]
|
||||
}
|
||||
|
||||
@test "mo optimize shows available optimization categories" {
|
||||
run env HOME="$HOME" "$PROJECT_ROOT/mole" optimize
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *"System"* ]] || [[ "$output" == *"optimization"* ]]
|
||||
}
|
||||
|
||||
@test "mo analyze validates binary exists" {
|
||||
if [[ -f "$PROJECT_ROOT/bin/analyze-go" ]]; then
|
||||
run env HOME="$HOME" "$PROJECT_ROOT/mole" analyze --help
|
||||
[ "$status" -eq 0 ]
|
||||
else
|
||||
skip "analyze-go binary not built"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user