mercredi 30 octobre 2019

Executing ArchUnit tests from a java library

I have a bunch of Java Dropwizard microservices which have a similar structure. My objective is to write a set of ArchUnit test cases which are required to be run in each service and the build should fail if these test cases fail.

Since the checks will be similar, is it possible that I extract out all the test cases in a common library and add it as a dependency in every service ? How to add test cases from a library to be run in the build of a service ?

Aucun commentaire:

Enregistrer un commentaire