Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is internal! Use at your own risk. Breaking changes to this module will not necessarily be reflected in PVP versions.
Synopsis
- withGithubActionFormatter :: Formatter -> Formatter
- data ErrorCommand = ErrorCommand {}
- errorCommandFor :: Path -> Item -> Maybe Location -> FailureReason -> ErrorCommand
- formatErrorCommand :: ErrorCommand -> String
- escapeData :: String -> String
- escapeProperty :: String -> String
- emitGithubActionAnnotation :: Path -> Item -> FormatM ()
Documentation
withGithubActionFormatter :: Formatter -> Formatter Source #
This option enhances a given Formatter
with annotations that will
show up on the correct test item failure. This allows you to use the
test output you want, and additionally get Github Action annotations.
data ErrorCommand Source #
A representation of the Github Actions error format.
errorCommandFor :: Path -> Item -> Maybe Location -> FailureReason -> ErrorCommand Source #
Make a suitable error annotation from an hspec failure.
Not clear what to do with the Maybe Location here: do we use the one from the Item, or this one? What if both or neither are available? Also not clear whether to use itemInfo.
formatErrorCommand :: ErrorCommand -> String Source #
The github actions command format.
escapeData :: String -> String Source #
escapeProperty :: String -> String Source #