-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled "cabal test" support and other Cabal fixes.
Running "cabal check" no longer complains of anything. Running "cabal haddock" reports 100% coverage.
- Loading branch information
Showing
6 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ html/ | |
*.hi | ||
*.o | ||
*.tix | ||
Suite | ||
CabalTest | ||
ConsoleTest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{- | ||
- The driver file for running the tests via "cabal test". This is slightly | ||
- different to how we might run them from the command line, since suppressing | ||
- ANSI output is forced in this case (otherwise the log file is completely | ||
- messed up). | ||
-} | ||
|
||
module Main (main) where | ||
|
||
import Data.Monoid (mempty) | ||
import Test.Framework | ||
|
||
import ChessTools.Test.Suite (tests) | ||
|
||
|
||
main :: IO () | ||
main = defaultMainWithOpts tests options | ||
where options = (mempty :: RunnerOptions) {ropt_plain_output = Just True} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{- | ||
- Driver file for running tests at a command line prompt. This is the standard | ||
- pass-through to the test-framework package. | ||
- | ||
- Refer to CabalTest.hs for the setup used when running "cabal test". | ||
-} | ||
|
||
module Main (main) where | ||
|
||
import Test.Framework (defaultMain) | ||
import ChessTools.Test.Suite (tests) | ||
|
||
main :: IO () | ||
main = defaultMain tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters