Crate scrut

Source

Modules§

config
debug
diff
escaping
executors
This module is concerned with the execution of shell expressions from crate::testcase::TestCases. The output of such executions are stored in crate::output::Output structures, that capture the STDOUT, STDERR and exit code.
expectation
generators
This module is concerned with generating Markdown or Cram syntax, that is used in creating or updating test files.
newline
This module provides convenient handlers for handling common newline relating operations, like assuring that strings do end (or do not end) in a newline. Also, since Scrut deals with raw byte output of scripts, that may not even be unicode, the whole shabang is implemented for byte arrays as well.
outcome
output
parsers
This module is concerned with parsing test files and extracting crate::testcase::TestCases from them. Part of the parsing is also the rejection of invalid formatted test files.
renderers
This module is concerned with rendering the [outcome::Outcome] of test executions.
rules
signal
testcase

Macros§

bformatln
Like the format with an added new line character and in raw bytes
blines
debug_bytewise
formatln
Like the format with an added new line character
lossy_string
Convenience wrapper for String::from_utf8_lossy