Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create unit test cases for the cli-rs #25

Open
bepro-bot opened this issue May 31, 2023 · 1 comment
Open

Create unit test cases for the cli-rs #25

bepro-bot opened this issue May 31, 2023 · 1 comment
Labels

Comments

@bepro-bot
Copy link
Collaborator

The cli-rs do not count with unit testing, so it is required to write tests that can be run with the cargo test command and that test behaviors at the command line. These should be exhaustive, meaning they should test for all the commands and options combinations and provide an acceptable coverage level, i.e., around 80% of the code in the src folder.

@sgoia
Copy link

sgoia commented Sep 20, 2023

Hello, I am interested in this task but have some questions still not clear to me how to do it.
Is it possible to have a better idea about how many tests we are looking for? I was adviced to ask here on github since I might have a wrong idea about what's to be done. It would be good to know what type of testing we are doing, this is CLI commands testing, for example say we have a typical subcommand with 2 arguments and values for a subcommand "--address 'ADDRESS'
--key 'KEY' ", how many combinations and testing values are we doing, how "exhaustive" so to speak, depending on this the reward might be too low for the task.
I would appreciate if someone could offer support on this issue. Thank you.

@Karkunow Karkunow reopened this Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants