Run JUnit tests filtered by tags and classes
Preconditions (2)
Step 1: Identify test classes with @Tag("fast") and @Tag("database")
Step 2: Configure the test runner to include only tests tagged with "fast"
Step 3: Run the tests
Step 4: Verify only tests with the "fast" tag are executed
Step 5: Configure the test runner to include tests from a specific test class named "UserServiceTest"
Step 6: Run the tests
Step 7: Verify only tests from the UserServiceTest class are executed
✅ Expected Result: When filtering by tag "fast", only tests with that tag run and pass. When filtering by class UserServiceTest, only tests from that class run and pass.