Skip to content

Commit

Permalink
Merge pull request #65 from wvankuipers/feature/codeclimate
Browse files Browse the repository at this point in the history
Version 1.1.1
  • Loading branch information
wvankuipers committed Mar 3, 2017
2 parents 12c0045 + 7d72ef7 commit 2f3212d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 19 deletions.
13 changes: 13 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
engines:
eslint:
enabled: true
channel: "eslint-3"

exclude_paths:
- "demo-app/"

ratings:
paths:
- "src/**/*"
- "test/**/*"
- "wdio.conf.js"
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
code_climate:
repo_token: b087813d4296a775b39b1465f365d52e6e8f62c6ee3150392345b0911bd186ee

branches:
only:
- master

script: "npm run-script test"

after_success:
- npm install -g codeclimate-test-reporter
- CODECLIMATE_REPO_TOKEN=b087813d4296a775b39b1465f365d52e6e8f62c6ee3150392345b0911bd186ee codeclimate-test-reporter < coverage/lcov.info
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.1.1] - 2017-03-03
### Added
- Requirements section to the readme

### Changed
- Dependency monitor switched from David to VersionEye
- Updated the readme to change the badges & fix the main heading
- Updated dependencies

### Fixed
- CodeClimate integration & test-coverage
- Missing cucumber dependency (problem when installing using Yarn as the peerdependency of the wdio-cucumber-framework is not installed)


## [1.1.0] - 2017-01-14
### Added
- Changelog
Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
Cucumber Boilerplate [![Build Status](https://travis-ci.org/webdriverio/cucumber-boilerplate.svg?branch=master)](https://travis-ci.org/webdriverio/cucumber-boilerplate) [![Dependency Status](https://david-dm.org/webdriverio/cucumber-boilerplate.svg)](https://david-dm.org/webdriverio/cucumber-boilerplate) [![devDependency Status](https://david-dm.org/webdriverio/cucumber-boilerplate/dev-status.svg)](https://david-dm.org/webdriverio/cucumber-boilerplate/?type=dev) [![Code Climate](https://codeclimate.com/github/webdriverio/cucumber-boilerplate/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/cucumber-boilerplate) [![Test Coverage](https://codeclimate.com/github/webdriverio/cucumber-boilerplate/badges/coverage.svg)](https://codeclimate.com/github/webdriverio/cucumber-boilerplate/coverage)
# Cucumber Boilerplate

[![Build Status](https://travis-ci.org/webdriverio/cucumber-boilerplate.svg?branch=master)](https://travis-ci.org/webdriverio/cucumber-boilerplate) [![Dependency Status](https://www.versioneye.com/user/projects/58932d83b166b5004053c63c/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/58932d83b166b5004053c63c) [![Code Climate](https://codeclimate.com/github/webdriverio/cucumber-boilerplate/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/cucumber-boilerplate) [![Test Coverage](https://codeclimate.com/github/webdriverio/cucumber-boilerplate/badges/coverage.svg)](https://codeclimate.com/github/webdriverio/cucumber-boilerplate/coverage)

====================

Boilerplate project to run WebdriverIO tests with [Cucumber](https://cucumber.io/) and brings **true** [BDD](http://en.wikipedia.org/wiki/Behavior-driven_development) to JavaScript. Instead of writing complicated test code that only developers can understand, Cucumber maps an ordinary language to code and allows to start with the test process in the early stages of your product development.

# Quick start
## Requirements

- Node version 4 or higher

## Quick start

Choose one of the following options:

1. Download the latest stable release [here](https://github.com/webdriverio/cucumber-boilerplate/archive/master.zip) or
2. Clone the git repo — `git clone https://github.com/webdriverio/cucumber-boilerplate.git`
1. Download the latest stable release [here](https://github.com/webdriverio/cucumber-boilerplate/archive/master.zip) or clone the git repo — `git clone https://github.com/webdriverio/cucumber-boilerplate.git`

Then:
- Copy the files to your project into a directory like `/integrationtests`
2. Then:
- Copy the files to your project into a directory like `/integrationtests` (note the hidden files!)

3. Clean the project (Optional):
- *On OSX/Linux:*
-- Run `npm run clean`

Expand All @@ -22,7 +28,7 @@ Then:
-- Remove the files `.travis.yml`, `jest.json` & `wdio.BUILD.conf.js`
-- Remove all the demo features from the `/src/features` directory

- Install the dependencies
4. Install the dependencies (`npm install` or `yarn install`)

Now you are ready to write your own features.

Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "cucumber-boilerplate",
"version": "1.1.0",
"version": "1.1.1",
"description": "Boilerplate project to run WebdriverIO tests with Cucumber",
"homepage": "https://github.com/webdriverio/cucumber-boilerplate",
"main": "test/runner.js",
"scripts": {
"clean": "read -p \"Are you sure you want to clean the project? [y/n] \" -n 1 -r; if [[ $REPLY =~ ^[Yy]$ ]]; then sudo rm -R .git .github demo-app test .travis.yml jest.json wdio.BUILD.conf.js src/features/**; fi",
"clean": "read -p \"Are you sure you want to clean the project? [y/n] \" -n 1 -r; if [[ $REPLY =~ ^[Yy]$ ]]; then sudo rm -R .git .github demo-app test .codeclimate.yml .travis.yml jest.json wdio.BUILD.conf.js src/features/**; fi",
"local-webserver": "http-server ./demo-app -s",
"test": "npm run test:validate && npm run test:unit && npm run test:features",
"test:features": "npm run-script local-webserver & (wdio wdio.BUILD.conf.js; wdio_ret=$?; kill $(lsof -t -i:8080); exit $wdio_ret)",
Expand All @@ -28,22 +27,23 @@
"author": "Christian Bromann <christian@saucelabs.com>",
"license": "MIT",
"dependencies": {
"babel-preset-es2015": "~6.18.0",
"babel-register": "~6.18.0",
"babel-preset-es2015": "~6.22.0",
"babel-register": "~6.23.0",
"chai": "~3.5.0",
"cucumber": "^1.3.1",
"cucumber": "~1.3.1",
"wdio-cucumber-framework": "~0.2.15",
"wdio-phantomjs-service": "~0.2.2",
"wdio-selenium-standalone-service": "~0.0.7",
"wdio-selenium-standalone-service": "~0.0.8",
"wdio-spec-reporter": "~0.0.5",
"webdriverio": "~4.6.1"
},
"devDependencies": {
"babel-jest": "~18.0.0",
"babel-polyfill": "~6.20.0",
"eslint": "~3.13.1",
"eslint-config-airbnb-base": "~11.0.1",
"babel-jest": "~19.0.0",
"babel-polyfill": "~6.23.0",
"eslint": "~3.16.1",
"eslint-config-airbnb-base": "~11.1.0",
"eslint-plugin-import": "~2.2.0",
"http-server": "~0.9.0",
"jest": "~18.1.0"
"jest": "~19.0.2"
}
}

0 comments on commit 2f3212d

Please sign in to comment.