Copyright | © 2019 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <albert+hslua@zeitkraut.de> |
Stability | alpha |
Portability | not portable, requires GHC or later |
Safe Haskell | None |
Language | Haskell2010 |
Core types and functions for tasty Lua tests.
Synopsis
- runTastyFile :: FilePath -> Lua (Either String [ResultTree])
- data ResultTree = ResultTree TestName UnnamedTree
- data Outcome
- data UnnamedTree
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
, with the important difference that
all tests have already been run, and all test results are known.TestTree
Instances
Peekable ResultTree Source # | |
Defined in Test.Tasty.Lua.Core peek :: StackIndex -> Lua ResultTree # |
Test outcome
Instances
Peekable Outcome Source # | |
Defined in Test.Tasty.Lua.Core peek :: StackIndex -> Lua Outcome # |
data UnnamedTree Source #
Either a raw test outcome, or a nested
.Tree
Instances
Peekable UnnamedTree Source # | |
Defined in Test.Tasty.Lua.Core peek :: StackIndex -> Lua UnnamedTree # |