-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: add tests for utility functions for upsert env & truncate strings #161
base: main
Are you sure you want to change the base?
Conversation
Will need to fix the lint issues, and then also add a new Make target that runs go test but excludes the |
33b1432
to
8c3bde5
Compare
@zachaller I dont know my way around this codebase well, can you show me an example of that, I know gingko does that BDD style of tests |
8c3bde5
to
2b36d8b
Compare
@zachaller ive updated the func name & created the make target, before adding it to CI, I want to decide on what to name the make target, do you have any suggestions? |
go-unit-test for the make target I think makes sense |
@zachaller its ready for review |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #161 +/- ##
===========================================
- Coverage 55.10% 37.45% -17.66%
===========================================
Files 10 17 +7
Lines 1263 1917 +654
===========================================
+ Hits 696 718 +22
- Misses 479 1111 +632
Partials 88 88 ☔ View full report in Codecov by Sentry. |
7fa62a6
to
2abd1e7
Compare
2abd1e7
to
f771974
Compare
The coverage is still broken need to merge reports not sure how because ginkgo doesn't seem to support the new go binary format |
I wonder if you could do two uploads under different codecov tags, or whatever they call them. |
hm... I would have to look into that guessing its more than just https://github.com/argoproj-labs/gitops-promoter/pull/161/files#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133ddR53 |
Signed-off-by: zhaque44 <[email protected]>
Signed-off-by: zhaque44 <[email protected]>
Signed-off-by: zhaque44 <[email protected]>
Signed-off-by: zhaque44 <[email protected]>
Signed-off-by: zhaque44 <[email protected]>
Signed-off-by: zhaque44 <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
f771974
to
d8efd5c
Compare
This PR adds unit tests for the utils pkg functions:
TruncateString and UpsertEnvironmentStatus