- data Codegen : Type
A choice of a codegen
Totality: total
Constructors:
- Nothing : Codegen
Do NOT pass a cg argument to the executable being tested
- Default : Codegen
Use whatever the test runner was passed at the toplevel,
and if nothing was passed guess a sensible default using findCG
- Just : Requirement -> Codegen
Use exactly the given requirement
- record Options : Type
Options for the test driver.
Totality: total
Constructor: - MkOptions : String -> Maybe String -> List String -> Bool -> Bool -> Bool -> Nat -> Maybe String -> Options
Projections:
- .codegen : Options -> Maybe String
Which codegen should we use?
- .color : Options -> Bool
Should we use colors?
- .exeUnderTest : Options -> String
Name of the idris2 executable
- .failureFile : Options -> Maybe String
Should we write the list of failing cases to a file?
- .interactive : Options -> Bool
Should we run the test suite interactively?
- .onlyNames : Options -> List String
Should we only run some specific cases?
- .threads : Options -> Nat
How many threads should we use?
- .timing : Options -> Bool
Should we time and display the tests
- data Requirement : Type
Some test may involve Idris' backends and have requirements.
We define here the ones supported by Idris
Totality: total
Constructors:
- C : Requirement
- Chez : Requirement
- Node : Requirement
- Racket : Requirement
- Gambit : Requirement
- record Summary : Type
The summary of a test pool run
Totality: total
Constructor: - MkSummary : List String -> List String -> Summary
Projections:
- .failure : Summary -> List String
- .success : Summary -> List String
- record TestPool : Type
A test pool is characterised by
+ a name
+ a list of requirement
+ a choice of codegen (overriding the default)
+ and a list of directory paths
Totality: total
Constructor: - MkTestPool : String -> List Requirement -> Codegen -> List String -> TestPool
Projections:
- .codegen : TestPool -> Codegen
- .constraints : TestPool -> List Requirement
- .poolName : TestPool -> String
- .testCases : TestPool -> List String
- checkRequirement : Requirement -> IO (Maybe String)
-
- fail : String -> IO a
-
- filterTests : Options -> List String -> List String
Only keep the tests that have been asked for
- findCG : IO (Maybe String)
-
- initOptions : String -> Bool -> Options
-
- initSummary : Summary
-
- options : List String -> IO (Maybe Options)
Process the command line options.
- pathLookup : List String -> IO (Maybe String)
Find the first occurrence of an executable on `PATH`.
- poolRunner : Options -> TestPool -> IO Summary
A runner for a test pool
- runTest : Options -> String -> IO (Future Result)
Run the specified Golden test with the supplied options.
See the module documentation for more information.
@testPath the directory that contains the test.
- runner : List TestPool -> IO ()
A runner for a whole test suite
- testsInDir : String -> (String -> Bool) -> String -> List Requirement -> Codegen -> IO TestPool
Find all the test in the given directory.
- toList : Codegen -> List Requirement
-
- updateSummary : List Result -> Summary -> Summary
-
- usage : String
-