Skip to content

Commit

Permalink
Escape HTML tags in ruleset-testing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mnordhoff committed Feb 17, 2015
1 parent cd4ef87 commit 87deda6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ruleset-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ each target host e.g. example.com, there is an implicit test URL of
http://example.com/. Exception: target hosts that contain a wildcard ("*") do
not create an implicit test URL.

Additional test URLs can be added with the new <test> tag in the XML, e.g.
<test url="http://example.com/complex-page">.
Additional test URLs can be added with the new &lt;test&gt; tag in the XML, e.g.
&lt;test url="http://example.com/complex-page"&gt;.

Test URLs will be matched against the regexes in each <rule> and <exclusion>. A
test URL can only match against one <rule> and one <exclusion>. Once all the
Test URLs will be matched against the regexes in each &lt;rule&gt; and &lt;exclusion&gt;. A
test URL can only match against one &lt;rule&gt; and one &lt;exclusion&gt;. Once all the
test URLs have been matched up, we count the number of test URLs matching each
<rule> and each <exclusion>, and make sure the count meets the minimum number.
The minimum number of test URLs for each <rule> or <exclusion> is one plus the
&lt;rule&gt; and each &lt;exclusion&gt;, and make sure the count meets the minimum number.
The minimum number of test URLs for each &lt;rule&gt; or &lt;exclusion&gt; is one plus the
number of '*', '+', '?', or '|' characters in the regex. Since each of these
characters increases the complexity of the regex (usually increasing the variety
of URLs it can match), we require correspondingly more test URLs to ensure good
Expand All @@ -46,7 +46,7 @@ This ruleset has one implicit test URL from a target host
("http://example.com/"). The other target host has a wildcard, so creates no
implicit test URL. There's a single rule. That rule contains a '+' and a '?', so
it requires a total of three matching test URLs. We add the necessary test URLs
using explicit <test> tags.
using explicit &lt;test&gt; tags.

# Testing and Continuous Build

Expand Down

0 comments on commit 87deda6

Please sign in to comment.