cli-testing-specialist 1.0.10

Comprehensive testing framework for CLI tools - automated analysis, test generation, and security validation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
@test "[${TEST_MODULE}] subcommand '${SUBCOMMAND}' has help" {
    run "${CLI_BINARY}" ${SUBCOMMAND} --help
    [ "\$status" -eq 0 ]
    [ -n "\$output" ]
}

@test "[${TEST_MODULE}] subcommand '${SUBCOMMAND}' help contains usage information" {
    run "${CLI_BINARY}" ${SUBCOMMAND} --help
    [ "\$status" -eq 0 ]
    # Check for common help patterns
    echo "\$output" | grep -qiE "(usage|options|commands|examples)" || \
    echo "\$output" | grep -qE "^[[:space:]]+-"  # Option flags
}