Copyright | © 2019-2023 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <tarleb@hslua.org> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Core types and functions for tasty Lua tests.
Synopsis
- runTastyFile :: LuaError e => FilePath -> LuaE e (Either String [ResultTree])
- data ResultTree = ResultTree TestName UnnamedTree
- data Outcome
- data UnnamedTree
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
, with the important difference that
all tests have already been run, and all test results are known.TestTree
data UnnamedTree Source #
Either a raw test outcome, or a nested
.Tree