This coding challenge will involve testing two unauthenticated endpoints on GitHub's public API that accept and return JSON. You will be using the Ginkgo Testing framework with the Gomega assertion library which is what we use here at Replicated Additionally, I've set up this challenge using other tools we use such as Docker and Makefiles. Please take your time and add up to 5 scenarios per endpoint. We realize there's potentially an infinite amount of edge case scenarios, so what we're really looking for is what you think would be the best scenarios to test.
Please fork and clone this GitHub repository, then submit a pull request back into it with your changes. Feel free to modify or add whatever you need including addition of other packages, your own libraries, etc. Please add to this README.md or create another one with a list and explanation of your test scenarios.
Install Docker
Run the tests:
make test
- Correctness: Do your tests compile and run? Do they actually make calls to the API and verify results?
- Code Quality: Is your code maintainable, easy to understand, and conducive for future reuse or expansion?
- Quality Focused: Does your choice of test case scenarios provide adequate, given the limits, confidence in the quality of the GitHub API endpoints tested?
- Communication: Are you able to defend why you picked your test case scenarios and explain what they do in your README and through other forms of communication?