question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Testing Infrastructure

See original GitHub issue

While it is easy to add a new site to scan, it is really hard to know if it is actually supported properly. Especially for the sites that do not have an explicit error code. For these sites, Sherlock relies on knowing the exact text of the informational page that the social media site presents. Which, even if it works today, could very well break tomorrow.

I am thinking that there would be a tests directory that would contain Python code that would run various tests. The main input to these tests would be a curated list of user names that are supported at a given social media site, and another list of user names that are not.

  • For Each Social Media Site A List Of User Names Supported Curated list of user names known to be supported.
  • For Each Social Media Site A List Of User Names Not Supported Curated list of user names known to not be supported.
  • Python Module That Runs Through List And Compares Results To Expected This would be the code that would run after changes have been made to the module. And, it would be run before a release was made.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
hoadlckcommented, Jan 22, 2019

Added some basic testing infrastructure with #127. I did this change without any of the restructuring that we have talked about… I am not sure exactly where that is at, and I wanted to get these tests out there so they could help people.

One thing that I do not like about the current way that the tests run is that the working directory gets littered with result files from all of the tests. I was going to change the main routine around so that the result file was optional, but I did not want to add churn before the restructuring is done.

0reactions
hoadlckcommented, Feb 10, 2019

With #169, that puts the test coverage at 100%!

Issues that exist with tests at the current time:

  • Some of the sites are randomly intermittent, and we get failures because Sherlock could not connect to them.
  • The tests hang up because some site is not responding.
  • Sites like AngelList which interpret the Sherlock queries coming from one IP address as some kind of bot activity.
  • Tor options are not tested.
  • Proxy options are not tested.

But, this is a good first pass. Any restructuring that we do in the future will have a complete test of site connections available.

There can be other issues added in the future to add more sophisticated options to the testing, but I think that this issue can be closed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing Infrastructure with Test Kitchen and Chef
Learn how to test infrastructure with Test Kitchen, Chef, ... First, I'll write the test that describes a basic feature I want to...
Read more >
Infrastructure Testing for Beginners: Adding Tests with InSpec
This is where InSpec comes in: InSpec lets us test the actual end state of our servers. Setup. We'll be using the same...
Read more >
LLVM Testing Infrastructure Guide - Documentation
This document is the reference manual for the LLVM testing infrastructure. ... infrastructure, the tools needed to use it, and how to add...
Read more >
How we added backend integration testing to our CI pipeline
Four stages to adding integrating testing · Stage one: Audit existing end-to-end tests · Stage two: Build the backend integration testing ...
Read more >
Add testing infrastructure #21 - mozilla-services/reaper - GitHub
Hashicorp code is probably a good resource for how to test the AWS SDK components of the program. It may additionally be prudent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found