Go-github: add tests for resource JSON marshalling

Created on 5 Sep 2013  路  16Comments  路  Source: google/go-github

see 5f1c20afed08516e098c13fd0a94a74be0d573c3 for more details

enhancement good first issue

All 16 comments

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

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

@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:

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.

@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 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

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

@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 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:

@gmlewis we can close this one

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.

Sure, no problems

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?

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.

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

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.

Was this page helpful?
0 / 5 - 0 ratings