The coverage task performs directory expansion to discover test files, allowing consumers to include a directory in their test configuration. However, when a file is explicitly included in the unitTests or integrationTests set, it should be run regardless of whether or not it matches the test file pattern.