This article applies to running tasty tests, but you can use it for other cabal packages as well.
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
Open file mode, and click "Add File". Create a new Test File
In your Test File, add the following two commands:
echo "main" | ghci <MyTests>.hs