I'm looking for both advice on best practices as well as how to implement this.
We have to types of tests, ones that have dependencies mocked out using Mockito (Unit tests, because they're testing on unit of code), and do soup-to-nuts (RESTful Resource -> Database, call them integration tests).
The Integration tests are booting a new JVM and are populating an H2 database, so they take a bit longer to run.
Ideally, we'd want the Unit tests to run when you give the command gradle test
, but if you were to do a deployment we'd want the integration tests to run as well.
Anyway, I'm curious what people have done to much sure integration tests run before deployment, or if they've solved this another way. Thanks!
Aucun commentaire:
Enregistrer un commentaire