You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,32 @@
2
2
3
3
> Automate CSS regression testing with PhantomCSS
4
4
5
+
## Notice
6
+
7
+
**This is a fork of the original (presumably discontinued) repository of [grunt-phantomcss](https://github.com/chrisgladd/grunt-phantomcss). Currently this version here is untagged and unreleased on npm. However, you can install and use this version:**
or, alternatively, type this into your command line interface:
14
+
15
+
npm i --save-dev git://github.com/anselmh/grunt-phantomcss.git
16
+
17
+
## CHANGELOG
18
+
19
+
* Added `mismatchTolerance` tolerance (`mismatchTolerance: 0.0.5` is default) (thx [fidgety](https://github.com/chrisgladd/grunt-phantomcss/pull/17))
20
+
* Use PhantomCSS v0.7.1
21
+
* Update dependencies
22
+
* Remove grunt as peerDependency causing multiple issues with peerPackages
23
+
* Fix post-script `bower install`
24
+
25
+
## TO DO:
26
+
27
+
* Add timeout as an optional argument (currently can fail on large testing areas with a timeout)
28
+
29
+
----
30
+
5
31
## Getting Started
6
32
This plugin requires Grunt `~0.4.1`
7
33
@@ -29,7 +55,9 @@ grunt.initConfig({
29
55
your_target: {
30
56
options: {
31
57
screenshots:'test/visual/screenshots/',
32
-
results:'results/visual/'
58
+
results:'results/visual/',
59
+
viewportSize: [1280, 800],
60
+
mismatchTolerance:0.05
33
61
},
34
62
src: [
35
63
'test/visual/**/*.js'
@@ -47,25 +75,25 @@ Type: `String|Array`
47
75
The test files to run.
48
76
49
77
#### options.screenshots
50
-
Type: `String`
78
+
Type: `String`
51
79
Default: `'./screenshots'`
52
80
53
81
The screenshots directory where test fixtures (comparison screenshots) are stored. Baseline screenshots will be stored here on the first run if they're not present.
54
82
55
83
#### options.results
56
-
Type: `String`
84
+
Type: `String`
57
85
Default: `'./results'`
58
86
59
87
The directory to store source, diff, and failure screenshots after tests.
60
88
61
89
#### options.viewportSize
62
-
Type: `Array`
90
+
Type: `Array`
63
91
Default: `[1280, 800]`
64
92
65
-
The viewport size to test the site in `[width, height]` format. Useful when testing responsive layouts.
93
+
The viewport size to test the site in `[width, height]` format. Useful when testing responsive layouts.
66
94
67
95
#### options.logLevel
68
-
Type: `String`
96
+
Type: `String`
69
97
Default: `error`
70
98
71
99
The CasperJS log level. See [CasperJS: Logging](http://casperjs.readthedocs.org/en/latest/logging.html) for details.
0 commit comments