Documentation
¶
Overview ¶
Package exectest is os/exec package testing facilities.
The main goal of the package: declarative testing of any executable..
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute is the main testing facility of the package.
Function consists of the steps:
- [prepareScheme]: create directory, parse args and required stdout.
- execute given binary in the prepared conditions.
- assert results of the binary evaluation.
Examples:
--file:a.txt --file:.b.txt --arg:-a --stdout . .. .b.txt a.txt
This is a desciption of the command `ls -a` run in the directory with a.txt and .b.txt files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.