Skip to content

Development test git #474

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

Merged
merged 19 commits into from
Nov 24, 2020
Merged

Development test git #474

merged 19 commits into from
Nov 24, 2020

Conversation

mhost39
Copy link
Contributor

@mhost39 mhost39 commented Oct 15, 2020

Description

Test coverage for Git client

Related Issues

#472

Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scenarios need to be covered.

  • Setting a remote url and check that the git config has been changed to the new url, and also from the property (remote_url).
  • Commit changes with add_all=False.

@codecov-io
Copy link

codecov-io commented Oct 15, 2020

Codecov Report

Merging #474 (9c2e59e) into development (696447f) will increase coverage by 0.39%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #474      +/-   ##
===============================================
+ Coverage        68.31%   68.71%   +0.39%     
===============================================
  Files               83       85       +2     
  Lines             3895     3941      +46     
===============================================
+ Hits              2661     2708      +47     
+ Misses            1234     1233       -1     
Impacted Files Coverage Δ
jumpscale/clients/git/git.py 90.47% <100.00%> (ø)
jumpscale/clients/git/__init__.py 75.00% <0.00%> (ø)
jumpscale/tools/startupcmd/startupcmd.py 87.01% <0.00%> (+1.29%) ⬆️
jumpscale/servers/gedis/server.py 64.39% <0.00%> (+2.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 696447f...9c2e59e. Read the comment docs.

Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please don't forget the pre-commit installation, and setting remote url scenario.

@@ -15,5 +16,8 @@ def tearDown(self):
def generate_random_text():
return j.data.idgenerator.chars(10)

def random_name(self):
return j.data.idgenerator.nfromchoices(10, string.ascii_letters)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be replaced by

Suggested change
return j.data.idgenerator.nfromchoices(10, string.ascii_letters)
return j.data.idgenerator.chars(10)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some names invalid like name start with number

image

Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the typo CI

@AhmedHanafy725 AhmedHanafy725 merged commit 5128c37 into development Nov 24, 2020
@AhmedHanafy725 AhmedHanafy725 deleted the development_test_git branch November 24, 2020 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants