-
Notifications
You must be signed in to change notification settings - Fork 134
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
Improve repo test coverage in various Go packages #3390
Comments
Hey @richscott What i understand from test coverage is that- Suppose I have a file with 2 functions but one function is commented-
and i have a test file for it-
so when i run the command
The output is because the test covered all the statements but the condition in test file failed.. If i remove the comment from function in the file-
and then run the command
|
We can get a I can work on this issue @richscott |
@Bharadwajshivam28 You are exactly right. And if you run the command to generate html ( |
Yes i saw the process to generate html file also.. Thanks.... @richscott |
Hey @richscott Once the current PR for the |
This is simply a list of suggested Golang files and functions in the Armada source repo that currently have low or no test coverage, and would be helpful to write new or enhanced tests for these, to verify functionality. Not every entry in here needs to be addressed in a single pull request - we will close out this ticket and create new ones with a trimmed down list of the remaining entries as necessary. Note that some of the functions are private - it may be required to change their visibility to public, depending on if the test code has Go-package access to the tested function.
To run the unit-tests and verify coverage, if you have a copy of the Armada repository, do:
(The output in go-test-coverage.txt will be much longer and wider than the list below, which was edited for brevity, but you will be able to search for the exact function and its coverage amount.)
Note that you can also write the coverage statistics to a HTML file, and see a colorized view of each file, showing which exact lines were/were-not covered in a test, by doing
Run
go tool cover -h
for more information.The text was updated successfully, but these errors were encountered: