Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programming exercises: Improve test build logs for Haskell exercises #9792

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/main/resources/templates/haskell/test/test/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import qualified Interface as Sub
import qualified Solution as Sol

import Test.Tasty
import Test.Tasty.Runners.AntXML
import Test.Tasty.Ingredients (composeReporters)
import Test.Tasty.Ingredients.Basic (consoleTestReporter)
import Test.Tasty.Runners.AntXML
import Test.SmallCheck.Series as SCS
import Test.Tasty.SmallCheck as SC
import Test.Tasty.QuickCheck as QC
Expand Down Expand Up @@ -69,12 +71,12 @@ main = do
testRunner $ localOption timeoutOption tests
where
resultsPath = "test-reports/results.xml"
#ifdef PROD
-- on the server (production mode), run tests with xml output
testRunner = defaultMainWithIngredients [antXMLRunner]
#ifdef PROD
-- on the server (production mode), run tests with additional xml output
testRunner = defaultMainWithIngredients [composeReporters antXMLRunner consoleTestReporter]
#else
-- locally, run tests with terminal output
testRunner = defaultMain
#endif
#endif
-- by default, run for 1 second
timeoutOption = mkTimeout (1 * 10^6)
Loading