tasty-travis alternatives and similar packages
Based on the "tasty" category.
Alternatively, view tasty-travis alternatives based on common mentions on social networks and blogs.
-
tasty-ant-xml
A tasty ingredient to output test results in XML, using the Ant schema. This XML can be consumed by the Jenkins continuous integration framework. -
tasty-test-reporter
An ingredient for tasty that prints a summary and outputs junit xml that works with jenkins.
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of tasty-travis or a related project?
README
Tasty Travis: Fancy Travis CI output for tasty tests
Tasty Travis provides fancy Tasty test output on Travis CI.
It allows you get coloured test output, folding and collapsing groups of tests, and hiding the output of successful tests.
Example
Here's what an example test.hs
might look:
import Data.List
import Data.Ord
import Data.Tagged (Tagged)
import Data.Typeable (Typeable)
import Options.Applicative (switch, long, help)
import Test.Tasty
import Test.Tasty.Options
import Test.Tasty.Travis (travisTestReporter, defaultConfig)
import Test.Tasty.HUnit
newtype EnableTravis = EnableTravis Bool
deriving (Eq, Ord, Typeable)
instance IsOption EnableTravis where
defaultValue = EnableTravis False
parseValue = fmap EnableTravis . safeRead
optionName = return "enable-travis"
optionHelp = return "Run Travis tests."
optionCLParser =
fmap EnableTravis $
switch
( long (untag (optionName :: Tagged EnableTravis String))
<> help (untag (optionHelp :: Tagged EnableTravis String))
)
main = travisTestReporter cfg [] tests
where
cfg = defaultConfig { travisTestOptions = setOption (EnableTravis True) }
tests :: TestTree
tests = testGroup "Unit tests"
[ testCase "List comparison (different length)" $
[1, 2, 3] `compare` [1,2] @?= GT
-- the following test does not hold
, testCase "List comparison (same length)" $
[1, 2, 3] `compare` [1,2,2] @?= LT
, askOption $ \(EnableTravis enable) ->
if enable then travisTests else testGroup "" []
]
travisTests :: TestTree
travisTests = testGroup "Travis" [ {- Travis tests here -} ]
*Note that all licence references and agreements mentioned in the tasty-travis README section above
are relevant to that project's source code only.