openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

Added test cases for code coverage

Open reichie020212 opened this issue 1 year ago • 3 comments

Added test cases

reichie020212 avatar Aug 29 '24 06:08 reichie020212

Quality Gate Failed Quality Gate failed

Failed conditions
7.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Sep 09 '24 06:09 sonarqubecloud[bot]

Codecov Report

Attention: Patch coverage is 98.30247% with 11 lines in your changes missing coverage. Please review.

Project coverage is 76.25%. Comparing base (ca5926e) to head (b8987af). Report is 41 commits behind head on 17.0.

Files with missing lines Patch % Lines
spp_mis_demo/tests/test_generate_program.py 50.00% 4 Missing :warning:
..._change_request_add_farmer/tests/test_create_cr.py 97.46% 1 Missing and 1 partial :warning:
...change_request_change_info/tests/test_create_cr.py 95.00% 1 Missing and 1 partial :warning:
...r_registry_demo/tests/test_generate_farmer_data.py 66.66% 2 Missing :warning:
spp_starter/tests/test_spp_starter.py 91.66% 0 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             17.0     #554      +/-   ##
==========================================
+ Coverage   72.73%   76.25%   +3.52%     
==========================================
  Files         667      687      +20     
  Lines       17259    17777     +518     
  Branches     2195     2205      +10     
==========================================
+ Hits        12553    13556    +1003     
+ Misses       4305     3773     -532     
- Partials      401      448      +47     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Sep 09 '24 06:09 codecov[bot]

Quality Gate Failed Quality Gate failed

Failed conditions
22.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Oct 11 '24 15:10 sonarqubecloud[bot]

Quality Gate Failed Quality Gate failed

Failed conditions
19.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

sonarqubecloud[bot] avatar Dec 02 '24 11:12 sonarqubecloud[bot]