Dinesh Bhat created KUDU-1862: --------------------------------- Summary: Add a ToolTest to test all the action help strings Key: KUDU-1862 URL: https://issues.apache.org/jira/browse/KUDU-1862 Project: Kudu Issue Type: Improvement Reporter: Dinesh Bhat Priority: Minor
We want a test to cover the help string displayed by actions of cli tools. For example: {noformat} TEST_F(ToolTest, TestActionHelp) { const vector<string> kFormatActionRegexes = { "-fs_wal_dir \\(Directory", "-fs_data_dirs \\(Comma-separated list", "-uuid \\(The uuid" }; NO_FATALS(RunTestHelp("fs format --help", kFormatActionRegexes)); NO_FATALS(RunTestHelp("fs format extra_arg", kFormatActionRegexes, Status::InvalidArgument("too many arguments: 'extra_arg'"))); } {noformat} which is testing "kudu fs format" command's action help string. We need a test/method to test all the action help strings. We could make this more generic for future additions too. -- This message was sent by Atlassian JIRA (v6.3.15#6346)