vault icon indicating copy to clipboard operation
vault copied to clipboard

Increasing code coverage

Open abhisharma404 opened this issue 5 years ago • 6 comments

We need to increase our code coverage, for initial we can start off by writing test cases for the following two simple functions :

  1. check_url(url: str) in vault.py
  2. check_ip(ip: str) in vault.py

abhisharma404 avatar Dec 17 '18 17:12 abhisharma404

I would like to work on this. I've already done a simple test for the check_url(str) in a new branch "testing-vault.py" in the repository I forked.

FrancescoPenasa avatar Dec 30 '18 02:12 FrancescoPenasa

@FrancescoPenasa Sure. Go ahead :)

abhisharma404 avatar Dec 30 '18 06:12 abhisharma404

@abhisharma404 I want to do this one .

sap143 avatar Dec 11 '19 04:12 sap143

@sap143 Sure. Go ahead

mzfr avatar Dec 11 '19 04:12 mzfr

I am not getting what exactly I have to do .please guide me

sap143 avatar Dec 11 '19 17:12 sap143

@sap143 you can just google that. Increasing code coverage means writing test for code. Ex: https://developer.ibm.com/recipes/tutorials/testing-and-code-coverage-with-python/

This is just one example you can find more online.

mzfr avatar Dec 11 '19 18:12 mzfr