Sha256: 30ffe31a4834223fd7f6f23c1bd7c27428c1681e57bf4007d3ec394161e6d488

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

# Overview

RSpec All Scenario Testing

This library runs on top of RSpec to provide basically a parameterized unit testing pattern. It follows a specific pattern of writing unit tests, enabling a predictable, complete and easy to analyze report result.


## Definition of terms

`spec` - as defined in the yaml file, the individual elements under `specs`
`scenario` - a specific combination of tokens from vars, it can uniquely identify a fixture.
`fixture` - instance of a spec, containing a scenario, reference back to the spec, and the expected result for the given scenario.
`variables` - raw list of variables to be combined into multiple fixtures.
`rule` - set of outcome paired with rule clause.
`exemption/exclusions` - rule defining variable combinations to be excluded from the test.
`outcome` - the left portion of a rule e.g. `true: true&true`
`clause` - the right portion of a rule
`token` - used loosely to denote the individual variable in a rule. e.g. `true: you & me`, 'you' and 'me' are tokens.


##

When running the tests, the execution starts at the spec file, then invoking the
DSL. The DSL will then invoke the parameter generator to generate the scenarios.

## Adding new features

- Increment the .gemspec
- Modify the CHANGELOG.md

## Releasing GEM

Build gem with `gem build rast.gemspec`
Publish with `gem push <gem-filename>`

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rast-0.18.0 README.md
rast-0.15.1 README.md