se-scraper/test/static_tests
2019-09-23 21:57:13 +02:00
..
bing.js remove cheerio from parsing 2019-09-23 21:57:13 +02:00
clean_html_test.js remove cheerio from parsing 2019-09-23 21:57:13 +02:00
compression.js remove cheerio from parsing 2019-09-23 21:57:13 +02:00
duckduckgo.js remove cheerio from parsing 2019-09-23 21:57:13 +02:00
google.js remove cheerio from parsing 2019-09-23 21:57:13 +02:00
README.md remove cheerio from parsing 2019-09-23 21:57:13 +02:00
second_google.js remove cheerio from parsing 2019-09-23 21:57:13 +02:00
yandex.js remove cheerio from parsing 2019-09-23 21:57:13 +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