se-scraper/test/static_tests
2019-08-12 00:01:02 +02:00
..
html added new static test case that runs much faster and tests a lot of behavior 2019-08-11 23:58:10 +02:00
google.js added new static test case that runs much faster and tests a lot of behavior 2019-08-11 23:58:10 +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