Add bats tests for 8 remaining modules: demo, harden, ma_detect, monitor, report, selfupdate, status, vpn

This commit is contained in:
2026-06-20 14:05:17 -03:00
parent 008c7c5128
commit 1e63f819bd
8 changed files with 134 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bats
setup() {
load '../lib/colors.sh'
load '../lib/ma_detect.sh'
}
@test "detect_migration_assistant exits cleanly" {
run detect_migration_assistant 2>/dev/null || true
[ "$status" -eq 0 ]
}
@test "clean_ma_artifacts does not error without users" {
run clean_ma_artifacts 2>/dev/null || true
[ "$status" -eq 0 ]
}