Skip to main content
Haskell: Tasty

How to run Haskell Tasty tests in the codePost environment

Vinay avatar
Written by Vinay
Updated over 4 years ago

This article applies to running tasty tests, but you can use it for other cabal packages as well. 

Setup:

Environment: 

  • Language: Other

  • Build Type: Custom - Ubuntu

  • Packages: apt-get -y install ghc; apt-get -y install cabal-install; cabal update; cabal install tasty; cabal install tasty-hunit

  • Run Script: None

  • Helper Files: Upload your Tasty test scripts as helper files

Tests:

  1. Open file mode, and click "Add File". Create a new Test File

  2. In your Test File, add the following two commands:

echo "main" | ghci <MyTests>.hs

Settings:

Did this answer your question?