1
0
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:
Tw93
2025-11-19 09:49:28 +08:00
parent f8f9d7db7d
commit c018504e5f
4 changed files with 188 additions and 1 deletions

View File

@@ -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
}