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

Copyright© 2019–2020 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert+hslua@zeitkraut.de>
Stabilityalpha
Portabilitynot portable, requires GHC or later
Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Lua.Core

Description

Core types and functions for tasty Lua tests.

Synopsis

Documentation

runTastyFile :: FilePath -> Lua (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.

Instances
Peekable ResultTree Source # 
Instance details

Defined in Test.Tasty.Lua.Core

data Outcome Source #

Test outcome

Constructors

Success 
Failure String 
Instances
Peekable Outcome Source # 
Instance details

Defined in Test.Tasty.Lua.Core

Methods

peek :: StackIndex -> Lua Outcome #

data UnnamedTree Source #

Either a raw test outcome, or a nested Tree.

Instances
Peekable UnnamedTree Source # 
Instance details

Defined in Test.Tasty.Lua.Core