jeudi 17 octobre 2019

Gradle: run test only when specific parameter is given

I want to run a specific unit test only when I am doing a PR build. During this build I can pass a parameter eg. 'buildType' to specify that it is a PR build.

The test should never run if the buildType isn't explicitly PR build.

How could I achieve such behaviour?

Do I create separate task that I can configure this way somehow. Or do I even create another module?

Aucun commentaire:

Enregistrer un commentaire