CapOfCave / CapOfCave/Lichess4J
Add end-to-end tests
- Dominant language
- Java
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
For each method from the public API, there should be one test case:
- Mock the HTTP request, returning data from a json file that was copyed from the official api docs. (For file reading, the existing `FileReaderUtil` can be used.)
- call the method that should be tested
- verify that the result equals the result returned from the relevant TestProvider
Contributor guide
Research direction
Start by listing the methods exposed by the public API and reviewing the existing TestProvider and FileReaderUtil. For each method, mock its HTTP request with JSON copied from the official API documentation, call the method, and compare the result with the relevant TestProvider result. Done means every public API method has one passing test case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100