Skip to content

Commit

Permalink
Added section for IDE support
Browse files Browse the repository at this point in the history
  • Loading branch information
JaNd3r authored Jul 21, 2021
1 parent 7d6284e commit b36445b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
![](Images/swift-behave.png)

Behaviour-driven testing framework on top of the Xcode UI Tests that allows to define acceptance tests using a natural language that all team members understand.
Behaviour-driven testing framework on top of the Xcode UI Tests that allows you to define acceptance tests using a natural language that all team members understand.

**Given** you have a lot of test cases created with [JBehave](http://www.jbehave.org)
**When** you want to use these test cases with Xcode UI Tests
**Given** you have test scenarios written in natural language
**When** you want to execute these test scenarios with Xcode UI Tests
**Then** you should give _swift-behave_ a try

_swift-behave_ was inspired by [JBehave](http://www.jbehave.org).

## Usage

For now, *swift-behave* is used by simply dropping the following files into your UITests folder.
Expand Down Expand Up @@ -61,6 +63,10 @@ This will build the app and test target, execute the tests and produce the follo

![](Images/swift-behave_output.png)

## IDE Support

Unfortunately Appple has cut down the possibilities that custom Xcode plugins can offer to a minimum. That is the reason why there will be no Xcode editor plugin for _swift-behave_ anytime soon. As an alternative I can recommend using [BBEdit](https://www.barebones.com/products/bbedit/) which is also available for free. Copy the file `Resources/Gherkin.plist` to `~/Library/Application Support/BBEdit/Language Modules/` to have syntax highlighting for `.story` files in BBEdit, which improves readability a lot.

## Roadmap

### Done
Expand Down

0 comments on commit b36445b

Please sign in to comment.