Skip to content

Commit

Permalink
Merge pull request #1550 from DaveCTurner/issue-1550
Browse files Browse the repository at this point in the history
All test suites run even when only one is requested
  • Loading branch information
mgsloan committed Dec 21, 2015
2 parents a2d3778 + 7b18677 commit 189d677
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,14 @@ singleTest runInBase topts testsToRun ac ee task installedMap = do
hpcDir <- hpcDirFromDir pkgDir
when needHpc (createTree hpcDir)

errs <- liftM Map.unions $ forM (Map.toList (packageTests package)) $ \(testName, suiteInterface) -> do
let suitesToRun
= [ testSuitePair
| testSuitePair <- Map.toList $ packageTests package
, let testName = fst testSuitePair
, testName `elem` testsToRun
]

errs <- liftM Map.unions $ forM suitesToRun $ \(testName, suiteInterface) -> do
let stestName = T.unpack testName
(testName', isTestTypeLib) <-
case suiteInterface of
Expand Down

0 comments on commit 189d677

Please sign in to comment.