Skip to content

Commit a68bb7c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 494766e + 24147c5 commit a68bb7c

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

contributing.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,27 @@ two space indentation, multiple var statements and whitespace around arguments.
2323
* Develop in a topic branch, not master
2424
* Add relevant tests to cover the change
2525
* Build and run unit tests by running `npm test` (or `gulp all` which runs the tests after a build).
26-
* Run the end to end tests in the [website repo](https://github.com/forms-angular/website) by doing the following:
27-
* Run the website with `NODE_ENV=test` using your up to date forms-angular (`npm link` and `bower link` are useful here)
28-
* Change the port number in the relavant protractor config file(s) in test/e2e/protractor*.conf.js
29-
* Run `protractor test/e2e/protractor-firefox.conf.js` (the more browsers the better)
26+
* Run the end to end tests in the [website repo](https://github.com/forms-angular/website) by running `grunt test` <sup>1</sup>
3027
* Squash your commits
3128
* Write a convincing description of your PR and why we should land it
3229
* Please submit PRs to the `master` branch, it is the main development branch for this repo.
30+
31+
32+
<sup>1</sup> Many of the e2e tests in website generate screen shot PNG files. This enables a quick visual check that no
33+
unintended changes have been made to the UI. The best way to use this is as follows:
34+
35+
In your .gitconfig in your home folder add a section
36+
37+
```
38+
[diff "image"]
39+
command = ~/bin/git-imgdiff
40+
```
41+
42+
where the ~/bin/git-imgdiff file referred to is
43+
44+
```
45+
#!/bin/sh
46+
compare "$2" "$1" png:- | montage -geometry +4+4 "$2" - "$1" png:- | display -title "$1"
47+
```
48+
49+
compare is part of [ImageMagick](http://www.imagemagick.org/script/index.php)

0 commit comments

Comments
 (0)