tasty-lua-0.1.1: Write tests in Lua, integrate into tasty.

Copyright© 2019 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert+hslua@zeitkraut.de>
Stabilityalpha
PortabilityRequires TemplateHaskell
Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Lua

Contents

Description

Convert Lua test results into a tasty test trees.

Synopsis

Lua module

pushModule :: Lua NumResults Source #

Push the Aeson module on the Lua stack.

Running tests

testFileWith :: FilePath -> (forall a. Lua a -> IO a) -> TestTree Source #

Run the given file as a single test. It is possible to use `tasty.lua` in the script. This test collects and summarizes all errors, but shows generally no information on the successful tests.

testsFromFile :: FilePath -> Lua TestTree Source #

Run tasty.lua tests from the given file.

Helpers

pathFailure :: FilePath -> String -> TestTree Source #

Report failure of testing a path.