se-scraper/test/static_tests
2019-08-16 20:10:40 +02:00
..
html added some parsing to google 2019-08-16 20:10:40 +02:00
bing.js better tests 2019-08-13 15:28:30 +02:00
clean_html_test.js better tests 2019-08-13 15:28:30 +02:00
compression.js better tests 2019-08-13 15:28:30 +02:00
google.js added some parsing to google 2019-08-16 20:10:40 +02:00
README.md readme in static tests 2019-08-12 00:01:02 +02:00

Test with static HTML

Dynamic testing of se-scraper takes too much time.

Save some html and initialize se-scraper by loading the search from disk.

Disadvantage

static html gets outdated after some time

Advantages

  1. Let's us test corner cases that are missed easily
  2. Testing is not reliable, since search engines do not always return the same results for the same query
  3. As said, much faster