Include features/ in the list of directories counting as tests

This commit is contained in:
Joshua Clayton 2016-05-11 11:30:31 -04:00
parent 19b72c123f
commit 5b69d45caf

View File

@ -88,7 +88,7 @@ testOccurrences ms =
totalOccurrences = sum $ map tmOccurrences testMatches
testDir :: String -> Bool
testDir = matchRegex "(spec|tests?)\\/"
testDir = matchRegex "(spec|tests?|features)\\/"
testSnakeCaseFilename :: String -> Bool
testSnakeCaseFilename = matchRegex ".*(_spec|_test)\\."