se-scraper/test/static_tests
2019-09-13 16:15:33 +02:00
..
html removed some search engines, added tests for existing, added yandex search engines 2019-09-13 16:15:33 +02:00
bing.js removed some search engines, added tests for existing, added yandex search engines 2019-09-13 16:15:33 +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
duckduckgo.js removed some search engines, added tests for existing, added yandex search engines 2019-09-13 16:15:33 +02:00
google.js removed some search engines, added tests for existing, added yandex search engines 2019-09-13 16:15:33 +02:00
README.md readme in static tests 2019-08-12 00:01:02 +02:00
yandex.js removed some search engines, added tests for existing, added yandex search engines 2019-09-13 16:15:33 +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