lucrib / HTMLTestRunner2

HTMLTestRunner is an extension to the Python standard library's unittest module. It generates easy to use HTML test reports.
https://lucrib.github.io/HTMLTestRunner2
6 stars 5 forks source link

Reorganizing file layout + minor changes. #5

Open jubeira opened 6 years ago

jubeira commented 6 years ago

Hi @lucrib! First of all, thank you very much for your work!

I thought it was a good idea to include a setup.py file to the code to be able to install it quickly using pip. These changes reorganize the file layout splitting sources from resources from tests, and adds a script to install the code easily, so it can be imported in other projects of the system.

With these changes, the code and its resources can be installed running pip install [repo root dir]. Furthermore, the generated HTML will link to the installed resources, so you won't need the HTML files to be in the same directory as the templates, css and so on. Personally, I found it pretty useful and convenient.

If you think it's a good improvement, please merge the PR; I'd be happy to contribute.

Thanks again!