Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
TestDownload should allow running all tests for a given extractor #10880
Comments
|
That's a good idea! Useful for handling big extractors like Twitter or Facebook. FYI: test cases are generated dynamically in |
|
When I found myself adding tests to the Generic Extractor this morning, I wished for this. Or a way to figure out that the test I was adding was Were there any thoughts on the pull request? |
|
Well, I just write a script to determine the ID for a given URL in generic.py. |
|
Well, it's no good if the core maintainers have private tools to make your lives easier but the rest of us, who have less familiarity with the code, have to stumble around in the dark... :( |
|
I have quite a few shell scripts and I'll open pull requests for them. |
Please follow the guide below
What is the purpose of your issue?
Description of your issue, suggested solution and other information
README/CONTRIBUTING explain:
I have to admit, I read this, wrote one test, and later on went back and added some more tests but had forgotten the final sentence. I did not at first notice that I was only running the first test, and then it took me an embarassingly long time to figure out how to run the other tests.
Why is the code structured this way — shouldn't there be an easy way to run all tests for a given extractor? That would seem to be the common case if you're working on a single extractor?
Or maybe there is a way and I'm just not seeing it?
I haven't really wrapped my head around the testing framework code, so I don't have a patch, but I am a little mystified at the current structure? Thanks. Explanation appreciated.