Git Product home page Git Product logo

serenityjs-cucumber-protractor-standalone's Introduction

SerenityJS - CucumberJS - Protractor

Standalone testing suite with JavaScript

CircleCI

Basic boilerplate for testing using SerenityJS, CucumberJS and Protractor.

The sample test checks the google's search feature.

Usage

Requirements

  • nodejs (tested with v8.1.2)
  • npm (tested with v5.0.3)
  • chrome browser (tested with Version 61.0.3163.100 (Official Build) (64-bit))

Setup

git clone https://github.com/SpiralOutDotEu/SerenityJS-Cucumber-Protractor-StandAlone.git
cd SerenityJS-Cucumber-Protractor-StandAlone
npm install

Run

Run the complete workflow. This will execute necessary updates, fail-safe the whole procedure, tslint your code, run the tests, create a report and open it with your browser. It will take some time during the first run because it updates Serenity-CLI jar and the web-driver:

npm run test

Run only the lint checks and tests without creating reports:

npm run e2e

Add tests

Create a folder for your feature under features folder. Add your .feature file and the corresponding steps under a step_definitions folder

+-- features
|    +--my_feauture
|    |  |--my_feature.feature
|    |  +--step_definitions
|    |  |   |--my_feauture.steps.ts
|    +--another_feauture
|    |  |--another_feature.feature
|    |  +--step_definitions
|    |  |   |--another_feauture.steps.ts

serenityjs-cucumber-protractor-standalone's People

Contributors

spiraloutdoteu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

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.