Skip to content
Snippets Groups Projects
Commit 0bb31625 authored by BasLaa's avatar BasLaa Committed by Mergify
Browse files

Add test: RTS warning

parent cbc8c996
No related branches found
No related tags found
No related merge requests found
main = putStrLn "Hello World"
\ No newline at end of file
name: WarningRTS
version: 1.0
build-type: Simple
cabal-version: >= 1.10
executable foo
main-is: Main.hs
build-depends: base
default-language: Haskell2010
library
exposed-modules: Main
default-language: Haskell2010
packages: .
import Test.Cabal.Prelude
main = cabalTest $ do
-- your test code here
res <- cabal' "run" ["+RTS"]
assertOutputContains "Warning" res
res <- cabal' "run" [ "+RTS", "--"]
assertOutputContains "Warning" res
res <- cabal' "run" [ "--", "+RTS"]
assertOutputDoesNotContain "Warning" res
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment