Skip to content

Commit 29094f0

Browse files
author
Zachary Forrest y Salazar
committed
Merge pull request #9 from zdfs/dev
Upgrade 0.2.0
2 parents a3a6f73 + 002000a commit 29094f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5623
-849
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 0.1.4
2+
- Initial release
3+
- Uses grunt-webdriver 0.5.2 (not 1.0.0)
4+
- Uses the webdriver.io 2 API
5+
6+
# 0.2.0
7+
- Uses grunt-datadriver 0.6.0 (forked from grunt-webdriver 0.5.2)
8+
- Uses webdriver.io 3 API
9+
- closeTab action has changed
10+
- switchTab action has changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
# Datadriver
22

3+
[![wercker status](https://app.wercker.com/status/8d74fd9ad078e24f10d5078a1b595387/s/master "wercker status")](https://app.wercker.com/project/bykey/8d74fd9ad078e24f10d5078a1b595387)
4+
35
Datadriver is a helper library, written on top of the [WebdriverIO](http://webdriver.io) API that allows you to use
4-
JavaScript data structures for driving your tests.
6+
JavaScript data structures for driving your tests.
7+
8+
## Unit Tests
9+
10+
You can run the unit tests by navigating to the root directory and executing this command:
11+
`./node_modules/.bin/tape tests/unit/*.js | ./node_modules/.bin/tap-spec`
12+
13+
## Integration Tests
14+
15+
You can run the integration tests by going to the root directory and executing this command:
16+
`grunt datadriver --url=http://datadriver.io`

gruntfile.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var gruntConfig = {
2+
datadriver: {
3+
options: {
4+
desiredCapabilities: {
5+
browserName: 'chrome',
6+
name: 'Documentation Tests',
7+
viewports: {
8+
small: {
9+
width: 430,
10+
height: 1000
11+
},
12+
medium: {
13+
width: 700,
14+
height: 1000
15+
},
16+
large: {
17+
width: 1280,
18+
height: 1000
19+
}
20+
}
21+
}
22+
},
23+
spec: {
24+
tests: ['tests/spec/**/*.js']
25+
}
26+
}
27+
};
28+
29+
module.exports = function(grunt) {
30+
grunt.initConfig(gruntConfig);
31+
grunt.loadNpmTasks('grunt-datadriver');
32+
};

0 commit comments

Comments
 (0)