MalloyDelacroix / DownloaderForReddit

The Downloader for Reddit is a GUI application with some advanced features to extract and download submitted content from reddit.
GNU General Public License v3.0
514 stars 48 forks source link

Need docs for how to run the tests #37

Closed crccheck closed 6 years ago

crccheck commented 6 years ago

Some code assumes you're running from the DownloaderForReddit/ directory, but the tests are then in ../Tests. There's lots of other weird things that prevent the normal ways of getting python -m unittest from being able to discover and run the tests.

I can get tests to start running if I'm in the project root and do PYTHONPATH=DownloaderForReddit/ python -m unittest but then I'm in the wrong directory for open(supported_sites_file, 'r') to work.

MalloyDelacroix commented 6 years ago

The project has been restructured to solve a lot of the problems related to this issue. Now both the app and tests are run from the main DownloaderForReddit directory (not the DownloaderForReddit sub directory).

The "Setting Up A Development Environment" wiki page has been updated to reflect this and add a line about running the tests. New extractor package tests have also been added.