Skip to content

Commit fa0ea0e

Browse files
committed
Update README to reflect varied usecases and available CLI options
1 parent e2e9908 commit fa0ea0e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ OR this script
2323

2424
node bin/gen.visual_diff.js --help
2525

26+
## Examples
27+
28+
``` bash
29+
# Compare rendering of two existing HTML files
30+
$ node gen.visual_diff.js --outdir /tmp/ --url1 file://`pwd`/enwiki/Hampi.php.html --url2 file://`pwd`/enwiki/Hampi.parsoid.html
31+
32+
# Fetch PHP parser and Parsoid HTML output from their servers and compare them (read config from a config file)
33+
$ node gen.visual_diff.js --wiki itwiki --title Luna --config parsoid.diffsettings.js
34+
35+
# Fetch PHP parser and Parsoid HTML output from their servers and compare them (config on commandline), and also dump the HTML
36+
# after suitably postprocessing them
37+
$ node gen.visual_diff.js --wiki enwiki --title Hampi --html1PP ../lib/php_parser.postprocess.js --html2PP ../lib/parsoid.postprocess.js --dumpHTML1 --dumpHTML2
38+
```
39+
2640
## Testreduce client
2741

2842
testreduce/ has client scripts and example config for mass testing

0 commit comments

Comments
 (0)