diff --git a/.coverage b/.coverage new file mode 100644 index 0000000..6113b1f --- /dev/null +++ b/.coverage @@ -0,0 +1 @@ +!coverage.py: This is a private format, don't read it directly!{"lines": {"/home/kepoor/Code/irs/irs/metadata.py": [2, 3, 4, 5, 8, 42, 11, 12, 13, 61, 48, 20, 21, 22, 69, 25, 28, 37, 30, 31], "/home/kepoor/Code/irs/irs/utils.py": [192, 131, 132, 133, 135, 8, 137, 11, 12, 142, 15, 145, 18, 148, 22, 151, 157, 33, 162, 40, 47, 243, 54, 202, 64, 193, 194, 195, 196, 197, 198, 199, 200, 201, 74, 203, 204, 205, 206, 207, 209, 87, 143, 92, 98, 234, 168, 115], "/home/kepoor/Code/irs/irs/config.py": [], "/home/kepoor/Code/irs/irs/__init__.py": [1], "/home/kepoor/Code/irs/irs/ripper.py": [2, 3, 4, 7, 8, 9, 138, 12, 13, 14, 15, 144, 141, 86, 24, 25, 27, 28, 228, 40, 246, 268], "/home/kepoor/Code/irs/irs/cli.py": []}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 39b042d..1cc20ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ install: script: - python setup.py install - - nosetests --with-coverage + - nosetests --with-coverage --cover-package=irs after_success: - coveralls \ No newline at end of file diff --git a/README.md b/README.md index 76ee8d2..d4fb6d9 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Ironic Redistribution System [![License: GNU](https://img.shields.io/badge/License-GNU-yellow.svg)](http://www.gnu.org/licenses/gpl.html) [![Stars](https://img.shields.io/github/stars/kepoorhampond/irs.svg)](https://github.com/kepoorhampond/irs/stargazers) [![Build Status](https://travis-ci.org/kepoorhampond/irs.svg?branch=master)](https://travis-ci.org/kepoorhampond/irs) +[![Coverage Status](https://coveralls.io/repos/github/kepoorhampond/irs/badge.svg?branch=master)](https://coveralls.io/github/kepoorhampond/irs?branch=master) [![PyPI](https://img.shields.io/badge/PyPi-irs-blue.svg)](https://pypi.python.org/pypi/irs) > A music downloader that understands your metadata needs. diff --git a/setup.py b/setup.py index 4d720b4..fdb9113 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( url='https://github.com/kepoorhampond/irs', author='Kepoor Hampond', author_email='kepoorh@gmail.com', - license='GNU', + license='GPL', packages =['irs'], install_requires=[ 'bs4', diff --git a/tests/album.py b/tests/album.py index 042be7f..271da69 100644 --- a/tests/album.py +++ b/tests/album.py @@ -1,3 +1,5 @@ from irs.ripper import Ripper -Ripper().spotify_list("album", "Da Frame 2R / Matador") \ No newline at end of file +print ("[*] Testing `album.py`") +Ripper().spotify_list("album", "Da Frame 2R / Matador") +print ("[+] Passed!") \ No newline at end of file diff --git a/tests/playlist.py b/tests/playlist.py index d6ec2aa..d870544 100644 --- a/tests/playlist.py +++ b/tests/playlist.py @@ -1,3 +1,5 @@ from irs.ripper import Ripper -Ripper().spotify_list("playlist", "IRS Testing", "prakkillian") \ No newline at end of file +print ("[*] Testing `playlist.py`") +Ripper().spotify_list("playlist", "IRS Testing", "prakkillian") +print ("[+] Passed!") \ No newline at end of file diff --git a/tests/post_processors.py b/tests/post_processors.py index e6f6d7f..4c1eab6 100644 --- a/tests/post_processors.py +++ b/tests/post_processors.py @@ -1,6 +1,8 @@ from irs.ripper import Ripper import os +print ("[*] Testing `post_processors.py`") + if not os.path.exists("test_dir"): os.makedirs("test_dir") Ripper({ @@ -15,4 +17,6 @@ Ripper({ "location": "test_dir/", "organize": True, } -}).playlist("IRS Testing", "prakkillian") \ No newline at end of file +}).playlist("IRS Testing", "prakkillian") + +print ("[+] Passed!") \ No newline at end of file diff --git a/tests/song.py b/tests/song.py index 7f0b823..a48c381 100644 --- a/tests/song.py +++ b/tests/song.py @@ -1,3 +1,5 @@ from irs.ripper import Ripper -Ripper().song("Da Frame 2R", "Arctic Monkeys") \ No newline at end of file +print ("[*] Testing `song.py`") +Ripper().song("Da Frame 2R", "Arctic Monkeys") +print ("[+] Passed!") \ No newline at end of file