Git Product home page Git Product logo

gherkin-ts-runner's Introduction

How to install

Go to PhpStorm/WebStorm then Settings->Plugins->Browser repositories... search for Gherkin TS Runner and just install it.
Second way is to downlaod and install it manually by Install plugin from disk.... Jar file you can get from JetBrains Plugins Repository.

Setup

Plugin require to fill every setting in settings to work. Settings Feature Regex
This regular expressions is used to find lines where Feature start in file with feature extension and then mark it.
Eg. Feature:([a-zA-Z ]+)$

Scenario Regex
This regular expressions is used to find lines where Scenario start in file with feature extension and then mark it.
Eg. Scenario:([a-zA-Z ]+)$

Protractor cmd path
This is path to protractor.cmd file which is usually located in \node_modules.bin\protractor.cmd.

Protractor js config path
This is path to protractor config file with js extension. If you are using typescript this path must be setted to file after transpile(js).

Features dir path
This is path to directory which contains feature files.

Usage

At the beginning of file there is a icon which will execute whole Feature.
In every line that match regex for Scenario is icon which will execute only single scenario. Preview

Output of executing is in Gherkin Runner tab which contains bookmarks like Run1, Run2 etc. Output

In the end it will run protractor in command line like:
protractor full_path_to_protractor_config_js --specs=full_path_to_feature_file(when running certain scenario it will add line when it starts like ":12")

gherkin-ts-runner's People

Contributors

kariio avatar

Stargazers

Rajab Natshah avatar

Watchers

Rajab Natshah avatar  avatar

gherkin-ts-runner's Issues

Enable GoLand / IntelliJ Ultimate support

Hi,

It would be great if you could enable GoLand and IntelliJ IDEA Ultimate support for this plugin.
GoLand is for Go what PhpStorm is for PHP as for IntelliJ IDEA Ultimate, it would contain all the functionality of the other IDEs.
I suspect that PyCharm Pro / RubyMine can also use this plugin, but I'm not sure.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.