Skip to content

Commit 2f3212d

Browse files
authored
Merge pull request #65 from wvankuipers/feature/codeclimate
Version 1.1.1
2 parents 12c0045 + 7d72ef7 commit 2f3212d

File tree

5 files changed

+58
-19
lines changed

5 files changed

+58
-19
lines changed

.codeclimate.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
engines:
2+
eslint:
3+
enabled: true
4+
channel: "eslint-3"
5+
6+
exclude_paths:
7+
- "demo-app/"
8+
9+
ratings:
10+
paths:
11+
- "src/**/*"
12+
- "test/**/*"
13+
- "wdio.conf.js"

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ addons:
1515
- ubuntu-toolchain-r-test
1616
packages:
1717
- g++-4.8
18+
code_climate:
19+
repo_token: b087813d4296a775b39b1465f365d52e6e8f62c6ee3150392345b0911bd186ee
1820

1921
branches:
2022
only:
2123
- master
2224

2325
script: "npm run-script test"
26+
27+
after_success:
28+
- npm install -g codeclimate-test-reporter
29+
- CODECLIMATE_REPO_TOKEN=b087813d4296a775b39b1465f365d52e6e8f62c6ee3150392345b0911bd186ee codeclimate-test-reporter < coverage/lcov.info

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [1.1.1] - 2017-03-03
4+
### Added
5+
- Requirements section to the readme
6+
7+
### Changed
8+
- Dependency monitor switched from David to VersionEye
9+
- Updated the readme to change the badges & fix the main heading
10+
- Updated dependencies
11+
12+
### Fixed
13+
- CodeClimate integration & test-coverage
14+
- Missing cucumber dependency (problem when installing using Yarn as the peerdependency of the wdio-cucumber-framework is not installed)
15+
16+
317
## [1.1.0] - 2017-01-14
418
### Added
519
- Changelog

README.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
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)
1+
# Cucumber Boilerplate
2+
3+
[![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)
24

35
====================
46

57
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.
68

7-
# Quick start
9+
## Requirements
10+
11+
- Node version 4 or higher
12+
13+
## Quick start
814

915
Choose one of the following options:
1016

11-
1. Download the latest stable release [here](https://github.com/webdriverio/cucumber-boilerplate/archive/master.zip) or
12-
2. Clone the git repo — `git clone https://github.com/webdriverio/cucumber-boilerplate.git`
17+
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`
1318

14-
Then:
15-
- Copy the files to your project into a directory like `/integrationtests`
19+
2. Then:
20+
- Copy the files to your project into a directory like `/integrationtests` (note the hidden files!)
1621

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

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

25-
- Install the dependencies
31+
4. Install the dependencies (`npm install` or `yarn install`)
2632

2733
Now you are ready to write your own features.
2834

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "cucumber-boilerplate",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Boilerplate project to run WebdriverIO tests with Cucumber",
55
"homepage": "https://github.com/webdriverio/cucumber-boilerplate",
6-
"main": "test/runner.js",
76
"scripts": {
8-
"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",
7+
"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",
98
"local-webserver": "http-server ./demo-app -s",
109
"test": "npm run test:validate && npm run test:unit && npm run test:features",
1110
"test:features": "npm run-script local-webserver & (wdio wdio.BUILD.conf.js; wdio_ret=$?; kill $(lsof -t -i:8080); exit $wdio_ret)",
@@ -28,22 +27,23 @@
2827
"author": "Christian Bromann <[email protected]>",
2928
"license": "MIT",
3029
"dependencies": {
31-
"babel-preset-es2015": "~6.18.0",
32-
"babel-register": "~6.18.0",
30+
"babel-preset-es2015": "~6.22.0",
31+
"babel-register": "~6.23.0",
3332
"chai": "~3.5.0",
34-
"cucumber": "^1.3.1",
33+
"cucumber": "~1.3.1",
3534
"wdio-cucumber-framework": "~0.2.15",
3635
"wdio-phantomjs-service": "~0.2.2",
37-
"wdio-selenium-standalone-service": "~0.0.7",
36+
"wdio-selenium-standalone-service": "~0.0.8",
3837
"wdio-spec-reporter": "~0.0.5",
3938
"webdriverio": "~4.6.1"
4039
},
4140
"devDependencies": {
42-
"babel-jest": "~18.0.0",
43-
"babel-polyfill": "~6.20.0",
44-
"eslint": "~3.13.1",
45-
"eslint-config-airbnb-base": "~11.0.1",
41+
"babel-jest": "~19.0.0",
42+
"babel-polyfill": "~6.23.0",
43+
"eslint": "~3.16.1",
44+
"eslint-config-airbnb-base": "~11.1.0",
45+
"eslint-plugin-import": "~2.2.0",
4646
"http-server": "~0.9.0",
47-
"jest": "~18.1.0"
47+
"jest": "~19.0.2"
4848
}
4949
}

0 commit comments

Comments
 (0)