tasty-lua-1.1.1: Write tests in Lua, integrate into tasty.
Copyright© 2019-2024 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb@hslua.org>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Tasty.Lua.Core

Description

Core types and functions for tasty Lua tests.

Synopsis

Documentation

runTastyFile :: LuaError e => FilePath -> LuaE e (Either String [ResultTree]) Source #

Run a tasty Lua script from a file and return either the resulting test tree or the error message.

data ResultTree Source #

Tree of test results returned by tasty Lua scripts. This is similar to tasty's TestTree, with the important difference that all tests have already been run, and all test results are known.

data Outcome Source #

Test outcome

Constructors

Success 
Failure String 

data UnnamedTree Source #

Either a raw test outcome, or a nested Tree.