se-scraper/test/static_tests
Nikolai Tschacher 19a172c654 better tests
2019-08-13 15:28:30 +02:00
..
html better tests 2019-08-13 15:28:30 +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 better tests 2019-08-13 15:28:30 +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