Sha256: 8c13e33cefc4804a46f124cc95696b77d3a36f2f71952e2f43dd29499956b264

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

## Screen Tests

In addition to standard RSpec tests, WhirledPeas has custom tests for rendered templates. These files live in `screen_test/`. Each ruby file is expected to define a class named `TemplateFactory` that responds to `#build(name, args)` returning a template (the standard template factory role). Each file should also be accompanied by a `.frame` file with the same base name. This file will contain the output of the rendered screen and is considered the correct output when running tests.

Note: viewing `.frame` files with `cat` works better than most other text editors.

```

Usage: screen_test [file] [options]

If not file or options are provide, all tests are run

If no file is provided, the supported options are
    --help             print this usage statement and exit
    --view-pending     interactively display and optionally save rendered output for each pending test
    --view-failed      interactively display and optionally save rendered output for each faiing test

If a screen test file is provided as the first argument, the supported options are
    --run        run screen test for given file
    --view       interactively display and optionally save the file's test output
    --template   print out template tree for the test template
    --debug      render the test template without displying it, printing out debug information
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whirled_peas-0.12.0 doc/screen_test.md
whirled_peas-0.11.1 doc/screen_test.md