Edvinas01 / meme-grid

A grid for memes
MIT License
9 stars 9 forks source link

Setup API tests #18

Closed Edvinas01 closed 4 years ago

Edvinas01 commented 6 years ago

There are 4 REST endpoints in total, they should be covered by tests to ensure API contract. These tests should only validate the response format and if input is correctly read by the routes/controllers. The logic behind these routes should not be tested and should be mocked. If its impossible to mock something (for example the class is not open and doesn't implement an interface) then the code can be changed as well.

Personally I'm not familiar with testing libraries for Kotlin and would go with JUnit4 + AssertJ, though any other library can be used if its suitable and looks nice.

mscibilia commented 4 years ago

I'll have a go at this one

Edvinas01 commented 4 years ago

Closed via #39