|
5 | 5 | - [HTTPS Everywhere Source Code Layout](#https-everywhere-source-code-layout) |
6 | 6 | - [Install Dependencies and Test Build](#install-dependencies-and-test-build) |
7 | 7 | - [Precommit Testing](#precommit-testing) |
| 8 | + - [Testing](#testing) |
| 9 | + - [Quickly Testing a Ruleset](#quickly-testing-a-ruleset) |
| 10 | + - [Coverage](#coverage) |
8 | 11 | - [Submitting Changes](#submitting-changes) |
9 | 12 | - [Contributing Rulesets](#contributing-rulesets) |
10 | 13 | - [General Info](#general-info) |
11 | 14 | - [New Rulesets](#new-rulesets) |
12 | 15 | - [Minimum Requirements for a Ruleset PR](#minimum-requirements-for-a-ruleset-pr) |
13 | | - - [Testing](#testing) |
14 | 16 | - [Ruleset Style Guide](#ruleset-style-guide) |
15 | 17 | - [Motivation](#motivation) |
16 | 18 | - [Indentation & Misc Stylistic Conventions](#indentation--misc-stylistic-conventions) |
@@ -118,6 +120,18 @@ hook provided with: |
118 | 120 |
|
119 | 121 | ln -s ../../hooks/precommit .git/hooks/pre-commit |
120 | 122 |
|
| 123 | +## Testing |
| 124 | + |
| 125 | +### Quickly Testing a Ruleset |
| 126 | + |
| 127 | +1. Open a version of the Firefox or Chrome browser without HTTPS Everywhere loaded to the HTTP endpoint |
| 128 | + |
| 129 | +2. From your working ruleset branch, test with running `bash test/firefox.sh --justrun` or `bash test/chromium.sh --justrun` to open a fresh profile with the extension loaded and click around and compare the look and functionality of both sites. If something fails to load or looks strange, you may be able to debug the problem by opening the network tab of your browser debugging tool. Modify the `ruleset` until you get it in a good state - you'll have to re-run the HTTPS Everywhere-equipped browser upon each change. |
| 130 | + |
| 131 | +### Coverage |
| 132 | + |
| 133 | +Please reference [HTTPS Ruleset Checker](https://github.com/EFForg/https-everywhere/blob/master/test/rules/README.md) to properly test rulesets against our tests before sending a pull request. |
| 134 | + |
121 | 135 | ## Submitting Changes |
122 | 136 |
|
123 | 137 | To submit changes, open a pull request from our [GitHub repository](https://github.com/efforg/https-everywhere). |
@@ -175,12 +189,6 @@ In the back-and-forth process of getting the `ruleset` in good shape, there may |
175 | 189 |
|
176 | 190 | We prefer small, granular changes to the rulesets. Not only are these easier to test and review, this results in cleaner commits. |
177 | 191 |
|
178 | | -## Testing |
179 | | - |
180 | | -A general workflow for testing sites that provide both HTTP and HTTPS follows. Open a version of the browser of your choice without HTTPS Everywhere loaded to the HTTP endpoint, alongside the browser with the latest code and rulesets for HTTPS Everywhere loaded to the HTTPS endpoint (as described in [README.md](README.md).) Click around and compare the look and functionality of both sites. |
181 | | - |
182 | | -If something fails to load or looks strange, you may be able to debug the problem by opening the network tab of your browser debugging tool. Modify the `ruleset` until you get it in a good state - you'll have to re-run the HTTPS Everywhere-equipped browser upon each change. |
183 | | - |
184 | 192 | ## Ruleset Style Guide |
185 | 193 |
|
186 | 194 | ### Motivation |
|
0 commit comments