README.md 1.45 KB
Newer Older
Dan Jones's avatar
Dan Jones committed
1 2
# backbone-adapter-testsuite

3 4 5 6 7 8 9 10 11 12 13 14 15
Gherkin feature definitions and fixtures to run against all language ports of the backbone-adapter. 

## Contents 

### /features 

Gherkin `.feature` files describing a suite of tests which 
should be run against all language ports of the adapter 

### /fixtures

A set of fixtures to be used to configure the tests.

16
## Implementations 
17 18 19 20

You can see existing implementations of the test suite here 

- [JS-Cucumber](https://git.noc.ac.uk/communications-backbone-system/backbone-adapter-javascript) 
21 22 23 24 25 26 27
Step definitions are in `test/cucumber`

## Installing

The intention is to install a tagged version of the testsuite into each adapter so that if we develop 
the testsuite existing adapter implementations won't break. 

28 29
In JS the target tag/branch/commit is specified with # after the git url

30 31 32 33 34 35 36 37 38 39 40 41 42 43
### NPM 

```bash
npm install --saveDev git+https://git.noc.ac.uk/communications-backbone-system/backbone-adapter-testsuite.git#[tag|branch|commit]
```

### Yarn 

```bash
yarn add --dev git+https://git.noc.ac.uk/communications-backbone-system/backbone-adapter-testsuite.git#[tag|branch|commit]
```

### PIP 

44 45
In pip the target tag/branch/commit is specified with @ after the git url

46 47 48 49 50 51 52
```bash
echo
"git+https://git.noc.ac.uk/communications-backbone-system/backbone-adapter-testsuite.git@[tag|branch|commit]#egg=backbone-adapter-testsuite" >> requirements.txt 
pip install -r reqiurements.txt
# copy features and fixtures into test directory
copy_tests
```