go-github icon indicating copy to clipboard operation
go-github copied to clipboard

add tests for resource JSON marshalling

Open willnorris opened this issue 10 years ago • 34 comments

see 5f1c20afed08516e098c13fd0a94a74be0d573c3 for more details

willnorris avatar Sep 05 '13 16:09 willnorris

Hi @willnorris I would like to take this up. I will start with projects_test.go will make a PR soon.

palash25 avatar Dec 30 '18 13:12 palash25

This can be labeled a good-first-issue since beginners can work on writing test for different resources at the same time.

palash25 avatar Dec 30 '18 13:12 palash25

@palash25 @gmlewis I would like to work on what is left further. Also, I'm not familiar with the code-base. It would be great if you could guide me on resolving this issue :+1:

jamesgeorge007 avatar Jan 25 '19 15:01 jamesgeorge007

Hi @jamesgeorge007! Thank you for your interest in helping out.

First, you will want to read our CONTRIBUTING.md guide.

Second, you will want to get familiar with the code by reading through it and trying it out.

Then, I suggest following the link to the original issue where it is explained what is needed in more detail.

Thanks again, and I look forward to seeing PRs from you.

gmlewis avatar Jan 25 '19 16:01 gmlewis

@jamesgeorge007 hi :wave: just take a look at my commit referenced here and you will get the idea how to write the JSON test for different resources. Once it is clear just pick a resource that hasn't been covered by the tests and write a unit test for it :smile:

palash25 avatar Jan 25 '19 16:01 palash25

@palash25 As mentioned above I'm not familiar with the code-base. It would be great if you could suggest on what test case is to be written specifically. Thank you

jamesgeorge007 avatar Jan 25 '19 16:01 jamesgeorge007

As mentioned above I'm not familiar with the code-base.

I have mentioned how to get familiar with the codebase. It would be great if you could re-read my previous comment, and the referenced issues and the PRs. :smile: and then follow the steps accordingly

palash25 avatar Jan 25 '19 17:01 palash25

@jamesgeorge007 Are you working on this issue? I would like to work on it 😅 I would love to start with pulls_comments_test.go

vaibhavsingh97 avatar Feb 26 '19 05:02 vaibhavsingh97

@vaibhavsingh97 I think there are multiple resources that need the JSON marhsalling test so if you start with pulls_comments_test.go I don't think there will be any problem since other contributors can pick up the left out resources. :+1:

palash25 avatar Feb 26 '19 07:02 palash25

@gmlewis we can close this one

wesleimp avatar Dec 05 '19 13:12 wesleimp

I believe this is a long-running issue that is gradually being worked on by volunteers to add tests for resource JSON marshaling... so let's please keep this one open.

gmlewis avatar Dec 05 '19 13:12 gmlewis

Sure, no problems

wesleimp avatar Dec 05 '19 13:12 wesleimp

I was thinking of adding some more tests for this issue as a way to get familiar with the repo and start contributing. Would it be helpful to go down the list of public types from the godocs and start adding tests for any types that don't already have marshaling tests built?

ajz01 avatar Mar 15 '20 15:03 ajz01

Sounds great, @ajz01 - thank you! Please make sure to read our CONTRIBUTING.md guide to help you get started. Also, this issue links a number of PRs that you can use as examples.

gmlewis avatar Mar 15 '20 18:03 gmlewis

I am planing to add some more test cases to get familiar with this repo and to get started

vaibhavsanap avatar Apr 11 '20 11:04 vaibhavsanap

I would assume that while the goal is to add JSON marshal tests for all types having String() method, this issue is kept open to serve as an entry point for first-time contributors? Otherwise I can probably add more tests.

ronaudinho avatar Aug 15 '20 14:08 ronaudinho

hi I am a beginner I want to contribute to the code base So can anyone guide me where should I start or is there any small pr's so I can contribute

mahigadamsetty avatar Mar 20 '21 16:03 mahigadamsetty

Hi and welcome, @mahigadamsetty ! Yes, please start by reading our contributing guide: https://github.com/google/go-github/blob/master/CONTRIBUTING.md

gmlewis avatar Mar 20 '21 23:03 gmlewis

Hi @gmlewis, I am planning to contribute more to this issue. Is that ok if I raise multiple PRs for this issue consisting of small fixes? Since small fixes will not block me for days and I can raise them frequently.

sagar23sj avatar Jun 21 '21 10:06 sagar23sj

Hi @gmlewis, I am planning to contribute more to this issue. Is that ok if I raise multiple PRs for this issue consisting of small fixes? Since small fixes will not block me for days and I can raise them frequently.

Absolutely, @sagar23sj ! That's totally fine.

gmlewis avatar Jun 21 '21 11:06 gmlewis

Hi @gmlewis, I am planning to contribute more to this issue. Is that ok if I raise multiple PRs for this issue consisting of small fixes? Since small fixes will not block me for days and I can raise them frequently.

Absolutely, @sagar23sj ! That's totally fine.

Thanks @gmlewis.

sagar23sj avatar Jun 21 '21 11:06 sagar23sj

Hi @gmlewis, I hope me raising a lot of PRs for this particular issue won't bother you much. Whenever I get some time I pick a particular file and try to write test cases for JSON resources and raise PR.

Thanks

sagar23sj avatar Jun 22 '21 09:06 sagar23sj

Hi @gmlewis, I hope me raising a lot of PRs for this particular issue won't bother you much.

No bother at all, @sagar23sj ! Thank you for your contributions, and keep up the great work!

gmlewis avatar Jun 22 '21 11:06 gmlewis

Hi, here is my contribution:

Add test for JSON marshalling for Teams #1941

emiscode avatar Jul 07 '21 11:07 emiscode

To avoid repetition of test-cases, I would like to inform that I have covered all the files starting from github/actions.go till github/enterprise_audit_log.go and most of the JSON resources from github/event_types.go file.

sagar23sj avatar Jul 08 '21 16:07 sagar23sj

Update: All JSON Resources Covered starting from github/actions.go till github/examples_test.go

sagar23sj avatar Jul 12 '21 07:07 sagar23sj

Update: All JSON Resources Covered starting from github/actions.go till github/messages.go

sagar23sj avatar Jul 12 '21 14:07 sagar23sj

Update: All JSON Resources Covered starting from github/actions.go till github/repos_deployments.go

sagar23sj avatar Jul 17 '21 19:07 sagar23sj

Hey @gmlewis, I am helping fellow Go developers get started with the open-source. This being a great good first issue to get started with, I have asked them to check this out.

Since Hacktoberfest is also going on and many of us are participating in the event, so if possible could you please accept the contributions to this issue by tagging PR with the label hacktoberfest-accepted.

or you can also add the hacktoberfest topic to the repository to opt the project into Hacktoberfest.

This way contributions to go-github can be accepted under Hactoberfest

Thanks

sagar23sj avatar Oct 22 '21 07:10 sagar23sj

I added the labels... But for the next two days I will not be available for code reviews... Hopefully by Monday I will be able to pick up again with the reviews.

gmlewis avatar Oct 23 '21 16:10 gmlewis