Get a context by its label.
Modulesandwich-0.3.1.0Haskell2010
Test.Sandwich.Contexts
Functions for retrieving context information from within tests.
- 9 values
- Packagesandwich-0.3.1.0
- Exports9
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceContexts.hs
Try to get a context by its label. If not is in scope, returns Nothing.
Get the root folder of the on-disk test tree for the current run. Will be Nothing if the run isn't configured to use the disk.
Get the on-disk folder corresponding to the current node. Will be Nothing if the run isn't configured to use the disk, or if the current node is configured not to create a folder.
getCommandLineOptions :: (HasCommandLineOptions context a, MonadReader context m) => m (CommandLineOptions a)Get the command line options, if configured.
Using the runSandwichWithCommandLineArgs family of main functions will introduce these, or you can
introduce them manually.
getSomeCommandLineOptions :: (HasSomeCommandLineOptions context, MonadReader context m) => m SomeCommandLineOptionsGet existentially wrapped command line options, if configured.
Using the runSandwichWithCommandLineArgs family of main functions will introduce these, or you can
introduce them manually.
Get the user command line options, if configured. This just calls getCommandLineOptions and pulls out the user options.
Low-level context management helpers
2 declarationsPush a label to the context.
Remove a label from the context.