File tree Expand file tree Collapse file tree 7 files changed +38
-0
lines changed
test/integration/tests/no-rerun-tests Expand file tree Collapse file tree 7 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ Bug fixes:
3030 this bug, you will likely need to delete the binary build cache
3131 associated with the relevant custom snapshot. See
3232 [ #3714 ] ( https://github.com/commercialhaskell/stack/issues/3714 ) .
33+ * ` --no-rerun-tests ` has been fixed. Previously, after running a test
34+ we were forgetting to record the result, which meant that all tests
35+ always ran even if they had already passed before. See
36+ [ #3770 ] ( https://github.com/commercialhaskell/stack/pull/3770 ) .
3337
3438## v1.6.3
3539
Original file line number Diff line number Diff line change @@ -1735,6 +1735,8 @@ singleTest runInBase topts testsToRun ac ee task installedMap = do
17351735 (fmap fst mlogFile)
17361736 bs
17371737
1738+ setTestSuccess pkgDir
1739+
17381740-- | Implements running a package's benchmarks.
17391741singleBench :: HasEnvConfig env
17401742 => (RIO env () -> IO () )
Original file line number Diff line number Diff line change 1+ import StackTest
2+ import System.Directory
3+ import Control.Monad
4+
5+ main :: IO ()
6+ main = do
7+ stack [" test" ]
8+ exists1 <- doesFileExist " foo"
9+ unless exists1 $ error " exists1 should be True"
10+ removeFile " foo"
11+ stack [" test" , " --no-rerun-tests" ]
12+ exists2 <- doesFileExist " foo"
13+ when exists2 $ error " exists2 should be False"
Original file line number Diff line number Diff line change 1+ .stack-work /
2+ files.cabal
3+ * ~
4+ foo
Original file line number Diff line number Diff line change 1+ name : files
2+
3+ dependencies :
4+ - base >= 4.7 && < 5
5+
6+ library :
7+ source-dirs : src
8+
9+ tests :
10+ test :
11+ main : Spec.hs
12+ source-dirs : test
Original file line number Diff line number Diff line change 1+ resolver : ghc-8.2.2
Original file line number Diff line number Diff line change 1+ main :: IO ()
2+ main = writeFile " foo" " "
You can’t perform that action at this time.
0 commit comments