mercredi 29 juillet 2015

How are you supposed to unit test a Spring REST API

I have written a REST API that communicates with a MongoDB to retrieve user information from it. Now, I have actually written integration tests in JUNIT using REST-Assured and the rest API as well as MongoDB are functioning together as expected.

I had overlooked the part of actual unit testing. Now, I am supposed to run a maven build which also automates the test process.

It seems like I have to skip the mvn test phase of the build and execute my tests in the mvn integration-test phase correct?

Aucun commentaire:

Enregistrer un commentaire