SYNTAX

    ciftest [options] [<command>]


OPTIONS

-h (--help) bool

Display help.

-v (--verbose) bool

Print information about every test even when they succeed. By default only failures are printed. Also causes a summary to be printed at the end. Scripts can also print extra information themselves if this flag is set, by checking for the Verbose environment variable.

-k (--keep-going) bool

Rather than stop on the first failure, attempt to run all tests even if some of them fail. Only relevant if no command argument is given.


ARGUMENTS

[<command>]

If specified, run the tests associated with the specified command. If not specified, run tests for all commands. [string]


DESCRIPTION

Run fshell command smoke tests.

This command runs smoke-tests for any or all commands that define a ==smoke-test section in their CIF file. A ==smoke-test section defines a short snippet of fshell script which tests the basic functionality offered by the command. It can be as simple as running the command with no arguments to make sure nothing catastrophic is wrong, or it can be a more in-depth test of all the command's functionality, or anything in between.

Example CIF file that supports ciftest:

    ==name mycmd
    
    [...]
    
    ==smoke-test
    
    mycmd | export -s RESULT
    var RESULT == "Expected results of running mycmd" || $Error

The following environment variables are defined for convenience when ciftest runs a smoke-test section:

The environment used for running the smoke-test snippets is not shared between commands, so do not set things in one smoketest script and expect to be able to see them in another. (Ie the snippets are run as if with "fshell" not "source").


COPYRIGHT

Copyright (c) 2010 Accenture. All rights reserved.