Bare minimum framework for testing
commitefd42c386b3d69a2cda2a106ddd3b4f9abdbac73
authorEvan Czaplicki <info@elm-lang.org>
dateWed 14 Aug 2013, 17:41 (13 years ago)
parent7c19935
Elm.cabal+1−1
@@ -168,4 +168,4 @@ Test-Suite test-elm
168168 Type: exitcode-stdio-1.0
169169 Hs-Source-Dirs: tests
170170 Main-is: Main.hs
171− build-depends: base
171+ build-depends: base, HTF
tests/Main.hs+6−4
@@ -1,7 +1,9 @@
11module Main where
22
3−import System.Exit
3+import Test.Framework
4+import Test.Framework.BlackBoxTest
45
5−main = do
6− putStrLn "This test always fails"
7− exitFailure
6+main :: IO ()
7+main = htfMain tests
8+
9+tests = blackBoxTests "tests/good" "dist/build/elm/elm" ".elm" defaultBBTArgs