Gradle Exercise 4: Run the Tests Which Have the Tag A and Don’t Have the Tag B

This exercise helps you to understand how you can configure Gradle to run only the tests which have the tag A and don’t have the tag B. You can finish this exercise by following these steps:

1. Configure Gradle to run the tests have the tag: ‘unitTest’ and don’t have the tag: ‘apiTest’.

2. Run your tests with Gradle and ensure that only the serviceTest() method of the TodoItemServiceTest class is run.