Open asafka opened 7 years ago
Thanks for oferring help. Our cli (command-line interface) tool, vsm-cli, can run commands (take a the files under at cli/cmd). We don't have automated tests that test those commands. One needs to come up with a framework for testing the CLI commands and tests for each specific command.
Cool. I am a Golang newbie and don't have much industrial experience. I may need your help. Is there a way that We can discuss it by some other means ?
Sure, I'll contact you through email.
@asafka I have joined https://vmwarecode.slack.com. We can discuss there.
@asafka I have started work on issue.
Any suggestion for test file location ? I have couple of them.
typically they go next to the file you're writing a test for
source: cli/cmd/main.go test: cli/cmd/main_test.go
@casualjim Ok. I'll add test according your suggestion. @asafka : By Automated CLI tests do you mean test that call cli executable from Go code and check correct output ?
@asafka I have created pull request but it fails for coverage. What changes does it require to pass test ?
@asafka Can you please provide more detail ?