-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Codecov Report
@@ Coverage Diff @@
## main #11 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 129 126 -3
=========================================
- Hits 129 126 -3
Continue to review full report at Codecov.
|
I don't understand why the "test msg" is being committed to the actual repo ... Noticed it yesterday: https://github.com/dwyl/gitea/commits/main But didn't think anything of it ... thought you were just testing something. 🤷♂️ |
re #11 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a few comments, let me know what you think 👍
If I run the tests with I get the following: Finished in 12.1 seconds (12.1s async, 0.00s sync)
3 doctests, 29 tests, 5 failures
Randomized with seed 276120
----------------
COV FILE LINES RELEVANT MISSED
100.0% lib/git_mock.ex 55 7 0
72.9% lib/gitea.ex 244 48 13
100.0% lib/helpers.ex 133 14 0
100.0% lib/http.ex 135 24 0
96.2% lib/httpoison_mock.ex 164 26 1
[TOTAL] 88.2%
----------------
Generating report...
Saved to: cover/
FAILED: Expected minimum coverage of 100%, got 88.2%. |
I added a test in #13 which is now on Finished in 21.1 seconds (21.1s async, 0.00s sync)
6 doctests, 30 tests, 0 failures
Randomized with seed 456290
----------------
COV FILE LINES RELEVANT MISSED
100.0% lib/git_mock.ex 55 7 0
100.0% lib/gitea.ex 244 48 0
100.0% lib/helpers.ex 153 16 0
100.0% lib/http.ex 135 24 0
100.0% lib/httpoison_mock.ex 164 26 0
[TOTAL] 100.0%
----------------
Generating report...
Saved to: cover/ ✅ |
Getting this annoying error in the [error] ERROR: GITEA_SSH_PORT Environment Variable is not set until this PR is merged ... ⏳ Fixing the failing test. 🧑💻 |
Tests fixed. Test commits still being added to the parent repo. @SimonLab please review when you're back from lunch. 🙏 |
The IO.inspects are in the tests. they are noisy for now but aren't exported to the actual module. We can remove them later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running tests work (mock true and false) on a fresh clone of Gitea.
The only question I have is linked to the Gitea.commit
function using git add . -f
I've run the tests without the flag -f
and it seems to work.
@SimonLab review comments addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning the port related code
Package published to https://hex.pm/packages/gitea/1.0.3 📦 🚀 |
@SimonLab please have a look when you can. thanks.